FreeBSD/contrib/ntp/ntpd/ntp_io.c
/*
 * fdbits - generate ascii representation of fd_set (FAU debug support)
 * HFDF format - highest fd first.
 */
generate ascii representation of fd_set (FAU debug support)
HFDF format - highest fd first.
generate ascii representation of fd_set ( FAU debug support ) HFDF format - highest fd first .
static char *
fdbits(
	int		count,
	const fd_set*	set
	)
{
	static char buffer[256];
	char * buf = buffer;
	count = min(count,  255);
	while (count >= 0) {
		*buf++ = FD_ISSET(count, set) ? '#' : '-';
		count--;
	}
	*buf = '\0';
	return buffer;
}
static char * fdbits ( int count , const fd_set * set ) { static char buffer [ 256 ] ; char * buf = buffer ; count = min ( count , 255 ) ; while ( count >= 0 ) { * buf ++ = FD_ISSET ( count , set ) ? ' ' : ' ' ; count -- ; } * buf = ' \0 ' ; return buffer ; }
fdbits - generate ascii representation of fd_set (FAU debug support)
 HFDF format - highest fd first.
fdbits - generate ascii representation of fd_set ( FAU debug support ) HFDF format - highest fd first .