diff options
author | dougm <dougm@13f79535-47bb-0310-9956-ffa450edef68> | 2000-08-02 05:26:45 +0000 |
---|---|---|
committer | dougm <dougm@13f79535-47bb-0310-9956-ffa450edef68> | 2000-08-02 05:26:45 +0000 |
commit | 8fcf6e0fadd7ec31d02e7249dc69922b24747c11 (patch) | |
tree | 4da0bfd73d36292921960aaabc877a57e680b8c4 /strings/apr_cpystrn.c | |
parent | 5198c260c1982414023e984799ce1c3b04bb6b43 (diff) | |
download | libapr-8fcf6e0fadd7ec31d02e7249dc69922b24747c11.tar.gz |
prefix libapr functions and types with apr_
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings/apr_cpystrn.c')
-rw-r--r-- | strings/apr_cpystrn.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/strings/apr_cpystrn.c b/strings/apr_cpystrn.c index 0f6a503b2..7c12cc878 100644 --- a/strings/apr_cpystrn.c +++ b/strings/apr_cpystrn.c @@ -77,10 +77,10 @@ * the destination string, we return a pointer to the * terminating '\0' to allow us to "check" for truncation * - * ap_cpystrn() follows the same call structure as strncpy(). + * apr_cpystrn() follows the same call structure as strncpy(). */ -APR_EXPORT(char *) ap_cpystrn(char *dst, const char *src, size_t dst_size) +APR_EXPORT(char *) apr_cpystrn(char *dst, const char *src, size_t dst_size) { char *d, *end; @@ -120,9 +120,9 @@ APR_EXPORT(char *) ap_cpystrn(char *dst, const char *src, size_t dst_size) * pool and filled in with copies of the tokens * found during parsing of the arg_str. */ -APR_EXPORT(ap_status_t) ap_tokenize_to_argv(const char *arg_str, +APR_EXPORT(apr_status_t) apr_tokenize_to_argv(const char *arg_str, char ***argv_out, - ap_pool_t *token_context) + apr_pool_t *token_context) { const char *cp; const char *tmpCnt; @@ -172,7 +172,7 @@ APR_EXPORT(ap_status_t) ap_tokenize_to_argv(const char *arg_str, SKIP_WHITESPACE(tmpCnt); } - *argv_out = ap_palloc(token_context, numargs*sizeof(char*)); + *argv_out = apr_palloc(token_context, numargs*sizeof(char*)); if (*argv_out == NULL) { return (APR_ENOMEM); } @@ -184,15 +184,15 @@ APR_EXPORT(ap_status_t) ap_tokenize_to_argv(const char *arg_str, tmpCnt = cp; DETERMINE_NEXTSTRING(cp, isquoted); if (*cp == '\0') { - (*argv_out)[numargs] = ap_pstrdup(token_context, tmpCnt); + (*argv_out)[numargs] = apr_pstrdup(token_context, tmpCnt); numargs++; (*argv_out)[numargs] = '\0'; break; } else { cp++; - (*argv_out)[numargs] = ap_palloc(token_context, cp - tmpCnt); - ap_cpystrn((*argv_out)[numargs], tmpCnt, cp - tmpCnt); + (*argv_out)[numargs] = apr_palloc(token_context, cp - tmpCnt); + apr_cpystrn((*argv_out)[numargs], tmpCnt, cp - tmpCnt); numargs++; } @@ -212,7 +212,7 @@ APR_EXPORT(ap_status_t) ap_tokenize_to_argv(const char *arg_str, * Corrected Win32 to accept "a/b\\stuff", "a:stuff" */ -APR_EXPORT(const char *) ap_filename_of_pathname(const char *pathname) +APR_EXPORT(const char *) apr_filename_of_pathname(const char *pathname) { const char path_separator = '/'; const char *s = strrchr(pathname, path_separator); @@ -234,7 +234,7 @@ APR_EXPORT(const char *) ap_filename_of_pathname(const char *pathname) * collapse in place (src == dest) is legal. * returns terminating null ptr to dest string. */ -APR_EXPORT(char *) ap_collapse_spaces(char *dest, const char *src) +APR_EXPORT(char *) apr_collapse_spaces(char *dest, const char *src) { while (*src) { if (!ap_isspace(*src)) |