if(n_opt + n >= argc) {
fprintf(stderr, "Selector: Missing argument for %s, expecting %s.\n",
argv[n_opt], help);
if(n_opt + n >= argc) {
fprintf(stderr, "Selector: Missing argument for %s, expecting %s.\n",
argv[n_opt], help);
table. When a string is added, if it was already in the table, the
new index replaces the previous one. */
table. When a string is added, if it was already in the table, the
new index replaces the previous one. */
string was not already in the table, returns -1. Otherwise, returns
the previous index it had. */
string was not already in the table, returns -1. Otherwise, returns
the previous index it had. */
const char *input_filename,
int nb_lines_max, int *nb_lines, char **lines) {
const char *input_filename,
int nb_lines_max, int *nb_lines, char **lines) {
if(strcmp(argv[i], "-o") == 0) {
check_opt(argc, argv, i, 1, "<output filename>");
if(strcmp(argv[i], "-o") == 0) {
check_opt(argc, argv, i, 1, "<output filename>");