eSNMP API Routines
_ _set_progname
_ _set_progname
Specifies the program name that will be displayed in log messages. This routine
should be called from the main during program initialization. It needs to be
called only once.
Format
_ _set_progname ( char *prog );
Arguments
prog
The program name as taken from
argv[0]
, or some other identification for
entity-calling logging routines.
Example
#include "esnmp.h"
__set_progname(argv[0]);
5–62 eSNMP API Routines