From: nishi Date: Mon, 22 Jan 2024 02:59:58 +0000 (+0000) Subject: made fetch output messages to stderr X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=69183c23e48d4fe417dd34ae610f3ee21acd8b4a;p=libw3.git made fetch output messages to stderr git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@48 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Example/fetch.c b/Example/fetch.c index 11b2e46..4e5c4ea 100644 --- a/Example/fetch.c +++ b/Example/fetch.c @@ -15,14 +15,14 @@ void fetch_data(struct W3* w3, char* data, size_t size){ } void status(struct W3* w3, int status){ - printf("Response code is %d\n", status); + fprintf(stderr, "Response code is %d\n", status); } void header(struct W3* w3, char* key, char* value){ printf("Header: %s is `%s'\n", key, value); if(strcasecmp(key, "Server") == 0){ /* For the example - We get the server software */ - printf("Server is using `%s'\n", value); + fprintf(stderr, "Server is using `%s'\n", value); } }