brados/lib/string.c

13 lines
177 B
C

#include <stddef.h>
#include <brados/string.h>
// Find the length of a string
size_t strlen(const char *str)
{
size_t len = 0;
while (str[len] != 0)
len++;
return len;
}