diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-19 22:39:35 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-19 22:39:35 +0000 |
commit | 89517d04ef292cf1b2573a1364565aadd9d29fad (patch) | |
tree | 4ddc583afd250bf1804030e9ac3344231bbcf914 /include/apr_general.h | |
parent | b706f6865d5c832e08068a50056b58818c06c35d (diff) | |
download | libapr-89517d04ef292cf1b2573a1364565aadd9d29fad.tar.gz |
First pass at ap_strerrot. This is probably broken somewhere, but it compiles
on Linux, and seems to work most of the time. This also provides an error
string for every APR error and status code.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59894 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_general.h')
-rw-r--r-- | include/apr_general.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/apr_general.h b/include/apr_general.h index 715ea1fea..59d86cb3f 100644 --- a/include/apr_general.h +++ b/include/apr_general.h @@ -357,6 +357,19 @@ B<NOTE>: This is in for backwards compatability. If the program using */ ap_status_t ap_set_abort(int (*apr_abort)(int retcode), ap_pool_t *cont); +/* + +=head1 const char *ap_strerror(ap_status_t statcode, ap_pool_t *p) + +B<Return a human readable string describing the specified error.> + + arg 1) The error code the get a string for. + arg 2) The pool to use to allocate memory for the string. + +=cut + */ +const char *ap_strerror(ap_status_t statcode, ap_pool_t *p); + #ifdef __cplusplus } #endif |