git: 9front

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