util: Fix the documentation of push_utf8_talloc()
authorAndreas Schneider <asn@samba.org>
Wed, 7 Sep 2016 13:15:00 +0000 (15:15 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 8 Sep 2016 22:32:12 +0000 (00:32 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/charset/pull_push.c

index b7a5bcdc65b83d50d007b533bfa86330fd2ad8ca..cf25efa5a5e454e24d6091594f4b23bd5ea8d2d3 100644 (file)
@@ -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)
 {