Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, on Linux you can even write `int main(int argc, char* argv[], char* envp[])`.


`envp` is unsafe after `setenv` even in single-threaded programs though. So you really should use `environ`.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: