micro-utils/libmu/mu_strlen.c

12 lines
131 B
C
Raw Normal View History

2024-07-09 19:33:45 +00:00
#include "mu_strlen.h"
size_t mu_strlen(const char *s) {
size_t i = 0;
while (*s++)
i += (*s & 0xC0) != 0x80;
return i;
}