Subject: Problem with getenv("HOME")
From: [email-masked] (Wolfgang Stuerzlinger)

28 Oct 1997 11:50:09 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Reply-To: Wolfgang Stuerzlinger <[email-masked]>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
To: [email-masked]
Cc: [email-masked]

By default the environment variable HOME is not set in the GNU-Win32
environment.
When getenv is called with ("HOME") as argument the return value is a
string "(null)" instead of a NULL pointer. Is this a "standard" behaviour 
or a bug?

Wolfgang Stuerzlinger

P.S.: This breaks commonly used code sequences like:
	sprintf(newName,"%s/%s",getenv("HOME"),fileName);
--
Wolfgang Stuerzlinger
Dept. of Computer Science, UNC, Chapel Hill, NC 27599-3175
[email-masked]          http://www.cs.unc.edu/~stuerzl

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".