git: 9front

ref: 7ea1452456cfdcd1d9921e69511c71b924f834b3
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;
}