]> granicus.if.org Git - json-c/commit
json_pointer: add json_pointer_getf/setf() function variants
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Wed, 16 Nov 2016 09:55:41 +0000 (11:55 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 22 Nov 2016 14:33:49 +0000 (16:33 +0200)
commit742e059da1f5bd3c458f38bfbeb6e46ea1145f7b
tree38804736cfd606d3fd53feed05f78c6a03e16f7b
parent97dd7d5103f4038f3333b54615f5d233852acdb4
json_pointer: add json_pointer_getf/setf() function variants

These include support for printf() style args for path.

Adds support for calling with 'json_pointer_getf(obj, &res, "/foo/%d/%s", 0, bar)'
style args.

Makes it easier for doing more dynamic stuff/magic, without
needing to use vasprintf() externally.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
json_pointer.c
json_pointer.h