git: 9front

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