summary refs log tree commit diff
path: root/include/utils.h
blob: f415abcbed1241ce5afa2bc8eb706662bc0f18eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __UTILS_H__
#define __UTILS_H__

#include <stdnoreturn.h>


/**
 * Show message:
 * program_name: <formattedstring>\n
 * and exit with code
 * @param code Code to exit
 * @param fmt Format string
 */
noreturn void die(int code, char *fmt, ...);

#endif /* __UTILS_H__ */