Need a little bit of support

Posted:
Tue Jun 02, 2009 3:10 am
by Hblade
I made my own typing text function, now I need to find a way to store the amount of letters in a message into a variable.
Re: Need a little bit of support

Posted:
Tue Jun 02, 2009 7:14 am
by skydereign
Well, you can, if it is a char* and perhaps a char array, use strlen. This will return the length, amount of characters before a null. You could, if that doesn't fit your need, write a function that checks, essentially strlen, as I am pretty sure it will work.