Mercurial > hg > toybox
comparison lib/lib.h @ 925:07693eb46e26
Add xexit() and make error_exit() use it.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 16 Jun 2013 19:59:51 -0500 |
parents | b92cb3cc9696 |
children | 55e587acefa9 |
comparison
equal
deleted
inserted
replaced
924:b792de46d715 | 925:07693eb46e26 |
---|---|
85 | 85 |
86 void show_help(void); | 86 void show_help(void); |
87 | 87 |
88 // lib.c | 88 // lib.c |
89 void xstrncpy(char *dest, char *src, size_t size); | 89 void xstrncpy(char *dest, char *src, size_t size); |
90 void xexit(void) noreturn; | |
90 void verror_msg(char *msg, int err, va_list va); | 91 void verror_msg(char *msg, int err, va_list va); |
91 void error_msg(char *msg, ...); | 92 void error_msg(char *msg, ...); |
92 void perror_msg(char *msg, ...); | 93 void perror_msg(char *msg, ...); |
93 void error_exit(char *msg, ...) noreturn; | 94 void error_exit(char *msg, ...) noreturn; |
94 void perror_exit(char *msg, ...) noreturn; | 95 void perror_exit(char *msg, ...) noreturn; |