diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-11-04 14:03:01 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-11-04 14:03:01 +0000 |
commit | 2c021d8ffbbf95ecad904834418297cdb890519c (patch) | |
tree | 4e722bbe7b2327edec39da0b4d6e4c56124620de /examples | |
parent | d1a08213e07a84fa613c901a3f3462781685c69b (diff) | |
download | libdom-2c021d8ffbbf95ecad904834418297cdb890519c.tar.gz libdom-2c021d8ffbbf95ecad904834418297cdb890519c.tar.bz2 |
Make the example a tad more useful
Diffstat (limited to 'examples')
-rw-r--r-- | examples/.gitignore | 1 | ||||
-rw-r--r-- | examples/dom-structure-dump.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/.gitignore b/examples/.gitignore new file mode 100644 index 0000000..5761abc --- /dev/null +++ b/examples/.gitignore @@ -0,0 +1 @@ +*.o diff --git a/examples/dom-structure-dump.c b/examples/dom-structure-dump.c index 0e691e0..833bbe1 100644 --- a/examples/dom-structure-dump.c +++ b/examples/dom-structure-dump.c @@ -315,7 +315,7 @@ int main(int argc, char **argv) dom_node *root = NULL; /* root element of document */ /* Load up the input HTML file */ - doc = create_doc_dom_from_file("files/test.html"); + doc = create_doc_dom_from_file((argc > 1) ? (argv[1]) : "files/test.html"); if (doc == NULL) { printf("Failed to load document.\n"); return EXIT_FAILURE; |