curl-library
Re: examples compiler warnings
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 22 Sep 2011 22:19:13 +0200 (CEST)
Date: Thu, 22 Sep 2011 22:19:13 +0200 (CEST)
On Thu, 22 Sep 2011, Yang Tse wrote:
>> There's just no easy and good-looking way to do this. Internally in libcurl
>> we've solved this by having our own portable *printf() but in the examples
>> we better not do it that way...
>
> Why not use curlx.h and associated *.c files as source code? It is
> documented this can be used in this way. Or are there other reasons I'm
> missing now?
I prefer to have the examples stand-alone and without any added complexity. I
actually rather let them have compiler warnings than make them bigger or
harder to read (if I have to pick one of those alternatives).
They're just examples showing how to use the libcurl API.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-09-22