Hints for OOP344 Assignment 1
Revision as of 16:01, 22 September 2011 by Qtdang1
OOP344 - 20113
- - Allocate memory to size of strlen(str).
- -copy the content of str into allocated memory.
- - If ESCAPE is hit, copy the content of allocated memory back to str.
- - Make sure before the function ends, deallocates the allocated memory.