Depth-Studios
Welcome guest (Login / Register)
create vector

Definition


vector_t *create_vector();


Description


Allocates memory for the vector structure

Parameters




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();
 
	destroy_vector(vector);
 
	return 0;
}