treebird/static/bar_graph.ctmpl
nekobit f1a407c79f Templatify 1/1
FossilOrigin-Name: 6ca19819ff1547744a39e4d248a7803bf6dfd8f20ae64e704f044200746acaf1
2022-05-31 21:32:36 +00:00

12 lines
506 B
Text

#ifndef __bar_graph
#define __bar_graph
static const char data_bar_graph[] = {0X3C,0X64,0X69,0X76,0X20,0X63,0X6C,0X61,0X73,0X73,0X3D,0X22,0X62,0X61,0X72,0X2D,0X67,0X72,0X61,0X70,0X68,0X22,0X3E,0XA,0X20,0X20,0X25,0X73,0XA,0X3C,0X2F,0X64,0X69,0X76,0X3E,0};
struct bar_graph_template {const char* graph;
};
char* tmpl_gen_bar_graph(struct bar_graph_template* data, unsigned* size){
char* ret;
unsigned s = easprintf(&ret, data_bar_graph, data->graph?data->graph:"");
if (size) *size = s;
return ret;
}
#endif