Files
yait/core/standard.h
2025-07-22 20:53:50 -04:00

22 lines
559 B
C

#ifndef STANDARD_H
#define STANDARD_H
/**
* Parse standard command line options (--help, --version)
* @param usage_func Function pointer to usage display function
* @param argc Argument count
* @param argv Argument vector
* @return 0 on success, 1 if help/version requested, errno on error
*/
int parse_standard_options (void (*usage_func) (), int argc, char **argv);
/**
* Setup the program
* @param argc Argument count
* @param argv Argument vector
* @return 0 on success, 1 if something fails
*/
int initialize_main (int *, char ***);
#endif