pdb_LoadHeader3
Read the header of a palm database file
Usage
#include <pdb.h>
int
pdb_LoadHeader(int fd, struct pdb *db);
Library
libpdb
Overview
pdb_LoadHeader reads the header of a Palm PDB or PRC file from the file descriptor fd, which must already have been opened for reading. fd must be seekable. pdb_LoadHeader fills in the struct pdb pointed to by db, which must already have been allocated.
It is not possible to append the rest of the file's data to db. If you want to read the rest of the file, you need to read it from scratch with pdb_Read().
pdb_LoadHeader is deprecated. The only recommended use for it is to get an overview of a set of PDB or PRC files.
Return value
pdb_LoadHeader returns 0 if successful, or a negative value otherwise.
Releases
Unchanged in 3 releases since Debian 3.0 (Woody).