Changeset 1202 for toilet


Ignore:
Timestamp:
Oct 13, 2006, 3:38:50 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • Add feof() to the list of I/O functions.
Location:
toilet/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/src/figlet.c

    r1201 r1202  
    169169    cx->lookup = NULL;
    170170
    171     for(i = 0, size = 0; !feof(f); cx->glyphs++)
     171    for(i = 0, size = 0; !toieof(f); cx->glyphs++)
    172172    {
    173173        if((cx->glyphs % 2048) == 0)
  • toilet/trunk/src/io.c

    r1201 r1202  
    4444}
    4545
     46int toieof(TOIFILE *toif)
     47{
     48    return feof(toif->f);
     49}
     50
    4651char *toigets(char *s, int size, TOIFILE *toif)
    4752{
  • toilet/trunk/src/io.h

    r1201 r1202  
    2323TOIFILE *toiopen(const char *, const char *);
    2424int toiclose(TOIFILE *);
     25int toieof(TOIFILE *);
    2526char *toigets(char *, int, TOIFILE *);
    2627
Note: See TracChangeset for help on using the changeset viewer.