Implemented lots of new functions

This commit is contained in:
Max Wash
2020-07-16 14:02:51 +01:00
parent a614cfa25c
commit 405e98717b
24 changed files with 541 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
#include <string.h>
#include <stdlib.h>
char *strdup(const char *str)
{
size_t len = strlen(str);
char *out = malloc(len + 1);
memcpy(out, str, len);
out[len] = 0;
return out;
}