X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finclude%2Fcore%2Fdata.h;fp=src%2Finclude%2Fcore%2Fdata.h;h=ffddf979f5509593417c80d6b3358b0b75e27a34;hb=47f31649186ace5c6cfe6742647dbb710c0f58e8;hp=f1c0324a1e6b7cd9d736255ec25917b3bfa2325f;hpb=f257d14eeca9e263e561f2f597b31bd9b0f4e931;p=sysdb.git diff --git a/src/include/core/data.h b/src/include/core/data.h index f1c0324..ffddf97 100644 --- a/src/include/core/data.h +++ b/src/include/core/data.h @@ -239,6 +239,11 @@ sdb_data_format(const sdb_data_t *datum, char *buf, size_t buflen, int quoted); * memory and also compiled to a regex. Use sdb_data_free_datum() to free the * dynamically allocated memory. * + * The input string may be stored in 'data', that is, the function may be used + * to do an inline cast from a string to any other type. It is the callers + * responsibility to free the memory used by the string in case the target + * type does not keep a reference to it. + * * Returns: * - 0 on success * - a negative value else