git: 9front

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