17 char *copy = malloc(strlen(str) + 1);
19 return strcpy(copy, str);
32 g->
data = (
long*) calloc(x_steps,
sizeof(
long));
72 long off_screen_value = g->
y_max + 1;
73 if (off_screen_value < g->y_max) {
74 off_screen_value = g->
y_min - 1;
75 }
if (off_screen_value > g->
y_min) {
76 off_screen_value = LONG_MIN;
78 return off_screen_value;
long GLOffScreenValue(graph *g)
long most_recent_data_point
char * GLSetTitle(graph *g, char *title)
char * strdup(const char *str)
void GLDestroyGraph(graph *g)
void GLLabelAxes(graph *g, char *x_axis, char *y_axis)
graph * GLCreateGraph(long x_min, long x_max, long y_min, long y_max, long x_steps)
unsigned long x_index_max
void GLPushDataPoint(graph *g, long y_val)
bool all_data_points_valid