Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setenv memory leak



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






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.