title: Result from my curl not read as string
body: <p>I am writing this code for POS machine</p>
  
  <p>i set the return data from the web link to "bad" so that i can test if it is really working.
  but when i compare the result with a String "bad" it always say that they are not equal.
  buy when i print the result to screen it display both result as bad.</p>
  
  <p>Please i need your help. 
  code below</p>
  
  <pre><code>void checklogin(void) {
      CURL *curl;
      CURLcode res;
          long timeout = 30;
          char buffer[50000];
      //Initializing the CURL module
      curl = curl_easy_init();
  
      if(curl){
      //Tell libcurl the URL
      curl_easy_setopt(curl,CURLOPT_URL, "http://website.org/login.php");
      curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "username=su&amp;password=ch");
          curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, myfunc);
          curl_easy_setopt(curl, CURLOPT_WRITEDATA, buffer);
          curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout);
          curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); //tell curl to output its progress
  
             res = curl_easy_perform(curl);
  
             CTOS_LCDTClearDisplay();
  
             char mai[30];
             char mai2[30];
  
             char *serverresponse = "bad";
             sprintf(mai2, "%s" , serverresponse);
             sprintf(mai, "%s" , buffer);
  
             if(mai2 == mai){
              CTOS_LCDTPrint("Invalid username");
              CTOS_KBDGet(&amp;key); 
             }else{
                 //loginname = buffer;
                 //mainusername = username;
                 CTOS_LCDTPrintXY(1, 1, "Login Success");
                 CTOS_LCDTPrintXY(1, 2, "Welcome");
                 CTOS_KBDGet(&amp;key);
                 }
  
  
      }
  }
  </code></pre>