summaryrefslogtreecommitdiff
path: root/include/util.h
blob: c4856db7652930969133b6a18f934213441f6d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
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