Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
getpgmname - get program name (extension)
&pagelevel(4)&pagelevel
Syntax | #include <stdlib.h> char *getpgmname(void); |
Description getpgmname()
returns the name of the calling program.
| getpgmname() returns the path name of the exec() function via which the program was started, that was passed as the first parameter. This path name may differ from argv[0] . For example, getpgmname() always returns the fully qualified path name for programs started directly from the shell, but argv[0] contains the name just as it was specified by the user.
BS2000 The result corresponds to argv[0] of the main function. (End) |
Return val. | Pointer to the program name. The function is always successful. |