NAME
snmdb_read - reads an existing element from the database into the specified internal buffer. This is necessary for retrieving or updating any properties of a particular element
SYNOPSIS
#include <netmgt/netmgt_db.h>
snmdb_read(name, buffer)
char *name;
snmdb_buffer *buffer;
DESCRIPTION
snmdb_read reads an existing element into the buffer. You can then read or modify properties using snmdb_get_property(3n) or snmdb_set_property(3n). If you modify any properties, you will need to call snmdb_update(3n) in order to write the updated element back to the database.
INPUT ARGUMENTS
name name of the element.
buffer
pointer to a structure of type snmdb_buffer.
RETURN VALUE
Returns 1 if successful. Otherwise, it returns 0, and the external variable snm_error(3n) is set to the error reason.