eSNMP API Routines
sprintoid
sprintoid
Converts an
OID
into a null-terminated string.
Format
char *sprintoid ( char *buffer,
oid *oid );
Description
An
OID
can have up to 128 elements. A full-sized
OID
can require a large buffer.
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 5–39