Reference

new_pdb(3)

create and destroy Palm database structures

NAME

new_pdb free_pdb – create and destroy Palm database structures

LIBRARY

libpdb

SYNOPSIS

#include <pdb.h>

struct pdb *

new_pdb();

void

free_pdb(struct pdb *db);

DESCRIPTION

new_pdb allocates and initializes a new, empty struct pdb structure.

free_pdb frees the memory used by a struct pdb previously returned by new_pdb, as well as any records, resources, AppInfo or sort blocks the database may contain.

RETURN VALUE

new_pdb returns a pointer to the newly-allocated struct pdb, or NULL in case of error.

SEE ALSO

libpdb(3), pdb_Read(3).