home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
ibmcom.zip
/
CIRC_BUF.H
< prev
next >
Wrap
Text File
|
1987-10-11
|
706b
|
17 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 for where to put the next byte */
char *tail; /* tail pointer of where 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 routines) */
}circ_buffer_description;