coinQ
V2EX  ›  问与答

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

  •  
  •   coinQ · Jul 29, 2019 · 2547 views
    This topic created in 2516 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   ·   1015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:37 · PVG 02:37 · LAX 11:37 · JFK 14:37
    ♥ Do have faith in what you're doing.