Back to index

radiance  4R0+20100331
Functions | Variables
myhostname.c File Reference
#include "copyright.h"
#include <unistd.h>
#include "rtmisc.h"

Go to the source code of this file.

Functions

char * myhostname ()

Variables

static const char RCSid [] = "$Id: myhostname.c,v 2.7 2003/10/27 10:19:31 schorsch Exp $"

Function Documentation

char* myhostname ( void  )

Definition at line 19 of file myhostname.c.

{
       static char   hostname[65];

       if (!hostname[0])
              gethostname(hostname, sizeof(hostname));
       return(hostname);
}

Here is the caller graph for this function:


Variable Documentation

const char RCSid[] = "$Id: myhostname.c,v 2.7 2003/10/27 10:19:31 schorsch Exp $" [static]

Definition at line 2 of file myhostname.c.