hostalias

Searches for host aliases associated with a name.

Format

#include  <resolv.h>

char *hostalias  (const char *name);

Arguments

name
Points to the name of the host that you want to retrieve aliases from.

Description

The hostalias routine searches for the alias associated with the name parameter. The HOSTALIASES environment variable defines the name of a file where you can find the host aliases, in the form:
    host    alias

Return Values
The host alias. 
NULL  Indicates an error. 


Previous Page | Next Page | Table of Contents | Index