git: 9front

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