home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.msdos.programmer
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!newsserver.jvnc.net!gmd.de!Germany.EU.net!mcsun!sun4nl!spider.research.ptt.nl!sun026!hensberg
- From: hensberg@sun026.research.ptt.nl (Mark Hensbergen)
- Subject: Re: Problem with TurboC++ ???
- Message-ID: <1993Jan21.164852.14120@spider.research.ptt.nl>
- Sender: usenet@spider.research.ptt.nl (USEnet News)
- Nntp-Posting-Host: sun026.research.ptt.nl
- Organization: PTT Research, Groningen, the Netherlands
- References: <1j80c6INN456@festus.ksu.ksu.edu> <1993Jan16.194427.28729@mcs.kent.edu>
- Date: Thu, 21 Jan 1993 16:48:52 GMT
- Lines: 18
-
- Try:
- /******* test.h *******/
- static int x;
-
- /****** end of test.h ****/
-
- this will limit the scope of x to the file (it prevents
- that other .c files can access 'x' by the use of the 'extern'
- keyword, or linkage problems (?).
-
- Good luck,
-
- Mark
- --
- =============================================================================
- email: M.A.Hensbergen@research.ptt.nl address: Mark Hensbergen
- X.400: Country: NL PTT Research
- ADMD : 400Net Winschoterdiep OZ 46
-