coinQ
V2EX  ›  问与答

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

  •  
  •   coinQ · Jul 29, 2019 · 2541 views
    This topic created in 2512 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   ·   Solana   ·   830 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:06 · PVG 05:06 · LAX 14:06 · JFK 17:06
    ♥ Do have faith in what you're doing.