fixed. Support building in one binary
This commit is contained in:
parent
7d0207ace2
commit
33b89e64da
38 changed files with 285 additions and 163 deletions
11
libmu/mu_strlen.c
Normal file
11
libmu/mu_strlen.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "mu_strlen.h"
|
||||
|
||||
size_t mu_strlen(const char *s) {
|
||||
size_t i = 0;
|
||||
|
||||
while (*s++)
|
||||
i += (*s & 0xC0) != 0x80;
|
||||
|
||||
return i;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue