I know you can theoretically pass anything you want to the application, so why include the applications name there, as it isn't even a safe way to check it?
It doesn't seem like there would be any use to it.
I know you can theoretically pass anything you want to the application, so why include the applications name there, as it isn't even a safe way to check it?
It doesn't seem like there would be any use to it.
It can be useful to find out how the program was called. You may have multiple symlinks to the same file, and argv[0] can be used to determine how the program was invoked.