PROWAREtech








C/C++: strlen Procedure
Find length of ASCII c-string.
int strlen (const char * str)
{
int length = 0;
while( *str++ )
length++;
return length;
}
Comment
int strlen (const char * str)
{
int length = 0;
while( *str++ )
length++;
return length;
}
This site uses cookies. Cookies are simple text files stored on the user's computer. They are used for adding features and security to this site. Read the privacy policy. |