how to get size string in C with valid null

April 11, 2011 at 02:41:26
Specs: Windows XP
how to get size of string in visual C++ with valid null caracters inside string similar
"RYRYRYRYR\0RYRYRY\0RYRYRY\0"
this is measured until first null that is equaled 9 but there we have 23 characters
send for me to this email addres shafiei47@<removed>

edited by moderator: Removed email address -Razor2.3


See More: how to get size string in C with valid null

Report •


#1
April 11, 2011 at 02:59:54
If you need a string with nulls, use the std::string class. It isn't null terminated, so you can safely store your null inclusive string without rolling your own string functions.

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question