Trouble readn' and writn' in C

john m covington cs75jmc at unccvax.UUCP
Thu Jun 22 10:53:34 AEST 1989


In article <3037 at csd4.milw.wisc.edu>, mag2 at csd4.milw.wisc.edu (Michael A Gorski) writes:
> 
> I am writing a program in Turbo C 1.5 and am having trouble writing
> structures to a disk file.
> 
> Here's what I am doing...
> FILE *fopen(), *ifp();
> struct c s;
                 ^^^^^^^ this should be just *ifp;
                         you have just declared a function named ifp that 
                         returns a pointer to a FILE....

This is not the cause of the problem you are currently experiencing,
just thought I would pass this along, in case you are new to C....



More information about the Comp.lang.c mailing list