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.

You should allocate the memory before doing strcpy.

3 Likes