aboutsummaryrefslogblamecommitdiff
path: root/util.h
blob: be1c5ec1103699c77a557a3a9bd449d642abb6cd (plain) (tree)
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(...) {\
	fprintf(stderr, "err: %s:%d: ", __FILE__, __LINE__); \
	fprintf(stderr, __VA_ARGS__); \
	fputc('\n', stderr); \
	return 1; \
}

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

#define UTIL_H
#endif