fgetc() is similar to getc() but is guaranteed to be a function.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
match = 0u;
skip = 0;
- while ((chin = getc(f)) != EOF) {
+ while ((chin = fgetc(f)) != EOF) {
if (skip) {
/* Looking for the start of the next line. */
if ('\n' == chin) {
ie->output = open_memstream(&ie->mem, &ie->mem_sz);
}
- while ((c = getc(f)) != EOF) {
+ while ((c = fgetc(f)) != EOF) {
if (c == '\\')
- output_special_char(ie, getc(f), op, tp, f);
+ output_special_char(ie, fgetc(f), op, tp, f);
else
putc(c, ie->output);
}
static int more_getc(struct more_control *ctl)
{
- int ret = getc(ctl->current_file);
+ int ret = fgetc(ctl->current_file);
ctl->file_position = ftello(ctl->current_file);
return ret;
}