Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
KDATA_BUCKET_ALLOC(3)	    Library Functions Manual	 KDATA_BUCKET_ALLOC(3)

NAME
       kdata_bucket_alloc -- allocate bucket data for plotting

LIBRARY
       library "libkplot"

SYNOPSIS
       #include	<cairo.h>
       #include	<kplot.h>

       struct kdata *
       kdata_bucket_alloc(size_t rmin, size_t rmax);

DESCRIPTION
       The   kdata_bucket_alloc	 function  creates  a  reference-counted  data
       sources for kplot(3), initially with x-values set  to  the  pair	 index
       starting	  at   rmin   and   y-values   to  zero.   It  is  similar  to
       kdata_array_alloc(3) except it uses a bucket data model:	 each  integer
       within  the  range rmin (inclusive) to rmax (non-inclusive) corresponds
       to   a	specific   bucket.    Bucket   values	are   modified	  with
       kdata_bucket_add(3) and kdata_bucket_set(3).

RETURN VALUES
       kdata_bucket_alloc returns NULL if memory allocation failed.

SEE ALSO
       kdata_array_alloc(3), kdata_bucket_add(3), kplot(3)

FreeBSD	ports 15.quarterly     January 16, 2015		 KDATA_BUCKET_ALLOC(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=kdata_bucket_alloc&sektion=3&manpath=FreeBSD+Ports+15.0.quarterly>

home | help