Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
alerighi
on Sept 3, 2024
|
parent
|
context
|
favorite
| on:
Why bother with argv[0]?
Well, it could be for example that /proc is not mounted. A lot of software breaks for this, while really there is no need for it to be so. Also that approach only works on Linux, if you want to write a portable software what you do?
mbrumlow
on Sept 3, 2024
[–]
I am mainly pointing out that arg[0] is still valid. Writing portable software is an entirely different topic.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: