dbm_delete Subroutine

Purpose

Deletes a key and its associated contents.

Library

C Library (libc.a)

Syntax

#include <ndbm.h>

int dbm_delete ( db,  key)

DBM *db;
datum key;

Description

The dbm_delete subroutine deletes a key and its associated contents.

Parameters

Item Description
db Specifies a database.
key Specifies the key to delete.

Return Values

Upon successful completion, this subroutine returns a value of 0. If unsuccessful, the subroutine returns a negative value.