home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / msdos / programm / 3199 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.1 KB  |  31 lines

  1. Newsgroups: alt.msdos.programmer
  2. 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
  3. From: hensberg@sun026.research.ptt.nl (Mark Hensbergen)
  4. Subject: Re: Problem with TurboC++ ???
  5. Message-ID: <1993Jan21.164852.14120@spider.research.ptt.nl>
  6. Sender: usenet@spider.research.ptt.nl (USEnet News)
  7. Nntp-Posting-Host: sun026.research.ptt.nl
  8. Organization: PTT Research, Groningen, the Netherlands
  9. References: <1j80c6INN456@festus.ksu.ksu.edu> <1993Jan16.194427.28729@mcs.kent.edu>
  10. Date: Thu, 21 Jan 1993 16:48:52 GMT
  11. Lines: 18
  12.  
  13. Try:
  14. /******* test.h *******/
  15. static int x;
  16.  
  17. /****** end of test.h ****/
  18.  
  19. this will limit the scope of x to the file (it prevents
  20. that other .c files can access 'x' by the use of the 'extern'
  21. keyword, or linkage problems (?).
  22.  
  23. Good luck,
  24.  
  25.         Mark
  26. -- 
  27. =============================================================================
  28. email:  M.A.Hensbergen@research.ptt.nl     address: Mark Hensbergen
  29. X.400:     Country: NL                  PTT Research
  30.     ADMD   : 400Net                  Winschoterdiep OZ 46
  31.