home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_09 / 8n09067a < prev    next >
Text File  |  1990-06-01  |  1KB  |  26 lines

  1. Listing 1 - 'r'-function declarations
  2.  
  3. RFILE *rfopen(sfname, sftype)  /* Opens a file on a File Server    */
  4.   char *sfname;                /* <server-name>!<file-name>        */
  5.   char *sftype;                /* file access type - same as fopen */
  6.  
  7. int rfclose(rstream)           /* Closes file on a File Server      */
  8.   RFILE *rstream;              /* rfile pointer from rfopen routine */
  9.  
  10.  
  11. int rfread(buf, size, nitems, rstream) /* Reads data from a remote file */
  12.   char  *buf;                          /* application buffer for data   */
  13.   int    size;                         /* size of item to read          */
  14.   int    nitems;                       /* number of items to read       */
  15.   RFILE *rstream;                      /* rfile pointer from rfopen     */
  16.  
  17. int rfwrite(buf, size, nitems, rstream) /* Writes data to a remote file  */
  18.   char  *buf;                           /* application buffer for data   */
  19.   int    size;                          /* size of item to write         */
  20.   int    nitems;                        /* number of items to write      */
  21.   RFILE *rstream;                       /* rfile pointer from rfopen     */
  22.  
  23. int rfeof(rstream)             /* Test for End-of-File                 */
  24.   RFILE *rstream;              /* rfile pointer from rfopen routine    */
  25.  
  26.