Article View: comp.sys.ibm.pc.programmer
Article #1557Unsetting environment vars in Turbo C
From: Stephen M. Dunn
Date: Tue, 13 Mar 1990 19:42
Date: Tue, 13 Mar 1990 19:42
18 lines
1160 bytes
1160 bytes
Does anyone know how to unset an environment variable in Turbo C
2.0? I've tried code of the form:
putenv ("foo=");
but it just changes the entry for foo to say
foo=
and I can't find any other functions that make changes to the environment.
Do I have to go in and play around with the environment pointers
directly?
--
Stephen M. Dunn cs4g6ag@maccs.dcss.mcmaster.ca
<std_disclaimer.h> = "\nI'm only an undergraduate!!!\n";
****************************************************************************
"So sorry, I never meant to break your heart ... but you broke mine."
Technical Details
Message-ID:
<25FD4D3F.16447@maccs.dcss.mcmaster.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!maccs!cs4g6agShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!maccs!cs4g6ag From: cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn) Newsgroups: comp.sys.ibm.pc.programmer,alt.msdos.programmer Subject: Unsetting environment vars in Turbo C Message-ID: <25FD4D3F.16447@maccs.dcss.mcmaster.ca> Date: 13 Mar 90 19:42:55 GMT Reply-To: cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn) Followup-To: comp.sys.ibm.pc.programmer Organization: McMaster University, Hamilton, Ontario Lines: 18