kdata_get — get
points in a data set
#include <cairo.h>
#include <kplot.h>
int
kdata_get(const struct kdata
*data, size_t pos, struct kpair
*kp);
The kdata_get function loads the
kp pair object with the data at absolute position
pos of data source data.
kdata_get returns 0 if the position
pos is not within the allocated number of pairs, else
it returns non-zero.