cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Bogus --libcurl output

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 19 Apr 2009 00:15:15 +0200 (CEST)

On Sat, 18 Apr 2009, Gisle Vanem wrote:

> curl_easy_setopt(hnd, CURLOPT_WRITEDATA, "P0¼");

...

> I think I see why in _my_setopt(); the use of ISGRAPH() seems a bit weak.
> But what to do about it?

I think the only really decent way is to make a new my_setopt_str() function
that would be used when a string is set as opposed to just some object
pointer. Then _my_setopt() wouldn't have to guess!

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-04-19