Lines Matching refs:txtfile
37 read_text_colormap(txtfile) in read_text_colormap() argument
38 FILE *txtfile; in read_text_colormap()
47 while (fscanf(txtfile, FORMAT_STRING, c, &r, &g, &b) == 4) {
60 write_text_colormap(txtfile) in write_text_colormap() argument
61 FILE *txtfile; in write_text_colormap()
77 Fprintf(txtfile, "%c = (%d, %d, %d)\n", c,
86 read_txttile(txtfile, pixels) in read_txttile() argument
87 FILE *txtfile; in read_txttile()
95 if (fscanf(txtfile, "# %s %d (%[^)])", ttype, &i, buf) <= 0)
120 if (fscanf(txtfile, "%1s", c) < 0) {
130 if (fscanf(txtfile, "%1s", c) < 0) {
149 if (fscanf(txtfile, "%1s ", c) < 0) {
161 while ((*c = fgetc(txtfile)) != EOF && isspace(*c))
163 ungetc(*c, txtfile);
169 write_txttile(txtfile, pixels) in write_txttile() argument
170 FILE *txtfile; in write_txttile()
183 Fprintf(txtfile, "# %s %d (unknown)\n", type, tile_set_indx);
187 Fprintf(txtfile, "# %s %d (%s)\n", type, tile_set_indx, p);
189 Fprintf(txtfile, "# %s %d (null)\n", type, tile_set_indx);
193 Fprintf(txtfile, "{\n");
195 Fprintf(txtfile, " ");
205 (void) fputc(charcolors[k], txtfile);
207 Fprintf(txtfile, "\n");
209 Fprintf(txtfile, "}\n");