source: gaycko/src/gaycko.c @ 4716

Last change on this file since 4716 was 4716, checked in by Jean-Yves Lamoureux, 9 years ago
  • Initial commit -This line, and those below, will be ignored--

A gaycko/tests
A gaycko/tests/lnx.html
A gaycko/tests/html.html
A gaycko/tests/simple.html
A gaycko/configure.ac
A gaycko/src
A gaycko/src/dom
A gaycko/src/dom/dom.c
A gaycko/src/dom/dom.h
A gaycko/src/helpers
A gaycko/src/helpers/str.c
A gaycko/src/helpers/str.h
A gaycko/src/gaycko.h
A gaycko/src/parsing
A gaycko/src/parsing/parse.h
A gaycko/src/parsing/parse.c
A gaycko/src/io
A gaycko/src/io/file.c
A gaycko/src/io/http.c
A gaycko/src/io/file.h
A gaycko/src/io/http.h
A gaycko/src/io/io.c
A gaycko/src/io/io.h
A gaycko/src/Makefile.am
A gaycko/src/gaycko.c
A gaycko/Makefile.am
AM gaycko/bootstrap

File size: 306 bytes
Line 
1#include "gaycko.h"
2#include "io/io.h"
3#include "parsing/parse.h"
4
5int main(int argc, char *argv[]) {
6
7        gIO *stream = gaycko_open(argv[1]);
8        if(!stream) {
9                printf("Can't open %s\n", argv[1]);   
10                return -1;
11        }
12
13        gaycko_parse(gaycko_get_data(stream), gaycko_get_size(stream));
14
15        gaycko_close(stream);
16}
17
18
Note: See TracBrowser for help on using the repository browser.