Subject: Re: Need help with c! Approved: clc AT plethora DOT net References: From: "Mitch" X-Newsreader: Microsoft Internet News 4.70.1161 Organization: iiNet Technologies Lines: 27 Newsgroups: comp.os.msdos.djgpp,comp.lang.c.moderated Message-ID: Originator: clcm AT plethora DOT net (Comp Lang C'Moderated) Date: Thu, 28 Jan 1999 17:47:05 GMT NNTP-Posting-Host: 205.166.146.5 X-Trace: ptah.visi.com 917545625 205.166.146.5 (Thu, 28 Jan 1999 11:47:05 CDT) NNTP-Posting-Date: Thu, 28 Jan 1999 11:47:05 CDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Is this poster actually confusing 'static' with 'const' ??? If so, I'm surprised this one passed moderation? [I try to avoid moderating things out if they aren't FAQ's, or off topic. -mod] Mitch Marp wrote in article ... > Get rid of the word static in front of FILE *fptr because that should be > able to change as you work with the file. If it can't change it won't work > properly. > > Mohanaraj Gopala Krishnan wrote in message ... > >Hi, > > > >I use djgpp and am kinda new to c. I am not sure if this is the right > >group to post this but I am very much hoping I can get help here. I have > >this source code which has no problem when compiling and producing the > >exe. But if i trace through it there is a particular function which is > >problematic. The function is as follows, it a file reading function... > > > >#include > >#include > > > >static FILE *fptr; > >static int recsize; > > ...... -- comp.lang.c.moderated - clcm AT plethora DOT net