Oracle iPlanet Web Proxy Server 4.0.14 NSAPI Developer's Guide

util_hostname

The util_hostname function retrieves the local host name and returns it as a string. If the function cannot find a fully qualified domain name, it returns NULL. You may reallocate or free this string. Use this function to determine the name of the system you are on.

Syntax

char *util_hostname(void);

Returns

If a fully qualified domain name was found, returns a string containing that name. Otherwise, the function returns NULL if the fully qualified domain name was not found.

Parameters

none