X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=opt%2Fc_locale%2F_PDCLIB_initclocale.c;fp=opt%2Fc_locale%2F_PDCLIB_initclocale.c;h=b1a0dbe60bde74fdb923dc21bb9f03896cd63a88;hb=b3d54170225e25557110b8c74f236b5e84254c26;hp=0000000000000000000000000000000000000000;hpb=24f274eec4d6ac3868f3fdf03d2e1876c80be616;p=pdclib.old diff --git a/opt/c_locale/_PDCLIB_initclocale.c b/opt/c_locale/_PDCLIB_initclocale.c new file mode 100644 index 0000000..b1a0dbe --- /dev/null +++ b/opt/c_locale/_PDCLIB_initclocale.c @@ -0,0 +1,29 @@ +/* _PDCLIB_initclocale( locale_t ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#ifndef REGTEST +#include "_PDCLIB_clocale.h" +#include "_PDCLIB_locale.h" + +void _PDCLIB_initclocale( locale_t l ) +{ + // TODO: There will be more added here... + + l->_WCType = _PDCLIB_wcinfo; + l->_WCTypeSize = _PDCLIB_wcinfo_size; +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main() +{ + return TEST_RESULTS; +} + +#endif \ No newline at end of file