diff options
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h new file mode 100644 index 0000000..c4856db --- /dev/null +++ b/include/util.h @@ -0,0 +1,12 @@ +#ifndef _UTIL_H_ +#define _UTIL_H_ + +#include <stdarg.h> +#include <stdlib.h> + +int vasprintf(char **dest, const char *fmt, va_list ap); +int asprintf(char **dest, const char *fmt, ...); + +size_t hash(const char *str, int max_val); + +#endif |