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

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

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

	return n;
}