localeconv, and setlocale (C locale only)
authorsolar <solar@546481bc-9713-0410-bf18-d3337bbf4a3e>
Wed, 29 Dec 2010 13:31:51 +0000 (13:31 +0000)
committersolar <solar@546481bc-9713-0410-bf18-d3337bbf4a3e>
Wed, 29 Dec 2010 13:31:51 +0000 (13:31 +0000)
git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@507 546481bc-9713-0410-bf18-d3337bbf4a3e

functions/locale/localeconv.c [new file with mode: 0644]
functions/locale/setlocale.c [new file with mode: 0644]

diff --git a/functions/locale/localeconv.c b/functions/locale/localeconv.c
new file mode 100644 (file)
index 0000000..e23fb6a
--- /dev/null
@@ -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 <locale.h>
+
+#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 (file)
index 0000000..9b08b93
--- /dev/null
@@ -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 <locale.h>
+
+#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