summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-05-09 18:47:44 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-05-09 18:48:01 +0900
commit54777e124c38812e5e80319048b6c71009bcf9dd (patch)
treef41139e5261182f3fa0f5240544422c47cf0a7fd /src/gallium/auxiliary/util
parent36e1bc865b421be8919ce7d26eb4ae593a885372 (diff)
gallium: Define util_vsprintf.
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_string.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_string.h b/src/gallium/auxiliary/util/u_string.h
index d7d925ee9b..73c88d87b4 100644
--- a/src/gallium/auxiliary/util/u_string.h
+++ b/src/gallium/auxiliary/util/u_string.h
@@ -55,6 +55,12 @@ int util_vsnprintf(char *, size_t, const char *, va_list);
int util_snprintf(char *str, size_t size, const char *format, ...);
static INLINE void
+util_vsprintf(char *str, const char *format, va_list ap)
+{
+ util_vsnprintf(str, (size_t)-1, format, ap);
+}
+
+static INLINE void
util_sprintf(char *str, const char *format, ...)
{
va_list ap;
@@ -158,6 +164,7 @@ util_memmove(void *dest, const void *src, size_t n)
#define util_vsnprintf vsnprintf
#define util_snprintf snprintf
+#define util_vsprintf vsprintf
#define util_sprintf sprintf
#define util_strchr strchr
#define util_strcmp strcmp