Basic usage example for the CLP module, showing how to enumerate the input files.
int main(int argc, char* argv[]) {
if (!args) {
return 1;
}
}
return 0;
}
OSFI-C public API header.
osfi_clp_args_t * osfiClpParseArgs(int argc, char *argv[])
Parse the command-line arguments provided to the module.
void osfiClpFree(osfi_clp_args_t *p)
Release a previously allocated result returned by osfiClpParseArgs().
void osfiLoggerInfo(const char *format,...)
void osfiLoggerError(const char *format,...)
Result of parsing CLI arguments, contains the files of each type passed to the module.
Definition: OSFIC.h:139
osfi_clp_files_t * input
Input files, never null.
Definition: OSFIC.h:150
const char * files[]
Path of each file, contains count valid entries and one final NULL entry.
Definition: OSFIC.h:126
int count
Number of valid pointers to strings in files.
Definition: OSFIC.h:124