Caution: This version of this document is no longer maintained. For the latest documentation, see


The basename of the program being executed


char * __progname


This global variable holds 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.


QNX Neutrino

See also:

_cmdfd(), _cmdname()