blob: 4c391f89095f77c7c3b61178af0ab40469e4bf12 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "mbstring.h"
int
u8next(rune *ch, const char8_t **s, size_t *n)
{
int m = 0;
if (*n) {
m = u8tor_uc(ch, *s);
*n -= m;
*s += m;
}
return m;
}
|