]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_easy_nextheader.3: add missing open parenthesis examples
authorJuan Cruz Viotti <jv@jviotti.com>
Sat, 8 Jul 2023 02:16:18 +0000 (22:16 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 8 Jul 2023 20:22:17 +0000 (22:22 +0200)
Closes #11409
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
docs/libcurl/curl_easy_nextheader.3

index ce8fa7e294aa7bb56298bf614032e811b3f4a0f1..8f892f91b803f0282d3c9ba2ff9cf04b701609e7 100644 (file)
@@ -73,14 +73,14 @@ struct curl_header *h;
 
 /* extract the normal headers from the first request */
 while((h = curl_easy_nextheader(easy, CURLH_HEADER, 0, prev))) {
-   print "%s: %s\\n", h->name, h->value);
+   printf("%s: %s\\n", h->name, h->value);
    prev = h;
 }
 
 /* extract the normal headers + 1xx + trailers from the last request */
 unsigned int origin = CURLH_HEADER| CURLH_1XX | CURLH_TRAILER;
 while((h = curl_easy_nextheader(easy, origin, -1, prev))) {
-   print "%s: %s\\n", h->name, h->value);
+   printf("%s: %s\\n", h->name, h->value);
    prev = h;
 }
 .fi