__progname

Updated: October 26, 2022

The basename of the program being executed

Synopsis:

char * __progname

Description:

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.

Note: This variable isn't defined in any header file. If you want to refer to it, you need to add your own extern statement.

Classification:

QNX Neutrino