(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/dos.h>

BOOL Close (file)

LOCATION
In DOSBase at offset 6

SYNOPSIS
BPTR file

FUNCTION
Close a filehandle opened with Open(). If the file was used with buffered I/O the final write may fail and thus Close() return an error. The file is closed in any case.

INPUTS
file
filehandle

RESULT
0 if there was an error. !=0 on success.

EXAMPLE

SEE ALSO

NOTES
This function is identical to Lock().

BUGS

INTERNALS

HISTORY