仅在C中不包含指定字符串时返回curl输出

仅在C中不包含指定字符串时返回curl输出,c,curl,libcurl,C,Curl,Libcurl,我在for循环中有一个curl请求,我只想在curl没有指定字符串的情况下输出结果` curl_global_init(CURL_GLOBAL_ALL); curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "LOCALHOST:8080/questions.php"); snp

我在for循环中有一个curl请求,我只想在curl没有指定字符串的情况下输出结果`

            curl_global_init(CURL_GLOBAL_ALL);
            curl = curl_easy_init();
            if(curl) {
              curl_easy_setopt(curl, CURLOPT_URL, "LOCALHOST:8080/questions.php");
              snprintf(postdata, sizeof postdata, "1=%s&2=%s&3=%s&4=%s&5=%s",
                 list[a],list[b],list[c],list[d],list[e]);
              curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postdata);
              res = curl_easy_perform(curl);
              if(res != CURLE_OK)
                fprintf(stderr, "curl_easy_perform() failed: %s\n",
                        curl_easy_strerror(res));
              curl_easy_cleanup(curl);
            }

你的问题是什么?假设是“如何检查字符串是否包含某个子字符串?”我会将您链接到这个问题:据我所知,输出来自res=curl\u easy\u perform(curl);我不知道如何解析这个