cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Unsetting options

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 15 Aug 2003 16:51:03 +0200 (CEST)

On Fri, 15 Aug 2003, Christian Beutenmüller wrote:

> What is the right way for "disabling" or "unsetting" options set by
> curl_easy_setopt?
>
> For "long" options it's clear: 0
>
> But the others? If it's somewhere in the doc please give me a link, since I
> seem to be to stupid to find it.
> For "char *" ? NULL or ""
> For function pointers? NULL
> For slists? NULL

Yes, NULL is the way to "clear" any setting that involves a pointer.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-15