#define FD_SET (fd, set) do { \ u_int __i; \ for ( __i = 0; __i < ((fd_set FAR *)(set ))->fd_count; __i++) { \ if (((fd_set FAR *)( set))->fd_array [__i] == ( fd)) { \ break; \ } \ } \ if ( __i == ((fd_set FAR *)( set))->fd_count ) { \ if (((fd_set FAR *)( set))->fd_count < FD_SETSIZE) { \ (( fd_set FAR *)(set))-> fd_array[__i ] = (fd); \ (( fd_set FAR *)(set))-> fd_count++; \ } \ } \ } while(0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)