Commit bc7bd4dc authored by Nils Goroll's avatar Nils Goroll

call dcs_match_init in main to check library version

parent eefd4ee9
......@@ -40,6 +40,8 @@ main (void) {
int e, t;
size_t linesz;
dcs_match_init();
while (getline(&line, &linesz, stdin) != -1) {
char *p = line;
for ( ; *p; ++p) *p = tolower(*p);
......
......@@ -45,6 +45,8 @@ static void fixup_out (FILE *f_remove, FILE *f_reorder, const int i, const int r
int
main (int argc, char *argv[]) {
dcs_match_init();
if (argc > 3) {
fprintf(stderr, "Too many arguments");
return (-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment