Table of Contents

NAME

QccGetProgramName - program name

SYNOPSIS

#include "libQccPack.h"

int QccGetProgramName(QccString program_name);

DESCRIPTION

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.

SEE ALSO

QccInit(3) , QccPack(3) , basename(1)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads