Xref: utzoo comp.sys.ibm.pc.programmer:381 alt.msdos.programmer:1380 Path: 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 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 = "\nI'm only an undergraduate!!!\n"; **************************************************************************** "So sorry, I never meant to break your heart ... but you broke mine."