summaryrefslogtreecommitdiff
path: root/docs/libcurl/curl_mprintf.3
diff options
context:
space:
mode:
Diffstat (limited to 'docs/libcurl/curl_mprintf.3')
-rw-r--r--docs/libcurl/curl_mprintf.35
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/libcurl/curl_mprintf.3 b/docs/libcurl/curl_mprintf.3
index e0a7af79d..393072558 100644
--- a/docs/libcurl/curl_mprintf.3
+++ b/docs/libcurl/curl_mprintf.3
@@ -239,6 +239,11 @@ by the corresponding argument.
.TP
.B %
A '%' is written. No argument is converted.
+.SH EXAMPLE
+.nf
+ mprintf("My name is %s\n", name);
+ mprintf("Pi is almost %f\n", 25/8);
+.fi
.SH AVAILABILITY
These functions will be removed from the public libcurl API in the future. Do
not use them in new programs or projects.