summaryrefslogtreecommitdiff
path: root/src/locale/strxfrm.c
blob: 8f12339916c75cae31e49ed860994cecd89c7351 (plain)
1
2
3
4
5
6
7
8
9
#include <string.h>

/* collate only by code points */
size_t strxfrm(char *dest, const char *src, size_t n)
{
	size_t l = strlen(src);
	if (n > l) strcpy(dest, src);
	return l;
}