summaryrefslogtreecommitdiffstats
path: root/src/util.h
blob: dce85312fdc92c37a8a5b2e573167cca20c01e7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __UTIL_H
#define __UTIL_H

#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <libgen.h>

#define MAX(A, B) ((A) > (B) ? (A) : (B))

#define FOOD_MAX_ARRAY 1048576

void
fdebug(const char *fmt, ...);

void
die(const char *fmt, ...);

void
trim(char * str);

#endif /* __UTIL_H */