Table of Contents
QccGetProgramName - program name
#include "libQccPack.h"
int QccGetProgramName(QccString program_name);
QccGetProgramName()
returns the name of the program calling the QccPack library. The program
name is simply the filename of the calling program, any leading path characters
stripped away, similar to the operation of basename(1)
.
The name of the
current program is set when QccInit(3)
is called with a non-NULL pointer
for argv. QccGetProgramName() will return 0 on success, or a 1 in the
case that no valid program name has been set.
QccInit(3)
, QccPack(3)
,
basename(1)
Copyright (C) 1997-2021 James E. Fowler
Table of Contents