summaryrefslogtreecommitdiff
path: root/strings/apr_strings.c
diff options
context:
space:
mode:
authordougm <dougm@13f79535-47bb-0310-9956-ffa450edef68>2000-08-02 05:26:45 +0000
committerdougm <dougm@13f79535-47bb-0310-9956-ffa450edef68>2000-08-02 05:26:45 +0000
commit8fcf6e0fadd7ec31d02e7249dc69922b24747c11 (patch)
tree4da0bfd73d36292921960aaabc877a57e680b8c4 /strings/apr_strings.c
parent5198c260c1982414023e984799ce1c3b04bb6b43 (diff)
downloadlibapr-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_strings.c')
-rw-r--r--strings/apr_strings.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/strings/apr_strings.c b/strings/apr_strings.c
index 2d53695f8..f072f260d 100644
--- a/strings/apr_strings.c
+++ b/strings/apr_strings.c
@@ -57,7 +57,7 @@
#include "apr_private.h"
#include "apr_lib.h"
-APR_EXPORT(char *) ap_pstrdup(ap_pool_t *a, const char *s)
+APR_EXPORT(char *) apr_pstrdup(apr_pool_t *a, const char *s)
{
char *res;
size_t len;
@@ -66,31 +66,31 @@ APR_EXPORT(char *) ap_pstrdup(ap_pool_t *a, const char *s)
return NULL;
}
len = strlen(s) + 1;
- res = ap_palloc(a, len);
+ res = apr_palloc(a, len);
memcpy(res, s, len);
return res;
}
-APR_EXPORT(char *) ap_pstrndup(ap_pool_t *a, const char *s, ap_size_t n)
+APR_EXPORT(char *) apr_pstrndup(apr_pool_t *a, const char *s, apr_size_t n)
{
char *res;
if (s == NULL) {
return NULL;
}
- res = ap_palloc(a, n + 1);
+ res = apr_palloc(a, n + 1);
memcpy(res, s, n);
res[n] = '\0';
return res;
}
-APR_EXPORT_NONSTD(char *) ap_pstrcat(ap_pool_t *a, ...)
+APR_EXPORT_NONSTD(char *) apr_pstrcat(apr_pool_t *a, ...)
{
char *cp, *argp, *res;
/* Pass one --- find length of required string */
- ap_size_t len = 0;
+ apr_size_t len = 0;
va_list adummy;
va_start(adummy, a);
@@ -103,7 +103,7 @@ APR_EXPORT_NONSTD(char *) ap_pstrcat(ap_pool_t *a, ...)
/* Allocate the required string */
- res = (char *) ap_palloc(a, len + 1);
+ res = (char *) apr_palloc(a, len + 1);
cp = res;
*cp = '\0';