add versions of standard API functions not returning on error
More...
#include <stdio.h>
#include <stdlib.h>
#include "core/symprefix.h"
|
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
◆ xcalloc
#define xcalloc |
( |
| nmemb, |
|
|
| size ) |
Value: SymPrefix(xcalloc)((nmemb), (size), __FILE__, __LINE__)
◆ xfclose
Value:SymPrefix(xfclose)(fp, __FILE__, __LINE__)
◆ xfopen
#define xfopen |
( |
| path, |
|
|
| mode ) |
Value:SymPrefix(xfopen)(path, mode, __FILE__, __LINE__)
◆ xfputc
#define xfputc |
( |
| c, |
|
|
| stream ) |
Value:SymPrefix(xfputc)((c),(stream), __FILE__, __LINE__)
◆ xmalloc
Value:SymPrefix(xmalloc)((size), __FILE__, __LINE__)
◆ xrealloc
#define xrealloc |
( |
| ptr, |
|
|
| size ) |
Value: SymPrefix(xrealloc)((ptr), (size), __FILE__, __LINE__)
Das diesem Bericht zugrundeliegende Vorhaben wurde mit Mitteln des Bundesministeriums für Bildung, und Forschung unter dem Förderkennzeichen 01IH08004E gefördert. Die Verantwortung für den Inhalt dieser Veröffentlichung liegt beim Autor.