add changelog
[platform/upstream/gdbm.git] / compat / delete.c
1 /* delete.c - Remove the key and its associated data from the database.
2    This is the original unix interface name.  */
3
4 /* This file is part of GDBM, the GNU data base manager.
5    Copyright (C) 1990, 1991, 1993, 2007, 2011 Free Software Foundation,
6    Inc.
7
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)
11    any later version.
12
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.
17
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/>.   */
20
21 /* Include system configuration before all else. */
22 #include "autoconf.h"
23 #include "dbm-priv.h"
24
25 /* Remove the KEYed item and the KEY from the database. */
26
27 int
28 delete (datum key)
29 {
30   return dbm_delete (_gdbm_file, key);
31 }