home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / SNIPFILE.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  2KB  |  38 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  Header file for portable file functions
  5. */
  6.  
  7. #ifndef SNIPFILE__H
  8. #define SNIPFILE__H
  9.  
  10. #include <stdio.h>
  11. #include "sniptype.h"
  12.  
  13. #define flushall() fflush(NULL)
  14.  
  15. long   flength(char *fname);                          /* Ansiflen.C     */
  16. FILE * cant(char *fname, char *fmode);                /* Ferrorf.C      */
  17. int    fcompare(const char *fnam1, const char *fnam2);/* Fcompare.C     */
  18. long   fcopy(char *dest, char *source);               /* Fcopy.C        */
  19. long   ffsearch(FILE *fp, const char *pattern,
  20.              const size_t size, int N);               /* Srchfile.C     */
  21. long   rfsearch(FILE *fp, const char *pattern,
  22.              const size_t size, int N);               /* Srchfile.C     */
  23. void   show_text_file(char *txt);                     /* Textmod.C      */
  24. int    file_copy(char *from, char *to);               /* Wb_Fcopy.C     */
  25. int    fdcopy(int fdfrom, int fdto);                  /* Wb_Fcopy.C     */
  26. int    file_append(char *from, char *to);             /* Wb_Fapnd.C     */
  27.  
  28. Boolean_T exists(char *name);                         /* Existsx.C      */
  29. char     *dexists(char *name, char *envar);           /* Existsx.C      */
  30. char     *pexists(char *name);                        /* Existsx.C      */
  31. char     *gexists(char *name, char *envar);           /* Existsx.C      */
  32. FILE     *fopenp(char *name, char *mode);             /* Fopenx.C       */
  33. FILE     *fopend(char *name, char *mode, char *envar);/* Fopenx.C       */
  34. FILE     *fopeng(char *name, char *mode, char *envar);/* Fopenx.C       */
  35.  
  36.  
  37. #endif /* SNIPFILE__H */
  38.