Brian,
If you still need it...
NAME
Doc (Pilot standard text document) file format
SYNOPSIS
struct doc_record0 { /* 16 bytes total */
Word version; /* 1 = plain text, 2 = compressed text */
Word reserved1;
DWord doc_size; /* uncompressed size in bytes */
Word num_recs; /* not counting itself */
Word rec_size; /* in bytes: usually 4096 (4K) */
DWord reserved2;
};
DESCRIPTION
The Doc file format is the standard text document format
used by all models of the 3Com PalmPilot and the IBM Work-
pad. A Doc file is a pdb(4) file: this manual page
describes only those aspects specific to Doc files.
A Doc file consists of 0 to num_recs records; record 0 is
the header for the document. (This header is distinct from
the pdb(4) header.) The remaining records contain text,
either plain or compressed depending upon version.
Word Sizes
In the synopsis above, the types ``Word'' and ``DWord'' are
used just as in the Pilot headers. The type ``Word'' is 16
bits; the type ``DWord'' is 32 bits. Both are in big-endian
format.
Compression Format
A character ``c'' in a compressed record is in one of four
classes:
01-08 Copy ``c'' bytes
00,09-7F Self
80-BF Sequence
C0-FF A space plus the ASCII character ``c ^ 0x80''
--Alan
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Brian
> Hall
> Sent: Thursday, March 16, 2000 4:36 PM
> To: Palm Developer Forum
> Subject: Wanted: Sample code for creating DOC files (palmos)
>
>
> Wanted: Sample code for creating DOC files (palmos)
>
> Looking for some PalmOS sample code to create doc files (just straight
> text) on the fly from a PalmOS app.
>
> Brian
>
> _____________________________________________________________________
> Mark/Space Softworks voice 408-293-7299
> 111 West Saint John, 3rd Floor fax 408-293-7298
> San Jose, CA 95113 <http://www.markspace.com>
>
> PalmOS, Mac OS, Windows and Web Software & Solutions:
>
> PageNOW! Wireless Messaging, PhoneWatcher Caller ID,
> Online & Communicate terminal emulation and serial debugging
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html