home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / pub / wkermit / lckfiodoc.txt < prev    next >
Text File  |  2020-01-01  |  4KB  |  143 lines

  1.  
  2.           L C K F I O  -- File I/O module
  3.  
  4.  
  5. Z O P E N I  --  Open an existing file for input. Return 1 if successful
  6.  
  7.           zopeni(n,name)
  8.           int n = file number to use
  9.           char *name = name of file to open
  10.  
  11. Z O P E N O  --   Open a new file for output.  Return 1 if successful
  12.  
  13.           zopeno(n,name)
  14.           int n = file number to use
  15.           char *name = name of file to open
  16.  
  17. Z C L O S E  --   Close the given file. Return 1 if successful
  18.  
  19.           zclose(n)
  20.           int n = number of file to close
  21.  
  22. Z C H I N  --      Get a character from the input file.
  23.           Returns -1 if EOF, 0 otherwise.
  24.  
  25.           zchin(n,c)
  26.           int n = number of file to read
  27.           char *c = character read
  28.  
  29. Z S O U T  --      Write a string to the given file, buffered.
  30.           Returns -1 if ERROR, 0 otherwise
  31.  
  32.           zsout(n,s)
  33.           int n = number of file to write to
  34.           char *s = character string to write
  35.  
  36. Z S O U T L  --   Write string to file, with line terminator, buffered
  37.           Returns -1 if ERROR, 0 otherwise
  38.  
  39.           zsoutl(n,s)
  40.           int n = number of file to write to
  41.           char *s = character string to write
  42.  
  43. Z S O U T X  --   Write x characters to file, unbuffered.
  44.           Returns -1 if ERROR, 0 otherwise
  45.  
  46.           zsoutx(n,s,x)
  47.           int n = number of file to write to
  48.           int x = number of character to write
  49.           char *s = character string to write
  50.  
  51. Z C H O U T  --   Add a character to the given file.
  52.           Returns -1 if ERROR, 0 otherwise
  53.  
  54.           zchout(n,c)
  55.           int n = number of file to write to
  56.           char c = character to write
  57.  
  58. C H K F N  --      Internal function to verify file number is ok
  59.           Returns:  -1 = File number n is out of range
  60.                  0 = n is in range, but file is not open
  61.                  1 = n in range and file is open
  62.  
  63.           chkfn(n)
  64.           int n = file number to check
  65.  
  66. Z C H K I  --      Check if input file exists and is readable
  67.           Returns:  >= 0 if the file can be read (returns the size).
  68.                   -1 if file doesn't exist or can't be accessed,
  69.                   -2 if file exists but is not readable .
  70.                   -3 if file exists but protected against read.
  71.  
  72.           long zchki(name)
  73.           char *name = name of file to check
  74.  
  75. Z C H K O  --      Check if output file can be created . Returns -1 if write
  76.           permission for the file would be denied, 0 otherwise.
  77.  
  78.           zchko(name)
  79.           char *name = name of file to check
  80.  
  81. Z D E L E T  --   Delete the named file.
  82.  
  83.           zdelet(name)
  84.           char *name = name of file to delete
  85.  
  86. Z R T O L  --      Convert remote filename into local form
  87.           For DOS, this means changing lowercase letters to uppercase.
  88.  
  89.           zrtol(name,name2)
  90.           char *name = file name to be converted
  91.           char *name2 = converted file name
  92.  
  93. Z L T O R  --      Convert filename from local format to common form.
  94.           Strip pathnames, directory names and uppercase.
  95.  
  96.           zltor(name,name2)
  97.           char *name = file name to be converted
  98.           char *name2 = converted file name
  99.  
  100. Z N E X T  --      Get name of next file from list created by zxpand().
  101.           Returns >0 if there's another file or 0 if no more files.
  102.  
  103.           znext(fn)
  104.           char *fn = filename
  105.  
  106. Z N E W N  --      Make a new name for the given file
  107.  
  108.           znewn(fn,s)
  109.           char *fn = filename to be converted
  110.           char **s = pointer to converted file name
  111.  
  112. Z X P A N D  --   Expand a wildcard string into an array of strings
  113.           Returns the number of files that match fn1,
  114.           with data structures set up so that first file (if any)
  115.           will be returned by the next znext() call.
  116.  
  117.           zxpand(fn)
  118.           char *fn = filename to be expanded
  119.  
  120. Z N E X T  --      Get name of next file from list created by zxpand().
  121.           Returns >0 if there's another file or 0 if no more files.
  122.  
  123.           znext(fn)
  124.           char *fn = filename
  125.  
  126. Z F C D A T  --   Return file creation date/time
  127.  
  128.           zfcdat(fname,str)
  129.           char *fname = filename
  130.           char *str = string with date and time
  131.  
  132. Z F R E E --      Return total number of free bytes on drive specified
  133.  
  134.           long zfree(drive)
  135.           char *drive = drive name to check
  136.  
  137. Z F P D A T --      Stamp a given file name with the given date
  138.  
  139.           zfpdat(fname,dattim)
  140.           char *fname = name of file to stamp
  141.           cahr *dattim = date and time to stamp
  142.  
  143.