Updated: October 28, 2024 |
The basename of the program being executed
char * __progname
This global variable holds the portion of argv[0] starting after the last /, if any; otherwise, argv[0]. It's normally the basename of the program being executed.