gtpc2m29C/C++ Language Support User's Guide

FD_ISSET-Return a Value for the File Descriptor in the File Descriptor Set

This function returns a value for the file descriptor in the file descriptor set.

Format

#include   <sysgtime.h>
int FD_ISSET(int fd, fd_set* fdset)
 

fd
The file descriptor.

fdset
The file descriptor set.

Normal Return

Returns a non-zero value if the file descriptor is set in the file descriptor set pointed to by fdset; otherwise returns 0.

Error Return

Not applicable.

Programming Considerations

Examples

See the example provided for the tpf_select_bsd function in tpf_select_bsd-Indicates Read, Write, and Exception Status.

Related Information