Hey guys,
I am trying to get part of my assignment to work and I once again get the above mentioned error message. I just cant see what it is complaining about. I am still a bit on thin ice in this topic area (pointers with using structs and linked lists ) and am having trouble to get through the errors so that I can get on with my programs. Its a huge assignment and I still got lots to do, so if someone could give me a direction in terms of what I did wrong this time, that would just be great.
Thanks a lot guys.
JohannesSorry for the long list of errors, but you can see how much I need to fix.Code:createmaster.c: In function `CreateMaster': createmaster.c:39: parse error before `char' createmaster.c:41: `dataptr' undeclared (first use in this function) createmaster.c:41: (Each undeclared identifier is reported only once createmaster.c:41: for each function it appears in.) createmaster.c:44: warning: assignment makes pointer from integer without a cast createmaster.c: In function `ExtractData': createmaster.c:82: warning: assignment makes pointer from integer without a cast createmaster.c:88: parse error before `*' createmaster.c:95: `boatptr' undeclared (first use in this function) createmaster.c:96: parse error before `[' createmaster.c:98: `i' undeclared (first use in this function) createmaster.c:98: warning: passing arg 1 of `strlen' makes pointer from integer without a cast createmaster.c:101: `ptrdata' undeclared (first use in this function) createmaster.c:105: warning: passing arg 1 of `strstr' makes pointer from intege r without a cast createmaster.c:108: warning: passing arg 1 of `strstr' makes pointer from intege r without a cast createmaster.c:111: warning: passing arg 1 of `strstr' makes pointer from intege r without a cast createmaster.c:121: parse error before `[' createmaster.c:122: `j' undeclared (first use in this function) createmaster.c:125: `Participant' undeclared (first use in this function) createmaster.c:125: warning: passing arg 1 of `fprintf' from incompatible pointe r type createmaster.c: At top level: createmaster.c:138: warning: type mismatch with previous implicit declaration createmaster.c:58: warning: previous implicit declaration of `InitialiseTime' createmaster.c:138: warning: `InitialiseTime' was previously implicitly declared to return `int' createmaster.c:139: parse error before `{' createmaster.c:141: invalid initializer createmaster.c:142: invalid initializer createmaster.c:144: parse error before `}'
I have attached the code that throws the above error messages.
Cheers.