www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/24/08:34:04

From: mdruiter AT cs DOT vu DOT nl (Ruiter de M)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C & static
Date: 24 Apr 1997 10:09:48 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 20
Message-ID: <5jnbhc$or@star.cs.vu.nl>
References: <01bc5055$7a3d2100$08b0f8ce AT didi>
NNTP-Posting-Host: sloep66.cs.vu.nl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ian Mausolus (mausolus AT ican DOT net) wrote:
: What is the significance of the word "static" in front of a function name
: in C?

: for example:

: static void foo(int i)
: {
:   ....
: }

That means, that the function is declared local to the file. No other file
can use it (by means of a .h-file).

(CMIIW)
-- 
Groeten, Michel.        http://www.cs.vu.nl/~mdruiter
 \----/==\----/
  \  /    \  /          "Als je voetbalcriminaliteit wilt tegengaan,
   \/      \/           moet je ophouden met voetballen", Nordholt.

- Raw text -


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