|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 356 (0x164)
Types: TextFile
Names: »hostname.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦e7f64e0c0⟧ »EurOpenD3/mail/vmh.tar.Z«
└─⟦dcb95597f⟧
└─⟦this⟧ »SAVE/hostname.c«
/*
* hostname() - a routine to simulate the gethostname() call
* recent Unix systems.
*
* hostname() returns a ptr to null terminated character string
*/
char *hostname()
{
#ifdef HOSTNAME
return (HOSTNAME);
#else
static char host_name_buffer[32];
gethostname(host_name_buffer, sizeof (host_name_buffer));
return (host_name_buffer);
#endif
}