git: 9front

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