git: 9front

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