|
|
af = mystrdup(argv[1]); | af = mystrdup(argv[1]); |
} else { | } else { |
fprintf(stderr,"correct syntax is:\n"); | fprintf(stderr,"correct syntax is:\n"); |
fprintf(stderr,"example affix_file dictionary_file file_of_words_to_check\n"); |
fprintf(stderr,"hunspell-example affix_file dictionary_file file_of_words_to_check\n"); |
exit(1); | exit(1); |
} | } |
if (argv[2]) { | if (argv[2]) { |
df = mystrdup(argv[2]); | df = mystrdup(argv[2]); |
} else { | } else { |
fprintf(stderr,"correct syntax is:\n"); | fprintf(stderr,"correct syntax is:\n"); |
fprintf(stderr,"example affix_file dictionary_file file_of_words_to_check\n"); |
fprintf(stderr,"hunspell-example affix_file dictionary_file file_of_words_to_check\n"); |
exit(1); | exit(1); |
} | } |
if (argv[3]) { | if (argv[3]) { |
wtc = mystrdup(argv[3]); | wtc = mystrdup(argv[3]); |
} else { | } else { |
fprintf(stderr,"correct syntax is:\n"); | fprintf(stderr,"correct syntax is:\n"); |
fprintf(stderr,"example affix_file dictionary_file file_of_words_to_check\n"); |
fprintf(stderr,"hunspell-example affix_file dictionary_file file_of_words_to_check\n"); |
exit(1); | exit(1); |
} | } |
| |