summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
new file mode 100644
index 0000000..e56fe14
--- /dev/null
+++ b/src/utils.h
@@ -0,0 +1,23 @@
+
+#ifndef __UTILS_H
+#define __UTILS_H
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define MAX_ERROR_MSG_SIZE PATH_MAX
+
+
+extern void *xmalloc( size_t );
+extern void *xrealloc( void *, size_t );
+
+extern char *dupstr( char *s );
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __UTILS_H */