add versions of standard API functions not returning on error
More...
#include <stdio.h>
#include <stdlib.h>
#include "core/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) |
|
FILE *SymPrefix | xfopen (const char *path, const char *mode, const char *source, int line) |
|
void SymPrefix | xfclose (FILE *fp, const char *source, int line) |
|
int SymPrefix | xfputc (int c, FILE *stream, const char *source, int line) |
|
add versions of standard API functions not returning on error
- 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 ppm_xfuncs.h.
◆ xcalloc
#define xcalloc |
( |
| nmemb, |
|
|
| size ) |
Value:
#define xcalloc(nmemb, size)
#define SymPrefix(symbol)
Definition at line 68 of file ppm_xfuncs.h.
◆ xfclose
◆ xfopen
#define xfopen |
( |
| path, |
|
|
| mode ) |
Value:
#define xfopen(path, mode)
Definition at line 78 of file ppm_xfuncs.h.
◆ xfputc
#define xfputc |
( |
| c, |
|
|
| stream ) |
Value:
#define xfputc(c, stream)
Definition at line 88 of file ppm_xfuncs.h.
◆ xmalloc
◆ xrealloc
#define xrealloc |
( |
| ptr, |
|
|
| size ) |
◆ xcalloc()
void *SymPrefix xcalloc |
( |
size_t | nmemb, |
|
|
size_t | size, |
|
|
const char * | source, |
|
|
int | line ) |
◆ xfclose()
void SymPrefix xfclose |
( |
FILE * | fp, |
|
|
const char * | source, |
|
|
int | line ) |
◆ xfopen()
FILE *SymPrefix xfopen |
( |
const char * | path, |
|
|
const char * | mode, |
|
|
const char * | source, |
|
|
int | line ) |
◆ xfputc()
int SymPrefix xfputc |
( |
int | c, |
|
|
FILE * | stream, |
|
|
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 ) |