diff options
author | Andreas Schneider <asn@samba.org> | 2016-09-07 15:15:00 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-09-09 00:32:12 +0200 |
commit | dce3f1fc60bde8b54180b45abdcfaaa9beb8e416 (patch) | |
tree | 122ac4784e5647c2ee3e097e5e8e61ce035ba91c /lib | |
parent | 0ab32637249fb88917d240e78c0f213b83236027 (diff) | |
download | samba-dce3f1fc60bde8b54180b45abdcfaaa9beb8e416.tar.gz |
util: Fix the documentation of push_utf8_talloc()
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/charset/pull_push.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/lib/util/charset/pull_push.c b/lib/util/charset/pull_push.c index b7a5bcdc65b..cf25efa5a5e 100644 --- a/lib/util/charset/pull_push.c +++ b/lib/util/charset/pull_push.c @@ -46,16 +46,25 @@ bool push_ucs2_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src, } /** - * Copy a string from a unix char* src to a UTF-8 destination, allocating a buffer using talloc + * @brief Create a UTF-8 string from a unix charset string. * - * @param dest always set at least to NULL - * @parm converted_size set to the number of bytes occupied by the string in - * the destination on success. + * The resulting UTF-8 string is talloc'ed. * - * @return true if new buffer was correctly allocated, and string was - * converted. - **/ - + * @param[in] ctx The talloc memory context. + * + * @param[in] dest A pointer to store the pointer to the talloc'ed UTF-8 + * string. + * + * @param[in] src The unix charset string to convert. + * + * @param[in] converted_size A pointer to store the length of the talloc'ed + * UTF-8 string including the nul-termination bytes. + * + * The destination string should be free'd using talloc_free() if no longer + * needed. + * + * @return True on succcess, false otherwise. + */ bool push_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *converted_size) { |