strlen( const char *source )strlen returns the number of bytes in the string.
size_t strlen( const char *source ) {
size_t len = 0;
const char *p = source;
while ( *p ) {
p++;
len++;
}
return len;
}
TOC |
Prev
|
Next