mirror of
https://github.com/curl/curl.git
synced 2026-06-16 20:45:39 +03:00
curl_url_set.3: properly escape \n in example code
This yields "the scheme is %s\n" instead of "the scheme is %s0 Closes #2970
This commit is contained in:
parent
0411057380
commit
c1e5980f66
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ If this function returns an error, no URL part is returned.
|
|||
char *scheme;
|
||||
rc = curl_url_get(url, CURLUPART_SCHEME, &scheme, 0);
|
||||
if(!rc) {
|
||||
printf("the scheme is %s\n", scheme);
|
||||
printf("the scheme is %s\\n", scheme);
|
||||
curl_free(scheme);
|
||||
}
|
||||
curl_url_cleanup(url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue