2 * Copyright 2005 Timo Hirvonen
10 /* set in beginning of main */
11 extern char *program_name
;
14 /* short option or 0 */
17 /* long option or NULL */
20 /* does option have an argument */
25 * arg: returned argument if .has_arg is 1
27 * returns: index to options array or -1 of no more options
29 int get_option(char **argv
[], const struct option
*options
, char **arg
);
31 void warn(const char *format
, ...) __FORMAT(1, 2);
32 void warn_errno(const char *format
, ...) __FORMAT(1, 2);
33 void die(const char *format
, ...) __FORMAT(1, 2) __NORETURN
;
34 void die_errno(const char *format
, ...) __FORMAT(1, 2) __NORETURN
;