close()                  Close File
 
 #include <io.h>                         Required for declarations only
 
 int        close(handle);
 int        handle;                      Handle referring to open file
 
    close() closes the file associated with handle.
 
    Returns:    Zero if successfully closed, or-1 if an invalid file
                handle was given (in which case errno is set to EBADF).
 
 
  -------------------------------- Example ---------------------------------
 
    This example opens a file for reading and writing, then closes it.
 
         #include <io.h>
         #include <fcntl.h>
 
         int fhndl;
 
         main()
         {
               fhndl = open("data",O_RDWR);
               .
               .
               .
               close(fhndl);
          }

Seealso:



This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster