delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | Cesar Rabak <csrabak AT uol DOT com DOT br> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: msdos / djgpp exporting env vars |
Date: | Mon, 04 Mar 2002 22:04:57 -0300 |
Lines: | 25 |
Message-ID: | <3C8419B9.697CDC90@uol.com.br> |
References: | <a60vlh$67h$1 AT iac5 DOT navix DOT net> |
NNTP-Posting-Host: | 200-221-14-196.dsl-sp.uol.com.br (200.221.14.196) |
Mime-Version: | 1.0 |
X-Trace: | fu-berlin.de 1015290389 11326375 200.221.14.196 (16 [39218]) |
X-Mailer: | Mozilla 4.77 [en] (Win98; U) |
X-Accept-Language: | pt-BR,es,en |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"Amber N. Stange" wrote: [snipped] > > Now of course when this program terminates the variable for user is not > going to still be set. If anyone understands what I am talking about... I > am wanting a way other than possibly reading a cfg file to set this and have > it become an environmental variable at least until the PC has been restarted > or the variable has been changed. Amber, This questions comes from time to time. The canonical answer is: there is no portable way of doing such a thing in C. In the past it used to be available in the Simtel mirrors some programs which used hacks for manipulating the so called parent environment. You'll need to search for such a program for the specific version of the Operating System you're running. HTH -- Cesar Rabak GNU/Linux User 52247. Get counted: http://counter.li.org/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |