summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/util.h b/util.h
index e00c8b7..121d81b 100644
--- a/util.h
+++ b/util.h
@@ -4,6 +4,7 @@
#include <signal.h> /* for sig_atomic_t */
#include <string.h> /* for memset(3) */
+#include <stdbool.h>
#define UNUSED __attribute__((__unused__))
#define ZERO(x) memset(&(x), 0, sizeof(x))
@@ -12,4 +13,6 @@
#define _(str) str
#endif
-void * xrealloc(void *ptr, size_t size);
+void *xrealloc(void *ptr, size_t size);
+bool is_numeric(const char *str);
+int get_fd(const char *addr);