home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / toswinsc.zoo / filbuf.h < prev    next >
Text File  |  1992-10-27  |  763b  |  25 lines

  1. /*
  2.  * Copyright 1992 Eric R. Smith. All rights reserved.
  3.  * Redistribution is permitted only if the distribution
  4.  * is not for profit, and only if all documentation
  5.  * (including, in particular, the file "copying")
  6.  * is included in the distribution in unmodified form.
  7.  * THIS PROGRAM COMES WITH ABSOLUTELY NO WARRANTY, NOT
  8.  * EVEN THE IMPLIED WARRANTIES OF MERCHANTIBILITY OR
  9.  * FITNESS FOR A PARTICULAR PURPOSE. USE AT YOUR OWN
  10.  * RISK.
  11.  */
  12. #define FILBUFSIZ    1024
  13.  
  14. typedef struct filbuf {
  15.     int    fd;
  16.     int    nbytes;
  17.     unsigned char *ptr;
  18.     unsigned char buf[FILBUFSIZ];
  19. } FILBUF;
  20.  
  21. FILBUF *FBopen        __PROTO(( char * ));
  22. void    FBclose        __PROTO(( FILBUF * ));
  23. int    FBgetchar    __PROTO(( FILBUF * ));
  24. char   *FBgets        __PROTO(( FILBUF *, char *, int));
  25.