public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Help with C clearenv and setenv
@ 2018-05-30 16:55 Sam Habiel
  2018-05-31  3:56 ` Keith Christian
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Sam Habiel @ 2018-05-30 16:55 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-06-06 13:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-30 16:55 Help with C clearenv and setenv Sam Habiel
2018-05-31  3:56 ` Keith Christian
2018-05-31  8:58   ` Sam Habiel
2018-05-31 21:53     ` Keith Christian
2018-05-31  9:38 ` Marco Atzeri
2018-05-31 13:22   ` Eliot Moss
2018-05-31 17:57 ` Eric Blake
2018-06-04 19:39   ` Ken Brown
2018-06-04 20:22     ` Sam Habiel
2018-06-06 13:02       ` Sam Habiel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).