I have a structure
and i want to copy a (global) string named TBUFF into content ( located in the structure ).Code:typedef struct node{ int rownum; char content[MAXCOL]; struct node *next; }nodez;
Using the above line results in a segmentation error.Code:strcpy(last->content,TBUFF);
Please help me.
Thanks in advance.