logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

VistaIOSetProgramName - register a program name for error messages

Arguments

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

Author

       Art Pope <pope@cs.ubc.ca>

       Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>

VistaIO Version 1.2.14                            24 April 1993                         VistaIOSetProgramName(3)

Description

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

intmain(argc,argv)intargc;char*argv[];{
                   ...
                   VistaIOSetProgramName(argv[0]);
                   ...
              }

Name

       VistaIOSetProgramName - register a program name for error messages

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.

See Also

VistaIOError(3), VistaIOWarning(3), VistaIOSetErrorHandler(3), VistaIOSetWarningHandler(3),

Synopsis

voidVistaIOSetProgramName(name)VistaIOStringConstname

See Also