I need to know how to use the GetLength function so that I can find the length of a string. Can anyone help me out, if this is even possible?
Printable View
I need to know how to use the GetLength function so that I can find the length of a string. Can anyone help me out, if this is even possible?
To find the length of a string, use strlen.
Or the .size() member function if you are using the string class.
if you code in VC++, use the _tcslen(), _tcs is basically a substitute, when compiled in ANSI, it gets translated to strlen(), if compiled in unicode, it gets translated to wstrlen()