fail-safe [cm]alloc wrappers
More...
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "ppm/ppm_xfuncs.h"
#include "ppm/core.h"
#include "ppm/symprefix.h"
Go to the source code of this file.
fail-safe [cm]alloc wrappers
- Copyright
- (C) 2012 Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de
- Version
- 1.0
- Author
- Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de
Definition in file xmalloc.c.
◆ TEST_POINTER
#define TEST_POINTER |
( |
|
SIZE | ) |
|
Value: if (p || !(SIZE)) \
; \
else \
void symprefix() abort_message(const char *msg, const char *source, int line)
Definition at line 54 of file xmalloc.c.
◆ xcalloc()
void *symprefix() xcalloc |
( |
size_t |
nmemb, |
|
|
size_t |
size, |
|
|
const char * |
source, |
|
|
int |
line |
|
) |
| |
◆ xmalloc()
void *symprefix() xmalloc |
( |
size_t |
size, |
|
|
const char * |
source, |
|
|
int |
line |
|
) |
| |
◆ xrealloc()
void *symprefix() xrealloc |
( |
void * |
ptr, |
|
|
size_t |
size, |
|
|
const char * |
source, |
|
|
int |
line |
|
) |
| |