3 This file is part of gldbg
4 Copyright © 2009 Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
13 int main(int argc, char **argv)
22 in = fopen(argv[1], "r");
24 dec = glprint_new(NULL, 0);
27 buf = (char *)malloc(size);
34 memmove(buf, buf+start, end-start);
38 if(end<size && !feof(in))
39 end += fread(buf+end, 1, size-end, in);
42 start += gldecoder_decode(dec, buf+start, end-start);
43 printf("%s\n", glprint_get_buffer(dec));
47 gldecoder_delete(dec);