| delorie.com/archives/browse.cgi | search | 
| 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: | phaywood AT aardvark DOT apana DOT org DOT au DOT STOP DOT SPAM (Peter "Shaggy" Haywood) | 
| X-Newsreader: | Forte Free Agent 1.11/32.235 | 
| Organization: | Teragen Internet Solutions, Melbourne Australia | 
| Lines: | 26 | 
| Newsgroups: | comp.os.msdos.djgpp,comp.lang.c.moderated | 
| Message-ID: | <clcm-19990202-0006@plethora.net> | 
| Originator: | clcm AT plethora DOT net (Comp Lang C'Moderated) | 
| Date: | Tue, 02 Feb 1999 18:16:42 GMT | 
| NNTP-Posting-Host: | 205.166.146.5 | 
| X-Trace: | ptah.visi.com 917979402 205.166.146.5 (Tue, 02 Feb 1999 12:16:42 CDT) | 
| NNTP-Posting-Date: | Tue, 02 Feb 1999 12:16:42 CDT | 
| To: | djgpp AT delorie DOT com | 
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp | 
| Reply-To: | djgpp AT delorie DOT com | 
Groovy hepcat Marp was jivin' on Sun, 24 Jan 1999 04:37:25 GMT in
comp.lang.c.moderated.
Re: Need help with c!'s a cool scene! Dig it!
>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.
  What does static have to do with changing something? You were
confusing it with const, perhaps? An object declared static has 3
special properties:
1) duration from the time the program starts until it finishes,
2) initialisation to 0 (zero) by default, and
3) visability within:
   a) a function if defined within the function, or
   b) the translation unit (C source file, module) in which it is
defined if defined outside of any functions.
--
----- Dig the EVEN NEWER, MORE IMPROVED news sig!! -----
-------------- Shaggy was here! ---------------
    http://aardvark.apana.org.au/~phaywood/
============= Ain't I'm a dawg!! ==============
-- 
comp.lang.c.moderated - clcm AT plethora DOT net
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |