forked from ademar111190/CppAndroidIosExample
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCore.cpp
More file actions
Latest commit
10 lines (8 loc) · 341 Bytes
/
Copy pathCore.cpp
File metadata and controls
10 lines (8 loc) · 341 Bytes
1
2
3
4
5
6
7
8
9
10
#include<string.h>
#include"Core.h"
constchar *CPP_BASE_STRING = "cpp says hello to %s";
constchar *concatenateMyStringWithCppString(constchar *myString) {
char *concatenatedString = newchar[strlen(CPP_BASE_STRING) + strlen(myString)];
sprintf(concatenatedString, CPP_BASE_STRING, myString);
return concatenatedString;
}