MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / json_error_new

Function json_error_new

tinyemu/json.c:218–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218JSONValue __attribute__((format(printf, 1, 2))) json_error_new(const char *fmt, ...)
219{
220 JSONValue val;
221 va_list ap;
222 char buf[256];
223
224 va_start(ap, fmt);
225 vsnprintf(buf, sizeof(buf), fmt, ap);
226 va_end(ap);
227 val = json_string_new(buf);
228 val.type = JSON_EXCEPTION;
229 return val;
230}
231
232JSONValue json_object_new(void)
233{

Callers 3

parse_stringFunction · 0.85
json_parse_value2Function · 0.85
json_parse_valueFunction · 0.85

Calls 1

json_string_newFunction · 0.85

Tested by

no test coverage detected