summaryrefslogtreecommitdiff
path: root/xwrap.h
diff options
context:
space:
mode:
authormikeos <mike.osipov@gmail.com>2012-10-13 23:20:14 +0400
committermikeos <mike.osipov@gmail.com>2012-10-13 23:20:14 +0400
commit893c216b889f260378fb21a7f576c061f7ff2248 (patch)
treead4566df268c76de8fc743d006b14baf6bfb6594 /xwrap.h
initial
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