Azinix

circbuf.c File Reference

Circular buffer code. More...

#include "circbuf.h"

Go to the source code of this file.

Typedefs

typedef Circbuf_test_t Circbuf_test_t

Functions

Circbuf_tCircbuf_DoAlloc (int entrySize, int N)
 Allocate a circular buffer with entries of size entrySize.
int Circbuf_Num (Circbuf_t *cb)
 Number of entries.
int Circbuf_Print (Circbuf_t *cb)
 Print the queue.
int Circbuf_test ()
 Test code for circular buffer.


Detailed Description

Circular buffer code.

Definition in file circbuf.c.


Typedef Documentation

typedef struct Circbuf_test_t Circbuf_test_t

Definition at line 87 of file circbuf.c.


Function Documentation

Circbuf_t* Circbuf_DoAlloc ( int  entrySize,
int  N 
)

Allocate a circular buffer with entries of size entrySize.

Definition at line 28 of file circbuf.c.

int Circbuf_Num ( Circbuf_t cb  ) 

Number of entries.

Definition at line 46 of file circbuf.c.

int Circbuf_Print ( Circbuf_t cb  ) 

Print the queue.

Definition at line 67 of file circbuf.c.

int Circbuf_test (  ) 

Test code for circular buffer.

Definition at line 96 of file circbuf.c.