On Mar 27, 2006, at 3:29 PM, Mathieu Bouchard wrote:
On Mon, 27 Mar 2006, Hans-Christoph Steiner wrote:
I got env vars working on Windows, thanks to
ExpandEnvironmentStrings(). I couldn't find an equivalent for GNU libc, Mac OS X, or GNU/Linux. Anyone know of a function like that?man getenv man setenv
Not quite, ExpandEnvironmentStrings() does something different:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ sysinfo/base/expandenvironmentstrings.asp
getenv() is the same on Windows, setenv() == _putenv() on Windows
.hc
As we enjoy great advantages from inventions of others, we should
be glad of an opportunity to serve others by any invention of ours;
and this we should do freely and generously.
- Benjamin Franklin