micro-utils/libmu/mu_strlen.c
2024-07-09 22:33:45 +03:00

12 lines
131 B
C

#include "mu_strlen.h"
size_t mu_strlen(const char *s) {
size_t i = 0;
while (*s++)
i += (*s & 0xC0) != 0x80;
return i;
}