add more methods

This commit is contained in:
Nishi 2025-11-23 17:23:35 +09:00
commit 90953b85d1
Signed by: nishi
GPG key ID: 27EF69B208EB9343
6 changed files with 108 additions and 0 deletions

View file

@ -7,3 +7,11 @@ char* MDEStringDuplicate(const char* src) {
return s;
}
char* MDEStringConcatenate(const char* str1, const char* str2) {
char* r = malloc(strlen(str1) + strlen(str2) + 1);
strcpy(r, str1);
strcat(r, str2);
return r;
}