usr.bin/mail/optim.c
/*
 * Turn a network unique character identifier into a network name.
 */
Turn a network unique character identifier into a network name.
Turn a network unique character identifier into a network name .
char *
netname(mid)
{
	register struct netmach *np;
	char *mlook();
	if (mid & 0200)
		return(mlook(mid));
	for (np = netmach; np->nt_mid != 0; np++)
		if (np->nt_mid == mid)
			return(np->nt_machine);
	return(NOSTR);
}
char * netname ( mid ) { register struct netmach * np ; char * mlook ( ) ; if ( mid & 0200 ) return ( mlook ( mid ) ) ; for ( np = netmach ; np -> nt_mid != 0 ; np ++ ) if ( np -> nt_mid == mid ) return ( np -> nt_machine ) ; return ( NOSTR ) ; }
Turn a network unique character identifier into a network name.
Turn a network unique character identifier into a network name .