Back to index

radiance  4R0+20100331
Functions
rtmisc.h File Reference
#include <stdlib.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void * bmalloc (size_t size)
void bfree (void *ptr, size_t size)
void * emalloc (size_t size)
void * ecalloc (size_t nmemb, size_t size)
void * erealloc (void *ptr, size_t size)
void efree (void *ptr)
char * myhostname (void)

Function Documentation

void bfree ( void *  ptr,
size_t  size 
)
void* bmalloc ( size_t  size)
void* ecalloc ( size_t  nmemb,
size_t  size 
)
void efree ( void *  ptr)

Definition at line 78 of file ealloc.c.

{
       free(cp);
}

Here is the caller graph for this function:

void* emalloc ( size_t  size)

Definition at line 18 of file ealloc.c.

{
       register void  *cp;
       
       if (n == 0)
              return(NULL);

       if ((cp = malloc(n)) != NULL)
              return(cp);

       eputs("Out of memory in emalloc\n");
       quit(1);
       return NULL; /* pro forma return */
}

Here is the call graph for this function:

Here is the caller graph for this function:

void* erealloc ( void *  ptr,
size_t  size 
)
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: