strxfrm(3)strxfrm(3)Namestrxfrm - string transformation
Syntax
size_t strxfrm (to, from, maxsize)
char *to;
char *from;
size_t maxsize;
Description
The function transforms the string pointed to by from and places the
resulting string into the array pointed to by to. The transformation
is such that two transformed strings can be ordered by the function as
appropriate to the program's locale category
The length of the resulting string may be much longer than the origi‐
nal. No more than characters are placed into the resulting string
including the terminator. If the transformed string does not exceed
characters, the number of characters (less the terminator) is returned.
Otherwise the number of characters (less the terminator) in the trans‐
formed string is returned and the contents of the array are undefined.
International Environment
LC_COLLATE Contains the user requirements for language, territory,
and codeset for the character collation format. affects
the behavior of regular expressions and the string col‐
lation functions in If is not defined in the current
environment, provides the necessary default.
LANG If this environment is set and valid, uses the interna‐
tional language database named in the definition to
determine the character collation formatting rules. If
is defined, its definition supercedes the definition of
See Alsostring(3), setlocale(3), strcoll(3), environ(5int)strxfrm(3)