summaryrefslogtreecommitdiff
path: root/xwrap.h
diff options
context:
space:
mode:
Diffstat (limited to 'xwrap.h')
-rw-r--r--xwrap.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/xwrap.h b/xwrap.h
new file mode 100644
index 0000000..ee50cd5
--- /dev/null
+++ b/xwrap.h
@@ -0,0 +1,17 @@
+#ifndef XWRAP_H
+#define XWRAP_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <sys/types.h>
+
+void *xmalloc(size_t size);
+char *xstrdup(const char *s);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif