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.
|
| void *symprefix | xcalloc (size_t nmemb, size_t size, const char *source, int line) |
| |
| void *symprefix | xmalloc (size_t size, const char *source, int line) |
| |
| void *symprefix | xrealloc (void *ptr, size_t size, const char *source, int line) |
| |
| char *symprefix | xstrdup (const char *s, const char *source, int line) |
| |
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:
; \
else \
void symprefix abort_message(const char *msg, const char *source, int line)
double(* p)(double lon, double lat)
Definition at line 55 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 ) |
◆ xstrdup()
| char *symprefix xstrdup |
( |
const char * | s, |
|
|
const char * | source, |
|
|
int | line ) |