aboutsummaryrefslogtreecommitdiff
path: root/util.h
blob: 93538492b7116b2b4d15cbd0087eabb1560cb660 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef UTIL_H

#include <stdio.h>
#include <stdlib.h>

#define err_die(r, ...) {\
	fprintf(stderr, "err: %s:%d: ", __FILE__, __LINE__); \
	fprintf(stderr, __VA_ARGS__); \
	fputc('\n', stderr); \
	return r; \
}

int r_mkdir(const char *path, mode_t mode);

#define UTIL_H
#endif