Mercurial > libavutil.hg
diff avstring.h @ 799:cb32a271f4cd libavutil
Add a function to convert a number to a av_malloced string.
author | michael |
---|---|
date | Sun, 13 Dec 2009 17:09:41 +0000 |
parents | 81aecbb6bbb2 |
children | 197e6e41f46f |
line wrap: on
line diff
--- a/avstring.h Sat Dec 12 16:24:37 2009 +0000 +++ b/avstring.h Sun Dec 13 17:09:41 2009 +0000 @@ -22,6 +22,7 @@ #define AVUTIL_AVSTRING_H #include <stddef.h> +#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_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 */