rustit/mirror_runit/runit-2.1.2/src/str_len.c

17 lines
261 B
C
Raw Normal View History

2024-03-25 00:51:57 +01:00
/* 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;
}
}