comparison lib/lib.h @ 144:1fbc50374a30

Promote help to global config option, teach error_exit() to output usage message when called from get_optflags().
author Rob Landley <rob@landley.net>
date Thu, 11 Oct 2007 15:36:36 -0500
parents 9cbb323f297f
children 5f1d3ad8a888
comparison
equal deleted inserted replaced
143:9cbb323f297f 144:1fbc50374a30
43 void verror_msg(char *msg, int err, va_list va); 43 void verror_msg(char *msg, int err, va_list va);
44 void error_msg(char *msg, ...); 44 void error_msg(char *msg, ...);
45 void perror_msg(char *msg, ...); 45 void perror_msg(char *msg, ...);
46 void error_exit(char *msg, ...); 46 void error_exit(char *msg, ...);
47 void perror_exit(char *msg, ...); 47 void perror_exit(char *msg, ...);
48 void usage_exit(void);
49 void *xmalloc(size_t size); 48 void *xmalloc(size_t size);
50 void *xzalloc(size_t size); 49 void *xzalloc(size_t size);
51 void *xrealloc(void *ptr, size_t size); 50 void *xrealloc(void *ptr, size_t size);
52 void *xstrndup(char *s, size_t n); 51 void *xstrndup(char *s, size_t n);
53 void *xstrdup(char *s); 52 void *xstrdup(char *s);