strxfrm()

Syntax
  #include <string.h>

  
  size_t strxfrm(char *p, const char *q, size_t n);

  
Description

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.

Return

The length of the converted string.

See also

setlocale(),

strcmp(), and

strcoll()