delorie.com/archives/browse.cgi | search |
From: | Clinton Eads <c-eads AT ti DOT com> |
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 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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 <stdlib.h> that can be used to access variables in the environment space. -- Regards, Clinton Eads c-eads AT ti DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |