aboutsummaryrefslogtreecommitdiff
path: root/lib/mbstring/u8hassfx.c
blob: e31bb4b16db70c70afc7a0481057a0a8a37ae8c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <string.h>

#include "macros.h"
#include "mbstring.h"

bool
u8hassfx(const char8_t *s, size_t n, const char8_t *sfx, size_t m)
{
	return n >= m && memeq(s + n - m, sfx, m);
}