add more methods
This commit is contained in:
parent
cd1efe40ad
commit
90953b85d1
6 changed files with 108 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue