KDATA_VECTOR_ALLOC(3)

NAME
kdata_vector_alloc - allocate vector data for plotting

LIBRARY
libkplot

SYNOPSIS
#include <cairo.h>
#include <kplot.h>
struct kdata *
kdata_vector_alloc(size_t stepsz);

DESCRIPTION
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.

RETURN VALUES
kdata_vector_alloc returns NULL if memory allocation failed.

SEE ALSO
kdata_vector_append(3), kplot(3)