diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-03-02 21:12:28 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-03-02 21:12:28 +0000 |
commit | 7e1af4a66ce578c9b8d7a4dcd39a3a41e8663b9b (patch) | |
tree | 44edefe34c7bcc732793349d217dabca5b57f2f5 /pjlib/include/pj/string.h | |
parent | 5bd796e66f3ae6049a43e8e3cfc938d37e061174 (diff) |
Added pj_strdup2_with_null
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@263 74dad513-b988-da41-8d7b-12977e46ad98
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. |