Standard C Library Functions getprogname(3C)
NAME
getprogname, setprogname - get or set the program name
SYNOPSIS
#include
const char *getprogname(void);void setprogname(const char *progname);
DESCRIPTION
The getprogname() function returns the name of the program. If the name has not yet been set, it returns NULL.The setprogname() function sets the name of the program to
be the last component of the progname argument. Since a pointer to the given string is kept as the program name, it should not be modified for the duration of the program.These functions are used by error-reporting routines to pro-
duce consistent output.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
SEE ALSO
err(3C), attributes(5)SunOS 5.11 Last change: 11 Oct 2010 1