blob: ab49f4f13618501381e8ef6615a19ad04830b4b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "graphs.h"
#include <stdio.h>
int create_graph (vcomponent* ev, char* filename) {
FILE* f = fopen(filename, "w");
fputs("digraph {\n rankdir=LR;", f);
TRIE_DOT(content_line)(&ev->clines, f);
fputs("}", f);
fclose(f);
printf("Wrote '%s' to '%s'\n", ev->filename, filename);
return 0;
}
|