1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2025-01-14 12:36:02 +00:00
TegraExplorer/source/utils/utils.c

11 lines
212 B
C
Raw Normal View History

#include "utils.h"
#include <string.h>
#include <mem/heap.h>
char *CpyStr(const char* in){
int len = strlen(in);
char *out = malloc(len + 1);
out[len] = 0;
memcpy(out, in, len);
return out;
}