public string GetError(CURLcode code) { IntPtr ptr = curl_easy_strerror(code); return Marshal.PtrToStringAnsi(ptr); }