CrossCore XA
Revision: 1.0
Programmers Guide
Date: Jul 1, 10
Return value
Returns the non-negative file descriptor of the accepted socket on success. In case of errors, -1 is
returned and errno is set appropriately.
Example
See example of send.
3.3.12.
close
Description
Closes the file descriptor.
Include files
#include <unistd.h>
Syntax
int close(
int fd
)
Parameters
Fd
File
descriptor
Return value
Returns zero on success. In case of errors, -1 is returned and errno is set appropriately.
Example
close(socket);
www.crosscontrol.com
23