ScalES-PPM
Macros | Functions
ppm_xfuncs.h File Reference

add versions of standard API functions not returning on error More...

#include <stdio.h>
#include <stdlib.h>
#include "core/symprefix.h"

Macros

#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__)
 

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)
 
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)
 

Detailed Description

add versions of standard API functions not returning on error

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.