gbdk-releases/gbdk-lib/libc/strlen.c
2015-01-10 16:25:08 +01:00

14 lines
151 B
C

#include <string.h>
/* Return length of string */
int strlen(const char *s) NONBANKED
{
int i;
i = 0;
while(*s++)
i++;
return i;
}