carta
pdb_CopyResource(3)

pdb_CopyResource3

Short description

Part of pdb_CopyRecord(3).

Usage

struct pdb_record *

struct pdb_resource *

Library

libpdb

Overview

pdb_CopyRecord allocates a new struct pdb_record, copies to it the record pointed to by rec in database db, and returns a pointer to the newly-allocated struct pdb_record. This pointer must later be freed with pdb_FreeRecord(), unless it is added to another database using a function such as pdb_AppendRecord().

pdb_CopyResource allocates a new struct pdb_resource, copies to it the resource pointed to by rsrc in database db, and returns a pointer to the newly-allocated struct pdb_resource. This pointer must later be freed with pdb_FreeResource(), unless it is added to another database using a function such as pdb_AppendResource().

Return value

pdb_CopyRecord and pdb_CopyResource return a pointer to the newly-allocated struct pdb_record or struct pdb_resource if successful, or NULL otherwise.

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.