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>");
- fprintf(out, "Selector version %s-R%s\n", VERSION, REVISION_NUMBER);
+ fprintf(out, "Selector version %s-R%s (%s)\n", VERSION, REVISION_NUMBER, UNAME);
fprintf(out, "Written by Francois Fleuret <francois@fleuret.org>.\n");
fprintf(out, "\n");
fprintf(out, "Usage: %s [options] [<filename1> [<filename2> ...]]\n",
fprintf(out, "Written by Francois Fleuret <francois@fleuret.org>.\n");
fprintf(out, "\n");
fprintf(out, "Usage: %s [options] [<filename1> [<filename2> ...]]\n",