Exec (operating System) - Prototypes - Arg0

The first argument arg0 should be the name of the executable file. Usually it is the same value as the path argument. Some programs may incorrectly rely on this argument providing the location of the executable, but there is no guarantee of this nor is it standardized across platforms.

Read more about this topic:  Exec (operating System), Prototypes