cURL / Mailing Lists / curl-library / Single Mail

curl-library

CURLcode_strerror

From: Peter Miller <millerp_at_canb.auug.org.au>
Date: Sat, 28 Feb 2004 18:12:45 +1100

I use libcurl in Aegis (http://aegis.sourceforge.net/) with great
success.

However, I missed the absence of a strerror(3) equivalent, and wrote one
for use within Aegis. The problem is that it keeps going stale as more
values are added to the CURLcode enum. So I thought I'd contribute the
code to cURL, and when the authors extend the enum, they can extend the
function.

Please find attached a patch which defines two new functions:
CURLcode_strerror and CURLMcode_strerror, named after the error types
they address and also the ANSI strerror function.

Also included are documentation updates to mention the two new functions
in suitable man pages and other docs.

-- 
Regards
Peter Miller <millerp_at_canb.auug.org.au>
/\/\*        http://www.canb.auug.org.au/~millerp/
PGP public key ID: 1024D/D0EDB64D
fingerprint = AD0A C5DF C426 4F03 5D53  2BDB 18D8 A4E2 D0ED B64D
See http://www.keyserver.net or any PGP keyserver for public key.

Received on 2004-02-28