rustit/mirror_runit/runit-2.1.2/src/str_len.c
2024-03-24 23:51:57 +00:00

16 lines
261 B
C

/* Public domain. */
#include "str.h"
unsigned int str_len(const char *s)
{
register const char *t;
t = s;
for (;;) {
if (!*t) return t - s; ++t;
if (!*t) return t - s; ++t;
if (!*t) return t - s; ++t;
if (!*t) return t - s; ++t;
}
}