git: 9front

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