Testing circular buffer
Fixed buffer.c pointer to int issue