aboutsummaryrefslogtreecommitdiff
path: root/graphs.c
blob: 931b181ba78a057776e134861c5e5e75881e7abc (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 (vevent* 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;
}