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>setlocale() set the locale</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setlocale()             Set the Locale

 #include   <locale.h>

 char *setlocale(category, locale);
 int category;          LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY,
                        LC_NUMERIC, LC_TIME, NULL
 char *locale;          "C"

    setlocale() is used to specify the program's geographic location,
    which determines location dependent behavior such as formatting
    dates. category specifies which types of functions are affected
    by setting the locale, and can hold these values:

    LC_ALL   LC_COLLATE   LC_CTYPE   LC_MONETARY   LC_NUMERIC   LC_TIME

    locale points to a string specifying the locale; the "C"
    locale requests the minimal ANSI-conforming environment for C.
    Note that this is the only locale supported under MS C 6.0.

    Returns:    A pointer to the string corresponding to the specified
                category; NULL if unsuccessful.

 Portability:   Supported by the ANSI standard.


See Also: localeconv() strcoll() strftime() strxfrm()

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