pdb_Write(3)

pdb_Write3

Read, write palm database files

Part of pdb_Read(3).

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 2 releases since Debian 3.1 (Sarge).

  1. 3.1–4.0

From coldsync 3.0+pre3-3 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.