Code

data: Let sdb_data_format() return the number of bytes written.
[sysdb.git] / src / include / core / data.h
index 01d323b122d6ca25babc161ade270f4b05c60ced..230c1c9f887cd434b7c34bd74edf72ec12b88a5d 100644 (file)
@@ -117,7 +117,9 @@ sdb_data_strlen(sdb_data_t *datum);
  * calling this function.
  *
  * Returns:
- *  - 0 on success
+ *  - the number of characters written to the buffer (excluding the terminated
+ *    null byte) or the number of characters which would have been written in
+ *    case the output was truncated
  *  - a negative value else
  */
 int