diff options
author | Lloyd Hilaiel <lloyd@hilaiel.com> | 2011-04-22 16:52:23 -0600 |
---|---|---|
committer | Lloyd Hilaiel <lloyd@hilaiel.com> | 2011-04-22 16:52:23 -0600 |
commit | dd18f6182e58bb81368b30d33262e58fca7a532c (patch) | |
tree | e7767ad0ded6924ee6d9af4b59842148f9409cd6 /example | |
parent | aedaa9e449e03af866c0e594014cd7e78dc7c98b (diff) | |
download | yajl-dd18f6182e58bb81368b30d33262e58fca7a532c.tar.gz |
add a couple convenience routines for dealing with numbers, more copious yajl_tree reformatting
Diffstat (limited to 'example')
-rw-r--r-- | example/parse_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/parse_config.c b/example/parse_config.c index f5d4339..e5e32b4 100644 --- a/example/parse_config.c +++ b/example/parse_config.c @@ -60,7 +60,7 @@ main(void) { const char * path[] = { "Logging", "timeFormat", (const char *) 0 }; yajl_val v = yajl_tree_get(node, path, YAJL_TYPE_STRING); - if (v) printf("Logging/timeFomat: %s\n", YAJL_TO_STRING(v)); + if (v) printf("Logging/timeFomat: %s\n", YAJL_GET_STRING(v)); else printf("no such node: %s/%s\n", path[0], path[1]); } |