4 ms·
So what if you call getenv twice? const char* foo = getenv("FOO"); const char* bar = getenv("BAR"); foo and bar should both be valid here. Sure, you c
by quotemstr 10y ago
So what if you call getenv twice?
const char* foo = getenv("FOO");
const char* bar = getenv("BAR");
foo and bar should both be valid here. Sure, you could allocate an arbitrary amount of thread-local storage, but that's still a leak.
- MaulingMonkey 10y agoGuess there's a reason FreeBSD isn't doing it :D.