INtime SDK Help
close

Closes a file.

#include <io.h>

int close (int handle);

Parameters

handle
Descriptor that refers to an open file.

Return Values

0 (zero).
Success.
-1 the function sets errno to EBADF, indicating an invalid file descriptor argument.
Failure.

Descriptoin

A call to close(s) on a socket implicitly invokes shutdown(s, 2) which is the same as shutdown(s, SHUT_RDWR) before all the resources associated with the socket are freed.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/io.h io.h clib.lib

See Also

chsize, creat, dup, dup2, unlink