Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!mit-eddie!gary From: gary@mit-eddie.UUCP Newsgroups: comp.sys.amiga Subject: Re: Is this a Manx Bug? Message-ID: <4710@mit-eddie.MIT.EDU> Date: Sat, 31-Jan-87 02:58:56 EST Article-I.D.: mit-eddi.4710 Posted: Sat Jan 31 02:58:56 1987 Date-Received: Sat, 31-Jan-87 15:00:11 EST References: <958@tekred.TEK.COM> Organization: MIT EE/CS Computer Facility, Cambridge, MA Lines: 14 Keywords: auto variables In article <958@tekred.TEK.COM>, joels@tekred.TEK.COM (Joel Swank) writes: > > later I was reading my C manual and it said that all 'auto' variables > should be automaticly initialized to zero at every entry to the subroutine. > The UNIX C does this, but Manx does not. Is this a Manx bug? No, the Manx manual explicitly states that auto variables are guaranteed to be garbage. Whatever is left on the stack becomes the value of the variable. The C language itself definitely does not guarantee that auto variables are initialized. I think it guarantees that global variables are set to 0, though. Gary