Revert "Imported Upstream version 7.53.1"
[platform/upstream/curl.git] / docs / libcurl / opts / CURLOPT_DEBUGFUNCTION.html
index 2b5b633..5d7617f 100644 (file)
@@ -105,7 +105,7 @@ void dump(const char *text,
   size_t c;
   unsigned int width=0x10;
  
-  fprintf(stream, "%s, %10.10ld bytes (0x%8.8lx)n",
+  fprintf(stream, "%s, %10.10ld bytes (0x%8.8lx)\n",
           text, (long)size, (long)size);
  
   for(i=0; i<size; i+= width) {
@@ -120,10 +120,12 @@ void dump(const char *text,
     }
  
     /* show data on the right */
-    for(c = 0; (c < width) && (i+c < size); c++)
-      fputc(ptr[i+c]>=0x20) && (ptr[i+c]<0x80)?ptr[i+c]:'.', stream);
+    for(c = 0; (c < width) && (i+c < size); c++) {
+      char x = (ptr[i+c] >= 0x20 && ptr[i+c] < 0x80) ? ptr[i+c] : '.';
+      fputc(x, stream);
+    }
  
-    fputc('n', stream); /* newline */
+    fputc('\n', stream); /* newline */
   }
 }
  
@@ -180,11 +182,11 @@ int main(void)
     /* example.com is redirected, so we tell libcurl to follow redirection */
     curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
  
-&nbsp;   curl_easy_setopt(curl, CURLOPT_URL, "<a href="http://example.com/">http://example.com/</a>");
+&nbsp;   curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/");
 &nbsp;   res = curl_easy_perform(curl);
 &nbsp;   /* Check for errors */
 &nbsp;   if(res != CURLE_OK)
-&nbsp;     fprintf(stderr, "curl_easy_perform() failed: %sn",
+&nbsp;     fprintf(stderr, "curl_easy_perform() failed: %s\n",
 &nbsp;             curl_easy_strerror(res));
 &nbsp;
 &nbsp;   /* always cleanup */
@@ -197,6 +199,6 @@ int main(void)
 <p class="level0"><a name="AVAILABILITY"></a><h2 class="nroffsh">AVAILABILITY</h2>
 <p class="level0">Always <a name="RETURN"></a><h2 class="nroffsh">RETURN VALUE</h2>
 <p class="level0">Returns CURLE_OK <a name="SEE"></a><h2 class="nroffsh">SEE ALSO</h2>
-<p class="level0"><a Class="manpage" href="./CURLOPT_VERBOSE.html">CURLOPT_VERBOSE</a>, <a Class="manpage" href="./CURLOPT_DEBUGDATA.html">CURLOPT_DEBUGDATA</a>, <span Class="manpage"> </span> <p class="roffit">
+<p class="level0"><a Class="manpage" href="./CURLOPT_VERBOSE.html">CURLOPT_VERBOSE</a>, <a Class="manpage" href="./CURLOPT_DEBUGDATA.html">CURLOPT_DEBUGDATA</a><p class="roffit">
  This HTML page was made with <a href="http://daniel.haxx.se/projects/roffit/">roffit</a>.
 </body></html>