create vector b
Definition
vector_t *create_vector_b(unsigned int buffer);
Description
Allocates memory for the vector structure with a custom element buffer size.
Parameters
- buffer
- Size of the buffer
Return Value
Allocated vector_t structure.
Example
#include <stdio.h> #include <libc/vector.h> int main(int argc, char *argv[]) { vector_t *vector = create_vector_b(100); destroy_vector(vector); return 0; }