Help with C clearenv and setenv

Sam Habiel
Wed May 30 16:55:00 GMT 2018

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?

(About me:

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list