Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Roen-Ro committed Feb 21, 2019
2 parents 07788c8 + d968a2d commit dc1d81c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CircularBuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ size_t CircularBufferGetDataSize(CircularBuffer cBuf)

void CircularBufferPush(CircularBuffer cBuf,void *src, size_t length)
{
if(length == 0)
return;

size_t writableLen = length;
void *pSrc = src;

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Finally, if two elements are now removed then what would be returned is not 3 &

![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Circular_buffer_-_X789ABX.svg/500px-Circular_buffer_-_X789ABX.svg.png)

## interfaces
## Interfaces
``` C
typedef struct s_circularBuffer* CircularBuffer;

Expand Down

0 comments on commit dc1d81c

Please sign in to comment.