This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Help with C clearenv and setenv
- From: Sam Habiel <sam dot habiel at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 30 May 2018 10:48:39 -0400
- Subject: Help with C clearenv and setenv
I have code for a database I am porting to Cygwin.
Part of that code is a clearenv() then a couple of setenvs. There is
an ifdef for Cygwin, as it doesn't implement clearenv. It just sets
environ = NULL. Well--that really breaks setenv! It returns a "Bad
Poniter" error (-1).
What is the correct way to clear environment variables in Cygwin?
--Sam
(About me: http://smh101.com/)
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple