empty string == ^0 ?
Code:
is this correct? as in, is the first character of an empty string the null character? |
i don't know the answer to your question, however I know for what you probrably want to do you can also do
Code:
Hope that helps, I'm sure someone on these forums knows that [0] will read in an empty string though. |
should work
if not try this: Code:
|
thanks, chronic, just what i was looking for.
|
Quote:
|
i'm not sure why you are quoting yourself. while it would still be handy to know the answer to my question, your method is a sure alternative that does exactly what i need, which is what i was thanking you for.
|
Naah, don't do that, calling a native for this is unnecessary.
As you said, the first character of an empty string is a null character (because we use null-terminated strings), so you can (and should) do: Code:
same as: Code:
Or simply: Code:
|
thanks, PM!
|
[offtopic]
hey chronic what are those tiny letters :D are ya making a contract with that guy? :lol: |
Quote:
|
| All times are GMT -4. The time now is 20:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.