Add json_sprintf and json_vsprintf

Fixes #392
This commit is contained in:
Petri Lehtinen
2018-02-08 20:52:10 +02:00
parent 3e81f78366
commit efe6c7b3f2
8 changed files with 78 additions and 1 deletions

View File

@@ -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
======