Skip to main content
added 5 characters in body
Source Link
cegprakash
  • 3.2k
  • 1
  • 39
  • 63
char* result = strcpy((char*)malloc(str.length()+1), str.c_str());
char* result = strcpy(malloc(str.length()+1), str.c_str());
char* result = strcpy((char*)malloc(str.length()+1), str.c_str());
Source Link
cegprakash
  • 3.2k
  • 1
  • 39
  • 63

char* result = strcpy(malloc(str.length()+1), str.c_str());