aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 587bf25..f391943 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1,6 +1,11 @@
#ifndef POTD_UTILS_H
#define POTD_UTILS_H 1
+#ifndef SIZEOF
+#define SIZEOF(arr) (sizeof(arr)/sizeof(arr[0]))
+#endif
+
+
void set_procname(char *arg0, const char *newname);
int daemonize(void);