MCPcopy Create free account
hub / github.com/Netis/cloud-probe / cjson_set_parse_error

Function cjson_set_parse_error

cpworker/src/cjson_utils.c:9–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "cjson_utils.h"
8
9void cjson_set_parse_error(cJSONParseError *err, const char *format, ...)
10{
11 if (!err)
12 return;
13
14 err->code = CJSON_PARSE_FAILED;
15 va_list args;
16 va_start(args, format);
17 vsnprintf(err->message, sizeof(err->message), format, args);
18 va_end(args);
19}
20
21void cjson_wrap_parse_error(cJSONParseError *err, const char *format, ...)
22{

Callers 12

parse_capturer_configFunction · 0.85
parse_split_configFunction · 0.85
parse_output_configFunction · 0.85
parse_req_pattern_configFunction · 0.85
parse_task_configFunction · 0.85
parse_tasks_jsonFunction · 0.85
read_file_contentsFunction · 0.85
parse_tasks_fileFunction · 0.85
parse_control_configFunction · 0.85
parse_config_jsonFunction · 0.85
parse_config_dataFunction · 0.85
parse_config_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected