mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05: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
@ -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…
x
Reference in New Issue
Block a user