X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fc_locale%2F_PDCLIB_initclocale.c;fp=opt%2Fc_locale%2F_PDCLIB_initclocale.c;h=b1a0dbe60bde74fdb923dc21bb9f03896cd63a88;hb=fa53a74861e1ac9513ae57b7bd7889b85ac0fbe9;hp=0000000000000000000000000000000000000000;hpb=6e6c4e6b52f2516e4bb6b9f37c1e2e18cb7448b5;p=pdclib 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