From 277c73323733b53dfc8b7288394e5712f440e3eb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 13 Dec 2009 17:09:41 +0000 Subject: Add a function to convert a number to a av_malloced string. Originally committed as revision 20829 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/avstring.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavutil/avstring.h') diff --git a/libavutil/avstring.h b/libavutil/avstring.h index d716c3a282..98d5235b65 100644 --- a/libavutil/avstring.h +++ b/libavutil/avstring.h @@ -22,6 +22,7 @@ #define AVUTIL_AVSTRING_H #include +#include "mem.h" /** * Return non-zero if pfx is a prefix of str. If it is, *ptr is set to @@ -95,4 +96,9 @@ size_t av_strlcat(char *dst, const char *src, size_t size); */ size_t av_strlcatf(char *dst, size_t size, const char *fmt, ...); +/** + * Convert a number to a av_malloced string. + */ +char *av_d2str(double d); + #endif /* AVUTIL_AVSTRING_H */ -- cgit v1.2.3