Need a little bit of support

Non-platform specific questions.

Need a little bit of support

Postby Hblade » Tue Jun 02, 2009 3:10 am

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Need a little bit of support

Postby skydereign » Tue Jun 02, 2009 7:14 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Need a little bit of support

Postby Hblade » Tue Jun 02, 2009 4:50 pm

Thanks :D.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron