Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. void printRingBuffer(RingBuffer * ringbuffer)
  2. {
  3. if(size(ringbuffer)==0)
  4. {
  5. return;
  6. }
  7.  
  8. for(int i=ringbuffer->tail;i<ringbuffer->head;i++)
  9. {
  10. printf("%s\n",ringbuffer->data[i % ringbuffer->capacity]);
  11. }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement