Hi,
I want to access an array within a structure which is passed to a function. I am getting series of segmenatation fault errors. I tried manipulating the expression and the exrpession goes something like this
Thanks in advance.Code:#include "interface.h" extern char TBUFF[MAXCOL]; extern nodez *head; extern nodez *last; void processfile(FILE *fp) { return; } void savetobuffer() { int i; CREATENODE(local); //MACRO local=last; if(last==NULL) //In other words the first node is being inserted allocrowa(head); else allocrowb(local);//Dont wory about the above part *****PLEASE***** for(i=0;i<MAXCOL;i++) { char *temp0; temp0=(last->content); (*(temp0+i))=TBUFF[i];//Here i cant use strcpy and cant use this for loop too. //local->content[i]="\n"; } }