Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>strxfrm() translate string according to locale</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 strxfrm()               Translate String According to Locale

 #include   <string.h>

 size_t strxfrm(string1, string2, count);
 char *string1;         Resulting string
 char *string2;         Source string
 size_t count;          Number of characters transformed

    strxfrm() transforms string2 into the array pointed to by
    string1; using strcmp() on the two transformed strings would
    yield the same result as a call to strcoll applied to the original
    two strings.

    However, since MS C 6.0 currently supports only the minimal "C"
    locale, strxfrm() merely copies count characters from
    string1 to string2.

    Returns:    The length of the transformed string.

    Notes:      The size of the array needed to hold the resulting
                string can be found this way: 1 + strxfrm(NULL, string, 0).

 Portability:   Supported by the ANSI standard.

See Also: localeconv() setlocale() strcoll()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson