Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!news.cs.indiana.edu!noose.ecn.purdue.edu!stable.ecn.purdue.edu!muttiah From: muttiah@stable.ecn.purdue.edu (Ranjan S Muttiah) Newsgroups: comp.lang.c Subject: scope Q Message-ID: <1991Apr19.151959.6847@noose.ecn.purdue.edu> Date: 19 Apr 91 15:19:59 GMT Article-I.D.: noose.1991Apr19.151959.6847 Sender: root@noose.ecn.purdue.edu (ECN System Management) Organization: Purdue University Engineering Computer Network Lines: 23 /* Is there some way I can control the scope of a variable within a file ? Something similar to #undef when using #define */ int a,b; fn1(..) { .... } fn2(..) { .... } /* beep beep, useful life of a is over */ fn3() { a = 5; <- undefined variable: a ... }