SyntaxFix
Write A Post
Hire A Developer
Questions
You can find the length of a char* string like this:
char* mystring = "Hello World"; int length = sprintf(mystring, "%s", mystring);
sprintf() prints mystring onto itself, and returns the number of characters printed.