diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h new file mode 100644 index 0000000..ff8f085 --- /dev/null +++ b/src/util.h @@ -0,0 +1,13 @@ +#ifndef UTIL_H +#define UTIL_H + +void fatal (const char *msg); +void *xmalloc (size_t size); +void *xrealloc (void *ptr, size_t size); +char *xstrdup (const char *s); +char *xvsprintf (char *fmt, va_list ap); +char *xsprintf (char *fmt, ...); +char *strtok_ws (char *s); +int str_comp (char *s1, char *s2, size_t len); + +#endif |