/* NOTE: This is one of few API functions that are allowed to be called from within a callback.  */
CURLcode curl_easy_setopt(struct Curl_easy *data, CURLoption tag,...)
/* NOTE: This is one of few API functions that are allowed to be called from within a callback.  */
CURLcode curl_easy_setopt(struct Curl_easy *data, CURLoption tag,...)
{
  va_list arg;
  CURLcode result;
  if(!data)
    return CURLE_BAD_FUNCTION_ARGUMENT;
  va_start(arg, tag);
  result = vsetopt(data, tag, arg);
  va_end(arg);
  return result;
}