Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
argtable3.h
✓ #include <argtable3.h>
Parse command-line arguments with argtable3
#include <argtable3.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
struct arg_lit *help = arg_lit0("h", "help", "print help");
struct arg_end *end = arg_end(20);
void* argtable[] = {help, end};
if (arg_nullcheck(argtable) != 0) return 1;
int nerrors = arg_parse(argc, argv, argtable);
if (help->count > 0) {
printf("Usage: %s\n", argv[0]);
arg_print_syntax(stdout, argtable, "\n");
}
arg_freetable(argtable, sizeof(argtable)/sizeof(argtable[0]));
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.