I am supposed to implement a strcpy function without using the library. I have written the code for that but there seems to be an error (possibly a memory leak but I\'m not