1 LIBRRD(1) rrdtool LIBRRD(1)
6 librrd - RRD library functions
9 l\bli\bib\bbr\brr\brd\bd contains most of the functionality in R\bRR\bRD\bDT\bTo\boo\bol\bl. The command line
10 utilities and language bindings are often just wrappers around the code
16 incomplete as long as this warning persists. For more information
22 that the random number generator is seeded exactly once per pro-
23 cess.
25 r\brr\brd\bd_\b_a\bad\bdd\bd_\b_p\bpt\btr\br(\b(v\bvo\boi\bid\bd *\b**\b**\b*d\bde\bes\bst\bt,\b, s\bsi\biz\bze\be_\b_t\bt *\b*d\bde\bes\bst\bt_\b_s\bsi\biz\bze\be,\b, v\bvo\boi\bid\bd *\b*s\bsr\brc\bc)\b)
26 Dynamically resize the array pointed to by "dest". "dest_size" is
29 stored at the end of the new "dest". Returns 1 on success, 0 on
30 failure.
32 type **arr = NULL;
33 type *elem = "whatever";
34 size_t arr_size = 0;
35 if (!rrd_add_ptr(&arr, &arr_size, elem))
36 handle_failure();
38 r\brr\brd\bd_\b_a\bad\bdd\bd_\b_s\bst\btr\brd\bdu\bup\bp(\b(c\bch\bha\bar\br *\b**\b**\b*d\bde\bes\bst\bt,\b, s\bsi\biz\bze\be_\b_t\bt *\b*d\bde\bes\bst\bt_\b_s\bsi\biz\bze\be,\b, c\bch\bha\bar\br *\b*s\bsr\brc\bc)\b)
39 Like "rrd_add_ptr", except adds a "strdup" of the source string.
41 char **arr = NULL;
42 size_t arr_size = NULL;
43 char *str = "example text";
44 if (!rrd_add_strdup(&arr, &arr_size, str))
45 handle_failure();
47 r\brr\brd\bd_\b_f\bfr\bre\bee\be_\b_p\bpt\btr\brs\bs(\b(v\bvo\boi\bid\bd *\b**\b**\b*s\bsr\brc\bc,\b, s\bsi\biz\bze\be_\b_t\bt *\b*c\bcn\bnt\bt)\b)
48 Free an array of pointers allocated by "rrd_add_ptr" or
49 "rrd_add_strdup". Also frees the array pointer itself. On return,
50 the source pointer will be NULL and the count will be zero.
52 /* created as above */
53 rrd_free_ptrs(&arr, &arr_size);
54 /* here, arr == NULL && arr_size == 0 */
58 1.3.99909060808 2009-04-20 LIBRRD(1)