]> pd.if.org Git - pdclib/blobdiff - functions/_PDCLIB/_PDCLIB_initclocale.c
Moved the C locale implementation into main code base. None of these are really optio...
[pdclib] / functions / _PDCLIB / _PDCLIB_initclocale.c
diff --git a/functions/_PDCLIB/_PDCLIB_initclocale.c b/functions/_PDCLIB/_PDCLIB_initclocale.c
new file mode 100644 (file)
index 0000000..d7cf350
--- /dev/null
@@ -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