#include <string.h>
size_t strxfrm(char *p, const char *q, size_t n);
strxfrm() transforms string q according to the current locale, such that the comparison of two strings converted with strxfrm() using strcmp() yields the same result as a comparison using strcoll(). If the resulting string would be longer than n characters, p is left unchanged.
The length of the converted string.
strcmp(), and