Miscellaneous utilities.
More...
#include <stdlib.h>
#include <stdio.h>
Go to the source code of this file.
|
void * | xmalloc (size_t size) |
| Allocates memory with check and (eventually) error reporting.
|
|
void * | xrealloc (void *ptr, size_t size) |
| Reallocates memory.
|
|
void * | xcalloc (size_t count, size_t size) |
| Reallocates memory, but now initializes the memory to zero.
|
|
Miscellaneous utilities.
Definition in file misc.c.
void* xmalloc |
( |
size_t |
size | ) |
|
Allocates memory with check and (eventually) error reporting.
Definition at line 12 of file misc.c.
void* xrealloc |
( |
void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
Reallocates memory.
Definition at line 24 of file misc.c.
void* xcalloc |
( |
size_t |
count, |
|
|
size_t |
size |
|
) |
| |
Reallocates memory, but now initializes the memory to zero.
Definition at line 37 of file misc.c.
Name of this program.
Definition at line 36 of file cstream.c.