Opens a database for access.
C Library (libc.a)
#include <ndbm.h>
DBM *dbm_open ( file, flags, mode)
char *file;
int flags, mode;
The dbm_open subroutine opens a database for access. The subroutine opens or creates the file.dir and file.pag files, depending on the flags parameter. The returned DBM structure is used as input to other NDBM routines.
| file | Specifies the path to open a database. |
| flags | Specifies the flags required to open a subroutine. |
| mode | Specifies the mode required to open a subroutine. |
For more information about the flags and mode parameters, see the open, openx, or creat subroutine.
Upon successful completion, this subroutine returns a pointer to the DBM structure. If unsuccessful, it returns a null value.
The dbminit subroutine, open, openx, or creat subroutine.
List of NDBM and DBM Programming References and NDBM Overview in AIX 5L Version 5.2 Communications Programming Concepts..