pdb_Read3
Read, write palm database files
Usage
#include <pdb.h>
struct pdb *
pdb_Read(int fd);
int
pdb_Write(const struct pdb *db, int fd);
Library
libpdb
Overview
pdb_Read reads a Palm PDB or PRC file from the file descriptor fd, which must already have been opened for reading. fd must be seekable.
pdb_Read allocates a new struct pdb and returns a pointer to it. This should later be freed using free_pdb().
pdb_Write() writes the PDB pointed to by db to the file descriptor fd, which must already be opened for writing. fd need not be seekable.
Return value
pdb_Read returns a pointer to a newly-allocated struct pdb if successful, or NULL in case of error.
pdb_Write returns 0 if successful, or a negative value in case of error.
Releases
Unchanged in 3 releases since Debian 3.0 (Woody).