diff options
| author | 0x221E <0x221E@0xinfinity.dev> | 2026-06-11 20:10:31 +0200 |
|---|---|---|
| committer | 0x221E <0x221E@0xinfinity.dev> | 2026-06-11 20:11:56 +0200 |
| commit | 6d559b7e50dbab428d324b4ddaed9db7a8ced887 (patch) | |
| tree | c2e807a19d2d0b6054e13a6d3ece16750796198d /lib/string.c | |
| download | tmpbootloader-master.tar.gz | |
Diffstat (limited to 'lib/string.c')
| -rw-r--r-- | lib/string.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/string.c b/lib/string.c new file mode 100644 index 0000000..b48ffc0 --- /dev/null +++ b/lib/string.c @@ -0,0 +1,13 @@ +#include <string.h> + +size_t strlen(char* s) +{ + int pos=0; + + while (s[pos]) { + + pos++; + } + + return pos; +} |
