dpkg 1.21.11
Functions
Program name handling
Collaboration diagram for Program name handling:

Functions

void dpkg_set_progname (const char *name)
 Set the program name. More...
 
const char * dpkg_get_progname (void)
 Get the program name. More...
 

Detailed Description

Function Documentation

◆ dpkg_get_progname()

const char * dpkg_get_progname ( void  )

Get the program name.

The program name might have been set previously by dpkg_set_progname(), but if not this function will try to initialize it by system dependent means, so it's half safe to not call dpkg_set_progname() at all. At worst the function might return NULL in that case.

Returns
A pointer to a static buffer with the program name.

Referenced by assert_feature(), do_internerr(), dpkg_warning_printer(), info(), notice(), parse_force(), and print_fatal_error().

Here is the caller graph for this function:

◆ dpkg_set_progname()

void dpkg_set_progname ( const char *  name)

Set the program name.

This function will set the program name which will be used by error reporting functions, among others.

Parameters
nameThe new program name.