cbuf_make -> cbuf_create

master
Ondřej Hruška 9 years ago
parent 891c07f5fb
commit 4b297bc4dc
  1. 2
      circbuf/README.md
  2. 2
      circbuf/circbuf.c
  3. 2
      circbuf/circbuf.h

@ -30,7 +30,7 @@ CircBuf *cb; // buffer instance
void main()
{
cb = cbuf_make(32, sizeof(char)); // create a char buffer of size 32.
cb = cbuf_create(32, sizeof(char)); // create a char buffer of size 32.
// now it's ready for use!

@ -46,7 +46,7 @@ static void read_buffer(const CircBuf *cb, size_t index, void *dest)
/** Create a cbuf */
CircBuf *cbuf_make(size_t capacity, size_t elem_size)
CircBuf *cbuf_create(size_t capacity, size_t elem_size)
{
// add one, because one is always unused.
capacity++;

@ -37,7 +37,7 @@ typedef struct circbuf_struct CircBuf;
* @param elem_size : size of one element
* @return pointer to the buffer instance
*/
CircBuf *cbuf_make(size_t capacity, size_t elem_size);
CircBuf *cbuf_create(size_t capacity, size_t elem_size);
/**

Loading…
Cancel
Save