cURL / Mailing Lists / curl-library / Single Mail



From: Peter Miller <>
Date: Sat, 28 Feb 2004 18:12:45 +1100

I use libcurl in Aegis ( with great

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

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.

Peter Miller <>
PGP public key ID: 1024D/D0EDB64D
fingerprint = AD0A C5DF C426 4F03 5D53  2BDB 18D8 A4E2 D0ED B64D
See or any PGP keyserver for public key.

Received on 2004-02-28