From: Clinton Eads Newsgroups: comp.os.msdos.djgpp Subject: Re: Variables passed to the OS Date: Fri, 19 Sep 1997 13:39:46 -0500 Organization: Texas Instruments Lines: 21 Message-ID: <3422C6F2.12DF1348@ti.com> References: <34209CC9 DOT 5AFE AT utoronto DOT ca> <34229E4F DOT A07194BF AT rpi DOT edu> Reply-To: c-eads AT ti DOT com NNTP-Posting-Host: cna0207960a.dseg.ti.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Brian Osman wrote: > > Hmmm, > I'm not sure this is an answer to your problem, but you might try > adding > the third parameter to main(). > > int main(int argc, char *argv[], char *env[]) > > (The reason I say not sure, is that I don't know if this works in > DJGPP/DOS.) Anyone else? > > Brian In C, there is the char *getenv(const char *name) found the the that can be used to access variables in the environment space. -- Regards, Clinton Eads c-eads AT ti DOT com