Re: setenv memory leak
Re: setenv memory leak
- Subject: Re: setenv memory leak
- From: Tommy Nordgren <email@hidden>
- Date: Mon, 30 Oct 2006 16:54:29 +0100
On 30 okt 2006, at 14.06, email@hidden wrote:
Just documenting a bit for anybody out there running into the same
problem
: g++ has a bit of a memory leak in its setenv function on os X (xcode
2.2)
Fbsd used to have it too, on my FreeBSD 6.1-RELEASE ws at work it
seems to
be patched.
us = mktime(&loctime);
setenv("TZ", "GMT", 1);
struct tm *theirtime = localtime(&us);
setenv("TZ", "CET", 1);
To translate UK time to BE time.
Kris
You don't need so set environment variables to attain this:
int
gettimeofday(struct timeval *tp, struct timezone *tzp);
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden