X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2F_PDCLIB%2F_PDCLIB_initclocale.c;fp=functions%2F_PDCLIB%2F_PDCLIB_initclocale.c;h=d7cf35063fffa040671787ffc00655a4cac72b63;hp=0000000000000000000000000000000000000000;hb=4321ebdd142b534d8b7b6c31e01790f77ac46319;hpb=522a5e059582a513f7af8e418a1e8611aafb3513 diff --git a/functions/_PDCLIB/_PDCLIB_initclocale.c b/functions/_PDCLIB/_PDCLIB_initclocale.c new file mode 100644 index 0000000..d7cf350 --- /dev/null +++ b/functions/_PDCLIB/_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