diff options
author | Petri Lehtinen <petri@digip.org> | 2018-02-08 20:52:10 +0200 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2018-02-09 07:37:33 +0200 |
commit | efe6c7b3f2b3d75f1543c3ff4e4c3ecfe914b08d (patch) | |
tree | 2eb808e44134e355355f4ce065140c47b5bb9e8e /doc | |
parent | 3e81f78366b57a0b5c34d5bfab9cffe5c9605027 (diff) | |
download | jansson-json_sprintf.zip jansson-json_sprintf.tar.gz jansson-json_sprintf.tar.bz2 |
Add json_sprintf and json_vsprintfjson_sprintf
Fixes #392
Diffstat (limited to 'doc')
-rw-r--r-- | doc/apiref.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/apiref.rst b/doc/apiref.rst index 3ad406d..b429d0b 100644 --- a/doc/apiref.rst +++ b/doc/apiref.rst @@ -399,6 +399,16 @@ length-aware functions if you wish to embed null bytes in strings. .. versionadded:: 2.7 +.. function:: json_t *json_sprintf(const char *format, ...) + json_t *json_vsprintf(const char *format, va_list ap) + + .. refcounting:: new + + Construct a JSON string from a format string and varargs, just like + :func:`printf()`. + + .. versionadded:: 2.11 + Number ====== |