Browse Source

Document %.*Q

PUBLISHED_FROM=bc63673def70218cdfe396a2d2ac06137607a7f2
Sergey Lyubka 8 years ago
parent
commit
d3c11e06bc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      frozen.h

+ 1 - 0
frozen.h

@@ -138,6 +138,7 @@ typedef int (*json_printf_callback_t)(struct json_out *, va_list *ap);
  * This is a superset of printf() function, with extra format specifiers:
  * This is a superset of printf() function, with extra format specifiers:
  *  - `%B` print json boolean, `true` or `false`. Accepts an `int`.
  *  - `%B` print json boolean, `true` or `false`. Accepts an `int`.
  *  - `%Q` print quoted escaped string or `null`. Accepts a `const char *`.
  *  - `%Q` print quoted escaped string or `null`. Accepts a `const char *`.
+ *  - `%.*Q` same as `%Q`, but with length. Accepts `int`, `const char *`
  *  - `%V` print quoted base64-encoded string. Accepts a `const char *`, `int`.
  *  - `%V` print quoted base64-encoded string. Accepts a `const char *`, `int`.
  *  - `%M` invokes a json_printf_callback_t function. That callback function
  *  - `%M` invokes a json_printf_callback_t function. That callback function
  *  can consume more parameters.
  *  can consume more parameters.