Hacker News new | ask | show | jobs
by johnisgood 660 days ago
So wait, I should not use `argv` in C's main() or what?

Is it only speaking against `argv[0]` or `argv` in general?

What is this proposed solution if any?

What about `__progname`? The only issue here is that if `argv[0]` is a path, then `__progname` is only the filename. What if I want the path?