git: 9front

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