delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/28/12:50:54

Subject: Re: Need help with c!
Approved: clc AT plethora DOT net
References: <clcm-19990117-0010 AT plethora DOT net> <clcm-19990123-0009 AT plethora DOT net>
From: "Mitch" <noone AT nowhere DOT com>
X-Newsreader: Microsoft Internet News 4.70.1161
Organization: iiNet Technologies
Lines: 27
Newsgroups: comp.os.msdos.djgpp,comp.lang.c.moderated
Message-ID: <clcm-19990128-0012@plethora.net>
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 <Marp AT 0 DOT 0 DOT 0 DOT 0> wrote in article <clcm-19990123-0009 AT plethora DOT net>...
> 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 <stdio.h>
> >#include <stdlib.h>
> >
> >static FILE *fptr;
> >static int recsize;
> >

...<snip>...
-- 
comp.lang.c.moderated - clcm AT plethora DOT net

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019