home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
netds
/
sna
/
aremote
/
queue.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-09
|
416b
|
21 lines
#ifndef __QUEUE_H__
#define __QUEUE_H__
typedef struct qnode_st {
struct qnode_st *next;
struct qnode_st *prev;
void *ptr;
int qnodeid; /* do not change */
} qnode;
typedef struct queue_st {
qnode *head;
qnode *tail;
} queue;
qnode *addtoq(queue *q, void *p);
void *removeheadfromq(queue *q);
void *removeqnodefromq(queue *q, qnode *t);
queue *newq(void);
#endif /* __QUEUE_H__ */