mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2025-01-14 12:36:02 +00:00
11 lines
212 B
C
11 lines
212 B
C
|
#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;
|
||
|
}
|