#include <ndbm.h>
int dbm_store (db, key, content, flags) DBM *db; datum key, content; int flags;
The dbm_store subroutine places data under a key.
db | Specifies the database to store. |
key | Specifies the input key. |
content | Specifies the value associated with the key to store. |
flags | Contains either the DBM_INSERT or DBM_REPLACE flag. |
Upon successful completion, this subroutine returns a value of 0. If unsuccessful, the subroutine returns a negative value. When the dbm_store subroutine is called with the flags parameter set to the DBM_INSERT flag and an existing entry is found, it returns a value of 1. If the flags parameter is set to the DBM_REPLACE flag, the entry will be replaced, even if it already exists.
This subroutine is part of Base Operating System (BOS) Runtime.
The store subroutine.
List of NDBM and DBM Programming References and NDBM Overview in AIX Version 4.3 Communications Programming Concepts.