VistaIOSetProgramName(3)

VistaIOSetProgramName3

Register a program name for error messages

Usage

void VistaIOSetProgramName (name)
VistaIOStringConst name

Arguments

name

Specifies the program's name as a null-terminated string, or is NULL to indicate that no program name should be registered.

Overview

VistaIOSetProgramName determines what, if any, program name will be included in subsequent error messages composed by VistaIOError (3), VistaIOSystemError(3), VistaIOWarning(3), and VistaIOSystemWarning(3).

Initially, no program name is registered. If VistaIOSetProgramName is called with a string, that string is registered as the program name. If VistaIOSetProgramName is called with an argument of NULL , any previously-registered name is forgotten.

Examples

int main (argc, argv)
int argc;
char *argv[];
{
	...
	VistaIOSetProgramName (argv[0]);
	...
}

Notes

VistaIOSetProgramName does not make its own copy of the string it is passed. Consequently, storage used for the string must be maintained by the caller.

Releases

Unchanged in 6 releases since Debian 8 (Jessie).

  1. 8–13

Author

Art Pope <[email protected]>

Adaption to vistaio: Gert Wollny <[email protected]>

From libvistaio-dev 1.2.19-3+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.