FreeBSD/contrib/ntp/ntpdc/ntpdc.c
/*
 * nntohost - convert network number to host name.  This routine enforces
 *	       the showhostnames setting.
 */
convert network number to host name.  This routine enforces
the showhostnames setting.
convert network number to host name . This routine enforces the showhostnames setting .
const char *
nntohost(
	sockaddr_u *netnum
	)
{
	if (!showhostnames || SOCK_UNSPEC(netnum))
		return stoa(netnum);
	else if (ISREFCLOCKADR(netnum))
		return refnumtoa(netnum);
	else
		return socktohost(netnum);
}
const char * nntohost ( sockaddr_u * netnum ) { if ( ! showhostnames || SOCK_UNSPEC ( netnum ) ) return stoa ( netnum ) ; else if ( ISREFCLOCKADR ( netnum ) ) return refnumtoa ( netnum ) ; else return socktohost ( netnum ) ; }
nntohost - convert network number to host name.
nntohost - convert network number to host name .