aboutsummaryrefslogtreecommitdiffstats
path: root/enwmemdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'enwmemdup.c')
-rw-r--r--enwmemdup.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/enwmemdup.c b/enwmemdup.c
new file mode 100644
index 0000000..8f99007
--- /dev/null
+++ b/enwmemdup.c
@@ -0,0 +1,25 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+wchar_t *
+libsimple_enwmemdup(int status, const wchar_t *s, size_t n) /* TODO test */
+{
+ wchar_t *ret = wmemdup(s, n);
+ if (!ret)
+ enprintf(status, "wmemdup:");
+ return ret;
+}
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif