Home | History | Annotate | Download | only in gencfu

Lines Matching defs:file

7 * File gencfu.c
17 // Usage: gencfu [options] -r confusables-file.txt -w whole-script-confusables.txt -o output-file.cfu
62 printf("Usage: %s [-v] [-options] -r confusablesRules.txt -w wholeScriptConfusables.txt -o output-file\n", progName);
156 fprintf(stderr, "confusables file, whole script confusables file and output file must all be specified.\n");
169 /* Combine the directory with the file name */
178 // spoof detection data file parsing is dependent on regular expressions.
189 /* write the dummy data file */
205 // Read in the confusables source file
210 printf("gencfu: error reading file \"%s\"\n", confFileName);
217 printf("gencfu: error reading file \"%s\"\n", confFileName);
235 fprintf(stderr, "gencfu: uspoof_openFromSource error \"%s\" at file %s, line %d, column %d\n",
262 // Create the output file
268 fprintf(stderr, "gencfu: Could not open output file \"%s\", \"%s\"\n",
279 fprintf(stderr, "gencfu: Error %d writing the output file\n", status);
284 fprintf(stderr, "gencfu: Error writing to output file \"%s\"\n", outFileName);
300 // Read in a confusables source file
305 FILE *file;
307 file = fopen(fileName, "rb");
308 if( file == 0 ) {
311 fseek(file, 0, SEEK_END);
312 fileSize = ftell(file);
313 fseek(file, 0, SEEK_SET);
316 fclose(file);
320 long t = fread(result, 1, fileSize, file);
323 fclose(file);
328 fclose(file);