MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / parse_file

Function parse_file

tests/parse_examples.c:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include "common.h"
30
31static cJSON *parse_file(const char *filename)
32{
33 cJSON *parsed = NULL;
34 char *content = read_file(filename);
35
36 parsed = cJSON_Parse(content);
37
38 if (content != NULL)
39 {
40 free(content);
41 }
42
43 return parsed;
44}
45
46static void do_test(const char *test_name)
47{

Callers 1

do_testFunction · 0.85

Calls 2

cJSON_ParseFunction · 0.85
read_fileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…