#include <dce/dce_cf.h>void dce_cf_get_host_name( char **hostname, error_status_t *status);
None.
Possible status codes and their meanings are as follows:
The dce_cf_get_host_name() routine searches the DCE configuration file for the local host's name relative to the local cell's root. If the name is found, dce_cf_get_host_name() allocates (by a call to malloc()) a buffer for it, copies the name into the buffer, and returns its address in the hostname input parameter.
The memory for a returned name string is allocated by malloc(), and must be freed by the caller of dce_cf_get_host_name().
The DCE 1.0 version of this routine is limited to processing lines of text whose length is less than 1024 characters.
No value is returned.
Functions: dce_cf_binding_entry_from_host(3dce), dce_cf_find_name_by_key(3dce), dce_cf_get_cell_name(3dce), dce_cf_prin_name_from_host(3dce).