_close()                 Close a File Handle
 
 #include   <io.h>
 
 int        _close(handle);
 int        handle;                      Handle associated with file
 
    _close() will close a file associated with 'handle'.  'handle' is a
    file handle obtained from a _creat(), creat(), creatnew(),
    creattemp(), dup(), dup2(), _open() or open() call.  _close() differs
    from close() in that _close() does not cause a 'Ctrl-Z' character to
    be written at the end of a text file when it is closed.
 
    Returns:    0 is returned, if successful.  On error, a -1 is
                returned. If 'handle' is not a valid open file handle,
                'errno' (defined in <stdlib.h>) is set to EBADF (bad file
                number).

Seealso:



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