mirage2iso / mirage-getopt.h

/* mirage2iso; getopt wrapper
 * (c) 2009 Michał Górny
 * released under 3-clause BSD license

#define _MIRAGE_GETOPT_H 1

enum mirage_optarg {

union mirage_optarg_val {
	int as_int;
	const char* as_str;

struct mirage_opt {
	const char* const name;
	enum mirage_optarg arg;
	short int val;
	const char* const help;

const short int mirage_getopt(const int argc, char* const argv[], const struct mirage_opt* const opts, union mirage_optarg_val *outval, const char* newargv[]);
void mirage_getopt_help(const char* const argv0, const char* const synopsis, const struct mirage_opt* const opts);

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.