git: 9front

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