cbuf_make -> cbuf_create
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ CircBuf *cb; // buffer instance
|
|||||||
|
|
||||||
void main()
|
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!
|
// now it's ready for use!
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -46,7 +46,7 @@ static void read_buffer(const CircBuf *cb, size_t index, void *dest)
|
|||||||
|
|
||||||
|
|
||||||
/** Create a cbuf */
|
/** 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.
|
// add one, because one is always unused.
|
||||||
capacity++;
|
capacity++;
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ typedef struct circbuf_struct CircBuf;
|
|||||||
* @param elem_size : size of one element
|
* @param elem_size : size of one element
|
||||||
* @return pointer to the buffer instance
|
* @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);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user