summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.h b/util.h
index 5457ffe..05cef22 100644
--- a/util.h
+++ b/util.h
@@ -3,6 +3,9 @@
#include <sys/socket.h>
+#define PTHREAD_CHECK(func_,...) do { int ret=(func_)(__VA_ARGS__); if(ret!=0){ fprintf(stderr,#func_ ": %s\n",strerror(ret)); exit(1); } } while(0)
+
+
char* copy_buf(const char *buf,int len);
char* copy_str(const char *str);