Skip to content

ademkaya/circularBuffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circular Buffer

Simple circular buffer library written in C language.

Usage

	#define		CBSize		8
	CircularQueFunctions_Typedef* CQue = NULL;
	CircularQue_Typedef*		  ptr  = NULL;
	int main(){
		Initialize_CircularQueLib(&CQue);
		ptr = CQue->Init_CircularQue(CBSize);
		CQue->Clear(ptr);

		CQue->Push(ptr, (void*)5);
		int g = CQue->Pop(ptr);

		CQue->Free(&ptr);

		return 0;
	}

Note

Data taken as void pointer (void*) and used as it is. If the data pointer is changed also circular buffer includings will be altered.

About

circular buffer implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages