使用cJSON库更新json文件 测试程序的目的是更新已有的json文件。下面是测试程序的代码#include "smartlight.h"#include "cJSON.h"cJSON *dofile(char *filename){ FILE *f; long len; char *data; cJSON *json,*ret; f=fopen(filename,"rb"); fseek(f,0 C 2023-10-02 145 点赞 2 评论 219 浏览