String lengh issue
I want to know how much characters are in use in a string but with not passing str_to_num.
Example : Code:
|
Re: String lengh issue
strlen( x )
if( strlen( name) > 31 ) |
Re: String lengh issue
Quote:
Code:
|
Re: String lengh issue
Doesn't work:s
|
Re: String lengh issue
Tell us specifically what you are doing
Quote:
|
Re: String lengh issue
Quote:
|
Re: String lengh issue
If you must check the length of some string use strlen()
If you want something to be copied to something else, just use copy, don't freaking worry about lenghts because copy requires a length parameter of the string you're writing to so basically, it's failproof. |
Re: String lengh issue
Quote:
strlen is what you are looking for. What do you mean with "It doesn't work" ? |
Re: String lengh issue
I tried the wat of Kreation and dFF and didn't work:s
|
Re: String lengh issue
Quote:
|
| All times are GMT -4. The time now is 10:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.