From 11b11c83484dd89b1bb78db639f164616916ea0b Mon Sep 17 00:00:00 2001 From: solar Date: Wed, 29 Dec 2010 13:31:51 +0000 Subject: [PATCH] localeconv, and setlocale (C locale only) --- functions/locale/localeconv.c | 28 ++++++++++++++++++++++++++++ functions/locale/setlocale.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 functions/locale/localeconv.c create mode 100644 functions/locale/setlocale.c 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 -- 2.40.0