8 // Add some helper functions for C arrays
9 int *int_array(int size) {
10 return (int *) malloc(sizeof(int)*size);
12 void int_destroy(int *a) {
15 void int_set(int *a, int i, int val) {
18 int int_get(int *a, int i) {
23 graph *mygraph_new (int width, int height);
24 graph *mygraph_make_graph (graph *mygraph, float min_x,
25 float max_x, float min_y, float max_y, int tickgran);
26 void mygraph_cleanup (graph *mygraph);
27 void mygraph_to_file (graph *mygraph, char *filename);
28 void mygraph_plot_series (graph *mygraph, int *xvals, int *yvals, int n_vals,
29 float r, float g, float b);