tcsv.h - ploot - simple plotting tools
(HTM) git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
tcsv.h (542B)
---
1 #ifndef CSV_H
2 #define CSV_H
3
4 #include <stdio.h>
5 #include <time.h>
6
7 /*
8 * List of values and timestamps. Both have their dedicated buffer
9 * so that the timestamp buffer can be shared across csv objects.
10 */
11 struct csv {
12 time_t *t; /* array of timestamps */
13 double *v; /* array of values */
14 size_t n; /* number of values */
15 char label[64]; /* for the legend */
16 };
17
18 /**/
19 void csv_addrow (struct csv *, size_t, char *);
20 void csv_labels (FILE *, struct csv **, size_t *);
21 void csv_values (FILE *, struct csv *, size_t);
22
23 #endif