diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-16 21:17:24 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-16 21:17:24 +0000 |
commit | 807b2c7085a4118aaffb1149ca4e37a2a07ca2b8 (patch) | |
tree | 4372f8354efce79ec5d053c5375179a1749c33ff /include | |
parent | bb4c1221fb6524ebe50cd8106c84dae8ad756df4 (diff) |
Merged revisions 246985 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r246985 | mmichelson | 2010-02-16 15:15:38 -0600 (Tue, 16 Feb 2010) | 3 lines
Add some clarifying documentation to the ast_str_set and ast_str_append functions.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@246989 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/strings.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index 43ba361f4..97e1af517 100644 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -337,11 +337,16 @@ int ast_get_timeval(const char *src, struct timeval *tv, struct timeval _default * ast_str_set_va(&buf, max_len, ap) * ast_str_append_va(&buf, max_len, ap) * - * \param max_len The maximum allowed length, reallocating if needed. + * \param max_len The maximum allowed capacity of the ast_str. Note that + * if the value of max_len is less than the current capacity of the + * ast_str (as returned by ast_str_size), then the parameter is effectively + * ignored. * 0 means unlimited, -1 means "at most the available space" * * \return All the functions return <0 in case of error, or the - * length of the string added to the buffer otherwise. + * length of the string added to the buffer otherwise. Note that + * in most cases where an error is returned, characters ARE written + * to the ast_str. */ /*! \brief The descriptor of a dynamic string |