1 /* uselocale( locale_t )
3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
9 #include <_PDCLIB_locale.h>
11 #ifdef _PDCLIB_LOCALE_METHOD
12 locale_t uselocale( locale_t newloc )
14 locale_t oldloc = _PDCLIB_threadlocale();
16 if(newloc == LC_GLOBAL_LOCALE) {
17 _PDCLIB_setthreadlocale(NULL);
18 } else if(newloc != NULL) {
19 _PDCLIB_setthreadlocale(newloc);
29 #include <_PDCLIB_test.h>
33 TESTCASE( NO_TESTDRIVER );