From 69183c23e48d4fe417dd34ae610f3ee21acd8b4a Mon Sep 17 00:00:00 2001 From: nishi Date: Mon, 22 Jan 2024 02:59:58 +0000 Subject: [PATCH] made fetch output messages to stderr git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@48 d27a3e52-49c5-7645-884c-6793ebffc270 --- Example/fetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.43.0