Lines Matching refs:fp
98 print_character_set(FILE *fp, const unsigned char *p, int len) in print_character_set() argument
104 (void) fputc(',', fp); in print_character_set()
108 (void) fprintf(fp, "\\x%02x", p[i]); in print_character_set()
110 (void) fprintf(fp, "%s", opcodes[p[i]].name); in print_character_set()
112 (void) fputc(p[i], fp); in print_character_set()
114 (void) fprintf(fp, "\\x%02x", p[i]); in print_character_set()
120 slre_dump(const struct slre *r, FILE *fp) in slre_dump() argument
127 (void) fprintf(fp, "%3d %s ", pc, opcodes[op].name); in slre_dump()
132 (void) fprintf(fp, "%d ", r->code[pc + 1]); in slre_dump()
136 (void) fprintf(fp, "%d ", in slre_dump()
141 print_character_set(fp, r->data + in slre_dump()
146 (void) fputc('"', fp); in slre_dump()
150 (void) fputc(ch, fp); in slre_dump()
152 (void) fprintf(fp, in slre_dump()
156 (void) fputc('"', fp); in slre_dump()
161 (void) fputc('\n', fp); in slre_dump()
673 FILE *fp; in main() local
681 fp = fopen(argv[2], "rb"); in main()
682 if (fp == NULL) { in main()
695 while (fgets(data, sizeof(data), fp) != NULL) { in main()
719 (void) fclose(fp); in main()