Y
Hacker News
new
|
ask
|
show
|
jobs
by
kazinator
514 days ago
I'm surprised C++ would have anything to say about
getenv
; mostly it just includes the standard C library via normative reference.
1 comments
davidt84
513 days ago
Nevertheless,
https://en.cppreference.com/w/cpp/utility/program/getenv
link
kazinator
513 days ago
Interesting. So in a multi-threaded C++ program that only calls the std:: getenv function, everything is fine.
If anything calls the C getenv function, like a third party library, things are maybe not fine.
link