* routine to print usage info and exit
*/
void usage(void) {
- printf("Program mygethost: do an hostname resolution \n");
+ printf("Program mygetaddr: do an hostname resolution \n");
printf("Usage:\n");
- printf("mygethost [-h] [-p protocol] [-t socktype] hostname service\n");
+ printf("mygetaddr [-h] [-p protocol] [-t socktype] hostname service\n");
printf(" -h print this help\n");
printf(" -p udp,tcp select a protocol\n");
printf(" -t dgram,stream select a socket type\n");