aboutsummaryrefslogtreecommitdiff
path: root/lib/mbstring/u8next.c
blob: 518de49200f532792e8aeefaa622effff32319ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "mbstring.h"

int
u8next(rune *ch, struct u8view *sv)
{
	int n = 0;

	if (sv->len) {
		rune _;
		n = u8tor(ch ? ch : &_, sv->p);
		VSHFT(sv, n);
	}

	return n;
}