10 lines
132 B
C
10 lines
132 B
C
|
#include <string.h>
|
||
|
|
||
|
size_t strlen(const char * str) {
|
||
|
size_t len = 0;
|
||
|
while(str[len] != '\0') {
|
||
|
len++;
|
||
|
}
|
||
|
return len;
|
||
|
}
|