mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 17:10:12 +00:00
22 lines
413 B
C
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
|