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

#include "mbstring.h"

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