localeconv, and setlocale (C locale only)
[fw/pdclib] / functions / locale / localeconv.c
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