aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/avstring.h
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-09-03 19:51:28 +0200
committerClément Bœsch <ubitux@gmail.com>2011-09-04 09:37:41 +0200
commit61e2e2969127e4cb8e0d32151fed3e03515fe436 (patch)
tree72ed060de80329fb6f8891582584779498061659 /libavutil/avstring.h
parent1889c6724a449b2e4826612d3b72efc76dbfb713 (diff)
downloadffmpeg-61e2e2969127e4cb8e0d32151fed3e03515fe436.tar.gz
av_string: add av_asprintf().
Diffstat (limited to 'libavutil/avstring.h')
-rw-r--r--libavutil/avstring.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/avstring.h b/libavutil/avstring.h
index 662af6b70d..2be84a9ed0 100644
--- a/libavutil/avstring.h
+++ b/libavutil/avstring.h
@@ -111,6 +111,16 @@ size_t av_strlcat(char *dst, const char *src, size_t size);
size_t av_strlcatf(char *dst, size_t size, const char *fmt, ...) av_printf_format(3, 4);
/**
+ * Print arguments following specified format into a large enough auto
+ * allocated buffer. It is similar to GNU asprintf().
+ * @param fmt printf-compatible format string, specifying how the
+ * following parameters are used.
+ * @return the allocated string
+ * @note You have to free the string yourself with av_free().
+ */
+char *av_asprintf(const char *fmt, ...) av_printf_format(1, 2);
+
+/**
* Convert a number to a av_malloced string.
*/
char *av_d2str(double d);