KDATA_GET(3)

NAME
kdata_get - get points in a data set

LIBRARY
libkplot

SYNOPSIS
#include <cairo.h>
#include <kplot.h>
int
kdata_get(const struct kdata *data, size_t pos, struct kpair *kp);

DESCRIPTION
The kdata_get function loads the kp pair object with the data at absolute position pos of data source data.

RETURN VALUES
kdata_get returns 0 if the position pos is not within the allocated number of pairs, else it returns non-zero.

SEE ALSO
kplot(3)