git: 9front

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