mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
17 lines
252 B
C
17 lines
252 B
C
/* Public domain. */
|
|
|
|
#include "str.h"
|
|
|
|
unsigned int strlen(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;
|
|
}
|
|
}
|