2016-09-05 19:47:26 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-05 19:47:26 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-09-06 16:44:05 +00:00
|
|
|
#ifndef _MEMORY_H
|
|
|
|
#define _MEMORY_H
|
2016-09-05 19:47:26 +00:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#define MSG_ENOMEM "Insufficient memory available"
|
|
|
|
|
|
|
|
void *mycalloc (size_t nmemb, size_t size);
|
|
|
|
void myfree (void *ptr);
|
|
|
|
void *mymalloc (size_t size);
|
|
|
|
void *myrealloc (void *ptr, size_t oldsz, size_t add);
|
|
|
|
char *mystrdup (const char *s);
|
2016-09-06 16:44:05 +00:00
|
|
|
|
|
|
|
#endif // _MEMORY_H
|