NAME
snmdb_save_element - save an element record into the file specified in ASCII format
SYNOPSIS
include <netmgt/netmgt_db.h>
snmdb_save_element(buffer, fileptr)
snmdb_buffer *buffer;
FILE *fileptr;
DESCRIPTION
snmdb_save_element writes the contents in the element buffer into the file specified in ASCII format, which is the same format as the Console's Save function under the File button. The buffer should be loaded with an element by calling snmdb_read(3n). The fileptr is the file pointer of the output file, which should be opened before calling snmdb_save_element. The user is responsible for validating the output file and closing the file after the saving is done completely.
INPUT ARGUMENTS
buffer
pointer to a structure of type snmdb_buffer.
fileptr
file pointer to the output file.
RETURN VALUE
Returns 1 if the element has been written successfully. Otherwise, it returns 0, and the external variable snm_error(3n) is set to the error reason.