#include <stdio.h>

int fgetc(FILE *p)
{
    if(--p->count>=0) return((unsigned char)(*p->pointer++));
     else return(_fillbuf(p));
}
