coinQ
V2EX  ›  问与答

cJson:在 json 文件中无此标签的情况下 cJSON_GetObjectItem 返回了一个非空的指针

  •  
  •   coinQ · Jul 29, 2019 · 2669 views
    This topic created in 2607 days ago, the information mentioned may be changed or developed.
    item_ans_video = cJSON_GetObjectItem(object, "video");//json 中无 video 标签
    printf("item_ans_video,p:%p",item_ans_video);
    

    打印结果:item_ans_video,p:0xe8af98e6849ae783

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   959 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 22:03 · PVG 06:03 · LAX 15:03 · JFK 18:03
    ♥ Do have faith in what you're doing.