Rev 1787 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1866 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef _libc__ERR_H_ |
35 | #ifndef LIBC_ERR_H_ |
36 | #define _libc__ERR_H_ |
36 | #define LIBC_ERR_H_ |
37 | 37 | ||
38 | #define errx(status, fmt, ...) { \ |
38 | #define errx(status, fmt, ...) { \ |
39 | printf((fmt), ##__VA_ARGS__); \ |
39 | printf((fmt), ##__VA_ARGS__); \ |
40 | _exit(status); \ |
40 | _exit(status); \ |
41 | } |
41 | } |
42 | 42 | ||
43 | #endif |
43 | #endif |
44 | 44 | ||
45 | - | ||
46 | /** @} |
45 | /** @} |
47 | */ |
46 | */ |