J
Jamiil
How do I get the length of a character pointer?
TIA
TIA
sizeof(char *)Jamiil said:How do I get the length of a character pointer?
TIA
How do I get the length of a character pointer?
Jamiil said:Yes! strlen() is what I was looking for.
As a mostly C++ programmer, it has been eons since the last time I used
char or char* in any program, but in the project, which is ~35k lines
of code, 3 ones are dedicated to a 'const char*' value, thus I needed
to refresh my memory on the stdlib.h and/or stdio stuff.
Thanks Emanuel, strlen() is what I need to use in this case.
Keep up the good work!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.