Parent Directory
|
Revision Log
feat: add plibc to the project
1 | rakinar2 | 47 | #ifndef PLIBC_STRING_H |
2 | #define PLIBC_STRING_H | ||
3 | |||
4 | #include <stddef.h> | ||
5 | |||
6 | size_t | ||
7 | strlen (const char *str) | ||
8 | { | ||
9 | size_t len = 0; | ||
10 | |||
11 | while (str[len]) | ||
12 | len++; | ||
13 | |||
14 | return len; | ||
15 | } | ||
16 | |||
17 | #endif /* PLIBC_STRING_H */ |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |