RetroArch/runahead/mem_util.h
2018-04-08 20:25:43 +02:00

22 lines
413 B
C

#ifndef __MEM_UTIL__
#define __MEM_UTIL__
#include <stddef.h>
#include <string.h>
#include <boolean.h>
#include <retro_common_api.h>
#define FREE(xxxx) if ((xxxx) != NULL) { free((void*)(xxxx)); } (xxxx) = NULL
RETRO_BEGIN_DECLS
char *strcpy_alloc(const char *sourceStr);
char *strcpy_alloc_force(const char *sourceStr);
void strcat_alloc(char ** destStr_p, const char *appendStr);
RETRO_END_DECLS
#endif