Can anyone help me, why I\'m getting an error message while trying to free the allocated memory: Heap corruption detected. CTR detected the application wrote the memory after en
strcpy includes the null terminator; strlen does not. Write:
strcpy
strlen
char *s1 = new char [strlen(s) + 1];