7 static char *rcsid_hostname_c = "$Header$";
10 /* PrincipalHostname, borrowed from rcmd.c in Kerberos code */
12 #include <sys/types.h>
13 #include <netinet/in.h>
18 PrincipalHostname(alias)
23 if ((h=gethostbyname(alias)) != (struct hostent *)NULL) {
24 char *p = index(h->h_name, '.');
27 p = phost = h->h_name;