RetroArch/runahead/mem_util.h

21 lines
412 B
C
Raw Normal View History

2018-03-28 19:22:07 +00:00
#ifndef __MEM_UTIL__
#define __MEM_UTIL__
#include <stddef.h>
#include <string.h>
#include <retro_common_api.h>
#include <boolean.h>
2018-03-28 19:22:07 +00:00
#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