diff options
Diffstat (limited to 'pjlib/include/pj/string.h')
-rw-r--r-- | pjlib/include/pj/string.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/pjlib/include/pj/string.h b/pjlib/include/pj/string.h index 34134fd6..acc1ddf7 100644 --- a/pjlib/include/pj/string.h +++ b/pjlib/include/pj/string.h @@ -215,9 +215,11 @@ PJ_IDECL(pj_str_t*) pj_strdup(pj_pool_t *pool, /** * Duplicate string and NULL terminate the destination string. * - * @param pool - * @param dst - * @param src + * @param pool The pool. + * @param dst The string result. + * @param src The string to duplicate. + * + * @return The string result. */ PJ_IDECL(pj_str_t*) pj_strdup_with_null(pj_pool_t *pool, pj_str_t *dst, @@ -237,6 +239,20 @@ PJ_IDECL(pj_str_t*) pj_strdup2(pj_pool_t *pool, const char *src); /** + * Duplicate string and NULL terminate the destination string. + * + * @param pool The pool. + * @param dst The string result. + * @param src The string to duplicate. + * + * @return The string result. + */ +PJ_IDECL(pj_str_t*) pj_strdup2_with_null(pj_pool_t *pool, + pj_str_t *dst, + const char *src); + + +/** * Duplicate string. * * @param pool The pool. |