28 #ifndef QFITS_MEMORY_H
29 #define QFITS_MEMORY_H
43 #define qfits_malloc(s) qfits_memory_malloc(s, __FILE__,__LINE__)
44 #define qfits_calloc(n,s) qfits_memory_calloc(n,s, __FILE__,__LINE__)
45 #define qfits_realloc(p,s) qfits_memory_realloc(p,s, __FILE__,__LINE__)
46 #define qfits_free(p) qfits_memory_free(p, __FILE__,__LINE__)
47 #define qfits_strdup(s) qfits_memory_strdup(s, __FILE__,__LINE__)
48 #define qfits_falloc(f,o,s) qfits_memory_falloc(f,o,s, __FILE__,__LINE__)
49 #define qfits_fdealloc(f,o,s) qfits_memory_fdealloc(f,o,s,__FILE__,__LINE__)
char * qfits_memory_falloc(char *, size_t, size_t *, const char *, int)
Map a file's contents to memory as a char pointer.
Definition: qfits_memory.c:465
void * qfits_memory_realloc(void *, size_t, const char *, int)
Re-Allocate memory.
Definition: qfits_memory.c:969
void * qfits_memory_malloc(size_t, const char *, int)
Allocate memory.
Definition: qfits_memory.c:239
void * qfits_memory_calloc(size_t, size_t, const char *, int)
Allocate memory.
Definition: qfits_memory.c:423
char * qfits_memory_strdup(const char *, const char *, int)
Duplicate a string using calloc.
Definition: qfits_memory.c:1042
int qfits_memory_is_empty(void)
Tell if there is still some memory allocated.
Definition: qfits_memory.c:1156
void qfits_memory_status(void)
Display memory status information.
Definition: qfits_memory.c:1072
void qfits_memory_free(void *, const char *, int)
Free memory.
Definition: qfits_memory.c:815
void qfits_memory_fdealloc(void *, size_t, size_t, const char *, int)
Free memory that has been allocated with falloc.
Definition: qfits_memory.c:663