diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -75,3 +75,13 @@ safestrcpy(char *s, const char *t, int n) return os; } +int +strlen(const char *s) +{ + int n; + + for(n = 0; s[n]; n++) + ; + return n; +} + |