getprogname()

QNX SDP8.0C Library ReferenceAPIDeveloper

Get the name of the current program

Synopsis:

#include <sys/process.h>

char const * getprogname(void);
            

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The getprogname() function gets the name of the current program. By default, this is the base name for the program's executable.

You can set the name of the current program by calling setprogname().

Returns:

The base name for the program's executable.

Classification:

QNX OS

Safety:
Cancellation pointNo
Signal handlerYes
ThreadYes
Page updated: