home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_07_08
/
v7n8078a.txt
< prev
next >
Wrap
Text File
|
1989-10-02
|
784b
|
29 lines
*****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
**********