DIRECTI-strcpy problem

I don’t know why I’m getting a segmentation fault at strcpy() in the following.Could anybody please help me.Here is my code.
http://pastebin.com/Np1bdMn2

You should allocate the memory before doing strcpy.

3 Likes