home *** CD-ROM | disk | FTP | other *** search
-
-
- *****Listing 8*****
-
-
-
- typedef unsigned long signature;
- typedef struct header {
- signature signature; /* special signature */
- int size; /* declare as int: 16 or 32 bit */
- struct header * fwd; /* forward pointer */
- struct header * bwd; /* backward pointer */
- long count; /* event counter at allocation */
- unsigned short checksum; /* checksum of data */
- char * name; /* name pointer for event */
- } header;
-
- typedef struct trailer {
- signature signature;
- } trailer;
-
- static header root;
- static long event_counter = 0L;
-
- #define SIGNATURE 0x12345678L
-
- **********
-
-