Yet Another eXchange Tool 0.11.3
Loading...
Searching...
No Matches
xmalloc.c File Reference

fail-safe [cm]alloc wrappers More...

#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "core/ppm_xfuncs.h"
#include "core/core.h"
#include "core/symprefix.h"
Include dependency graph for xmalloc.c:

Go to the source code of this file.

Functions

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)
 

Detailed Description

fail-safe [cm]alloc wrappers

Version
1.0
Author
Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Definition in file xmalloc.c.

Function Documentation

◆ xcalloc()

void *SymPrefix xcalloc ( size_t nmemb,
size_t size,
const char * source,
int line )

Definition at line 55 of file xmalloc.c.

◆ xmalloc()

void *SymPrefix xmalloc ( size_t size,
const char * source,
int line )

Definition at line 67 of file xmalloc.c.

◆ xrealloc()

void *SymPrefix xrealloc ( void * ptr,
size_t size,
const char * source,
int line )

Definition at line 79 of file xmalloc.c.