blob: 12c521d59a6924255f863afb9fc1e1bfeb305af8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#define _RUNE_NO_MACRO_WRAPPER 1
#include "utf8.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;
}
|