]> pd.if.org Git - pdclib.old/blobdiff - opt/c_locale/_PDCLIB_initclocale.c
PDCLIB-1 (PDCLIB-3) Make wide character classification/collation information locale...
[pdclib.old] / opt / c_locale / _PDCLIB_initclocale.c
diff --git a/opt/c_locale/_PDCLIB_initclocale.c b/opt/c_locale/_PDCLIB_initclocale.c
new file mode 100644 (file)
index 0000000..b1a0dbe
--- /dev/null
@@ -0,0 +1,29 @@
+/* _PDCLIB_initclocale( locale_t )\r
+\r
+   This file is part of the Public Domain C Library (PDCLib).\r
+   Permission is granted to use, modify, and / or redistribute at will.\r
+*/\r
+\r
+#ifndef REGTEST\r
+#include "_PDCLIB_clocale.h"\r
+#include "_PDCLIB_locale.h"\r
+\r
+void _PDCLIB_initclocale( locale_t l )\r
+{\r
+    // TODO: There will be more added here...\r
+\r
+    l->_WCType     = _PDCLIB_wcinfo;\r
+    l->_WCTypeSize = _PDCLIB_wcinfo_size;\r
+}\r
+\r
+#endif\r
+\r
+#ifdef TEST\r
+#include <_PDCLIB_test.h>\r
+\r
+int main()\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif
\ No newline at end of file