pdb_DeleteRecordByID(3)

pdb_DeleteRecordByID3

Short description

Usage

#include <pdb.h>

int

pdb_DeleteRecordByID(struct pdb *db, const udword id);

Library

libpdb

Overview

pdb_DeleteRecordByID looks for a record in the database pointed to by db whose ID is id, removes it from the database, and frees the memory taken up by that record.

Return value

pdb_DeleteRecordByID returns 0 if successful, or a negative value otherwise. If there was no record in db with ID id, that is considered a success, since the record was to be deleted anyway.

Releases

Unchanged in 3 releases since Debian 3.0 (Woody).

  1. 3.0–4.0

Authors

Andrew Arensburger ⟨[email protected]⟩

From coldsync 3.0+pre3-3 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.