From: Alexander Lehmann Newsgroups: comp.os.msdos.djgpp Subject: Re: variables losing their values after function returns Date: 20 Mar 1997 10:21:44 GMT Organization: Technische Hochschule Darmstadt Lines: 23 Message-ID: <5gr33o$10kc@rs18.hrz.th-darmstadt.de> References: <332F3345 DOT 5CB3 AT uit DOT net> <3330AD46 DOT 7E0DD6D4 AT alcyone DOT com> NNTP-Posting-Host: fb0401.mathematik.th-darmstadt.de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Erik Max Francis wrote: : Chris Larson wrote: : > If anyone could help I would greatly appreciate it. : > Please feel free to criticize any aspect of my code - I'm fairly new to : > this. I have attached the source code and the *.asc file that I am : > trying to read in so that you can see exactly what I am trying to do. : Uh, why don't you try trimming the program down to the smallest one that : reproduces the error? Attaching 71 pages of output isn't exactly helpful. Hm, I missed the actual program, but I would guess that he was trying to store something in automatic variables. So the answer probably is, make the vars static. bye, Alexander -- Alexander Lehmann, alex AT hal DOT rhein-main DOT de | "On the Internet, lehmann AT mathematik DOT th-darmstadt DOT de | nobody knows lehmann AT usa DOT net (permanent forward) | you're a dog."