From: solar Date: Wed, 29 Dec 2010 13:31:51 +0000 (+0000) Subject: localeconv, and setlocale (C locale only) X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=11b11c83484dd89b1bb78db639f164616916ea0b localeconv, and setlocale (C locale only) --- diff --git a/functions/locale/localeconv.c b/functions/locale/localeconv.c new file mode 100644 index 0000000..e23fb6a --- /dev/null +++ b/functions/locale/localeconv.c @@ -0,0 +1,28 @@ +/* $Id$ */ + +/* localeconv( void ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include + +#ifndef REGTEST + +struct lconv * localeconv( void ) +{ + return &_PDCLIB_lconv; +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + TESTCASE( NO_TESTDRIVER ); + return TEST_RESULTS; +} +#endif diff --git a/functions/locale/setlocale.c b/functions/locale/setlocale.c new file mode 100644 index 0000000..9b08b93 --- /dev/null +++ b/functions/locale/setlocale.c @@ -0,0 +1,28 @@ +/* $Id$ */ + +/* setlocale( int, const char * ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include + +#ifndef REGTEST + +char * setlocale( int category, const char * locale ) +{ + return NULL; +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + TESTCASE( NO_TESTDRIVER ); + return TEST_RESULTS; +} +#endif