Xref: utzoo comp.sys.ibm.pc:30439 comp.lang.c:19520 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mcnc!unccvax!cs75jmc From: cs75jmc@unccvax.UUCP (john m covington) Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Re: Trouble readn' and writn' in C Keywords: Turbo C 1.5 fread() fwrite() structures Message-ID: <1532@unccvax.UUCP> Date: 22 Jun 89 00:53:34 GMT References: <3037@csd4.milw.wisc.edu> Distribution: na Organization: Univ. of NC at Charlotte, Charlotte, NC Lines: 14 In article <3037@csd4.milw.wisc.edu>, mag2@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....