diff options
author | Petri Lehtinen <petri@digip.org> | 2018-02-09 08:15:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-09 08:15:16 +0200 |
commit | 2863dde05389eff2bab24591ba4e9775f0ec9509 (patch) | |
tree | 2eb808e44134e355355f4ce065140c47b5bb9e8e /doc | |
parent | 3e81f78366b57a0b5c34d5bfab9cffe5c9605027 (diff) | |
parent | efe6c7b3f2b3d75f1543c3ff4e4c3ecfe914b08d (diff) | |
download | jansson-2863dde05389eff2bab24591ba4e9775f0ec9509.zip jansson-2863dde05389eff2bab24591ba4e9775f0ec9509.tar.gz jansson-2863dde05389eff2bab24591ba4e9775f0ec9509.tar.bz2 |
Merge pull request #393 from akheron/json_sprintf
Add json_sprintf and json_vsprintf
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 ====== |