Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!wrdis01!gatech!purdue!haven!ni.umd.edu!uc780.umd.edu!cs450a03 From: cs450a03@uc780.umd.edu Newsgroups: comp.lang.c Subject: RE: scope Q Message-ID: <19APR91.23284521@uc780.umd.edu> Date: 19 Apr 91 23:28:45 GMT References: <1991Apr19.151959.6847@noose.ecn.purdue.edu> Sender: usenet@ni.umd.edu (USENET News System) Organization: The University of Maryland University College Lines: 14 Ranjan Muttiah writes: >/* 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 >.... Not really, but you could always do something like #define a !@%$#@ Raul Rockwell