eSNMP API Routines sprintoid
sprintoid
Converts an OID into a
Format
char *sprintoid ( char *buffer, oid *oid );
Description
An OID can have up to 128 elements. A
Return Values
The return value points to its first argument.
Example
#include <esnmp.h> #define SOMETHING_BIG 1024 OID abc;
char buffer[SOMETHING_BIG];
:
:assume abc gets initialized with some value
printf("dots=%s\n", sprintoid(buffer, &abc));
eSNMP API Routines