pdb_read(3)
NAME
pdb_Read pdb_Write - read, write Palm database files
LIBRARY
libpdb
SYNOPSIS
#include <pdb.h> struct pdb * pdb_Read(int fd); int pdb_Write(const struct pdb *db, int fd);
DESCRIPTION
- pdb_Read reads a Palm PDB or PRC file from the file descrip
- tor 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 de
- scriptor 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.
SEE ALSO
- libpdb(3), new_pdb(3), free_pdb(3).
- BSD Aug 16, 2001