Change arg parser, add some commands, may break shit

This commit is contained in:
Such Meme, Many Skill
2020-05-17 00:46:53 +02:00
parent 6934e1422f
commit a872b90597
4 changed files with 97 additions and 47 deletions

View File

@@ -192,4 +192,14 @@ char *utils_InputText(char *start, int maxLen){
}
return buff;
}
char *utils_copyStringSize(const char *in, u32 size){
if (size > strlen(in) || size == 0)
size = strlen(in);
char *out = calloc(size + 1, 1);
//strncpy(out, in, size);
memcpy(out, in, size);
return out;
}