fgetc.c - vx32 - Local 9vx git repository for patches.
 (HTM) git clone git://r-36.net/vx32
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       fgetc.c (224B)
       ---
            1 
            2 #include "ioprivate.h"
            3 
            4 int fgetc(FILE *f)
            5 {
            6         // Make sure at least one character is available.
            7         if (f->ipos >= f->ilim) {
            8                 if (__getinput(f) < 0)
            9                         return EOF;
           10         }
           11 
           12         // Grab and return one.
           13         return f->ibuf[f->ipos++];
           14 }
           15