kdata_vector_alloc —
allocate vector data for plotting
#include <cairo.h>
#include <kplot.h>
struct kdata *
kdata_vector_alloc(size_t
stepsz);
The kdata_vector_alloc function creates a
reference-counted data sources for
kplot(3).
It is growable via
kdata_vector_append(3).
All x-values and y-values are initially set to zero.
kdata_vector_alloc returns
NULL if memory allocation failed.