summaryrefslogtreecommitdiff
path: root/other/3wahas/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'other/3wahas/common.h')
-rw-r--r--other/3wahas/common.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/other/3wahas/common.h b/other/3wahas/common.h
new file mode 100644
index 0000000..9f982fe
--- /dev/null
+++ b/other/3wahas/common.h
@@ -0,0 +1,26 @@
1
2#include <sys/time.h>
3#include <netinet/in.h>
4#include <unistd.h>
5
6#ifndef Z_COMMON_H
7#define Z_COMMON_H
8
9#ifdef DEBUG
10void debugp (char *filename, const char *str, ...);
11void hexdump (char *filename, unsigned char *data, unsigned int amount);
12#endif
13int m_random (int lowmark, int highmark);
14void set_tv (struct timeval *tv, int seconds);
15void xstrupper (char *str);
16void scnprintf (char *os, size_t len, const char *str, ...);
17unsigned long int tdiff (struct timeval *old, struct timeval *new);
18char *ipv4_print (char *dest, struct in_addr in, int padding);
19void *xrealloc (void *m_ptr, size_t newsize);
20char *xstrdup (char *str);
21void *xcalloc (int factor, size_t size);
22char *allocncat (char **to, char *from, size_t len);
23char *alloccat (char **to, char *from);
24
25#endif
26