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
|
|
|
|
*/
|
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#ifndef HC_MEMORY_H
|
|
|
|
#define HC_MEMORY_H
|
2016-09-05 19:47:26 +00:00
|
|
|
|
2016-10-09 20:41:55 +00:00
|
|
|
#include <stdio.h>
|
2016-09-05 19:47:26 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#define MSG_ENOMEM "Insufficient memory available"
|
|
|
|
|
2016-11-20 21:54:52 +00:00
|
|
|
void *hccalloc (const size_t nmemb, const size_t sz);
|
|
|
|
void *hcmalloc (const size_t sz);
|
|
|
|
void *hcrealloc (void *ptr, const size_t oldsz, const size_t addsz);
|
|
|
|
char *hcstrdup (const char *s);
|
2016-10-10 09:03:11 +00:00
|
|
|
void hcfree (void *ptr);
|
2016-09-06 16:44:05 +00:00
|
|
|
|
2023-01-30 14:41:12 +00:00
|
|
|
#endif // HC_MEMORY_H
|