git: 9front

ref: fc96e01a8072afee71b3a734dde741031fbfd46c
dir: /sys/src/libc/port/strlen.c/

View raw version
#include <u.h>
#include <libc.h>

long
strlen(char *s)
{

	return strchr(s, 0) - s;
}