1 /* delete.c - Remove the key and its associated data from the database.
2 This is the original unix interface name. */
4 /* This file is part of GDBM, the GNU data base manager.
5 Copyright (C) 1990, 1991, 1993, 2007, 2011 Free Software Foundation,
8 GDBM is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 GDBM is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
21 /* Include system configuration before all else. */
25 /* Remove the KEYed item and the KEY from the database. */
30 return dbm_delete (_gdbm_file, key);