0

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.

CodenameLambda
  • 1,486
  • 11
  • 23

1 Answers1

1

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.

K Richardson
  • 1,640
  • 1
  • 10
  • 14