api: add monetary.c .. regex.c
[libc-test] / src / api / nl_types.c
diff --git a/src/api/nl_types.c b/src/api/nl_types.c
new file mode 100644 (file)
index 0000000..922cb2b
--- /dev/null
@@ -0,0 +1,13 @@
+#include <nl_types.h>
+#define T(t) (t*)0;
+#define C(n) switch(n){case n:;}
+static void f()
+{
+T(nl_catd)
+T(nl_item)
+C(NL_SETD)
+C(NL_CAT_LOCALE)
+int(*p_catclose)(nl_catd) = catclose;
+char*(*p_catgets)(nl_catd,int,int,const char*) = catgets;
+nl_catd(*p_catopen)(const char*,int) = catopen;
+}