home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
c
/
ibmcom.arc
/
CIRC_BUF.H
next >
Wrap
Text File
|
1987-12-26
|
809b
|
20 lines
/* Include file for circ_buf.c and programs that use circular buffer
routines.
Contains structure definitions for a circular buffer.
*/
typedef struct {
char *address; /* begining address of buffer */
char *end; /* end address of circular buffer */
int length; /* length in bytes of circular buffer */
char *head; /* head pointer of newest or first byte is */
char *tail; /* tail pointer of oldest or last byte is */
int char_count; /* number of characters in buffer */
char overflow_flag; /* overflow flag, set if too many characters..*/
/* ...have tried to be put in buffer..*/
/* ...(set by interrupt "in" routines if buffer ..*/
/* ... is used for interrupt "in" routines) */
}circ_buffer_description;