add versions of standard API functions not returning on error
More...
#include <stdio.h>
#include <stdlib.h>
#include "core/symprefix.h"
|
#define | xcalloc(nmemb, size) SymPrefix(xcalloc)((nmemb), (size), __FILE__, __LINE__) |
|
#define | xmalloc(size) SymPrefix(xmalloc)((size), __FILE__, __LINE__) |
|
#define | xrealloc(ptr, size) SymPrefix(xrealloc)((ptr), (size), __FILE__, __LINE__) |
|
#define | xfopen(path, mode) SymPrefix(xfopen)(path, mode, __FILE__, __LINE__) |
|
#define | xfclose(fp) SymPrefix(xfclose)(fp, __FILE__, __LINE__) |
|
#define | xfputc(c, stream) SymPrefix(xfputc)((c),(stream), __FILE__, __LINE__) |
|
|
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
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.