DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦c83ea9678⟧ TextFile

    Length: 356 (0x164)
    Types: TextFile
    Names: »hostname.c«

Derivation

└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
    └─⟦e7f64e0c0⟧ »EurOpenD3/mail/vmh.tar.Z« 
        └─⟦dcb95597f⟧ 
            └─⟦this⟧ »SAVE/hostname.c« 

TextFile

/*
 * 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
	
}