KDATA_VECTOR_ALLOC(3) Library Functions Manual KDATA_VECTOR_ALLOC(3)

NAME

kdata_vector_allocallocate vector data for plotting

LIBRARY

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)
February 7, 2015 OpenBSD 5.8