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`.




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

Search: