Linux Audio

Check our new training course

Loading...
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;
}