@ -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);
/**