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 is longer than n characters, strxfrm() leaves p unchanged.

Return

The length of the converted string.

See also

setlocale()

strcmp()

strcoll()