gbdk-releases/gbdk-lib/libc/strlen.c

14 lines
151 B
C
Raw Permalink Normal View History

2015-01-10 16:25:07 +01:00
#include <string.h>
/* Return length of string */
2015-01-10 16:25:08 +01:00
int strlen(const char *s) NONBANKED
2015-01-10 16:25:07 +01:00
{
int i;
i = 0;
while(*s++)
i++;
return i;
}