Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dundarious
on Oct 17, 2023
|
parent
|
context
|
favorite
| on:
Getaddrinfo() on glibc calls getenv(), oh boy
Yes, on Linux you can even write `int main(int argc, char* argv[], char* envp[])`.
o11c
on Oct 17, 2023
[–]
`envp` is unsafe after `setenv` even in single-threaded programs though. So you really should use `environ`.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: