summaryrefslogtreecommitdiff
path: root/support/easy-vsnprintf.c
diff options
context:
space:
mode:
authornobody <nobody@localhost>2001-02-04 04:10:39 +0000
committernobody <nobody@localhost>2001-02-04 04:10:39 +0000
commit081a2189845f9fba535ec7692697731a1653e68c (patch)
tree0a5b66655b7f9f6e527155bcabd2f7470e429a8b /support/easy-vsnprintf.c
parent554908872e64b869762ae0809bdbbb4b46363ea1 (diff)
downloadshared-mime-info-release-0-2-3-branch.tar.gz
This commit was manufactured by cvs2svn to create branchrelease-0-2-3-branch
'release-0-2-3-branch'. svn path=/branches/release-0-2-3-branch/; revision=1554
Diffstat (limited to 'support/easy-vsnprintf.c')
-rw-r--r--support/easy-vsnprintf.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/support/easy-vsnprintf.c b/support/easy-vsnprintf.c
deleted file mode 100644
index b50df741..00000000
--- a/support/easy-vsnprintf.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* (v)snprintf in terms of __(v)snprintf
- *
- * Useful with Solaris 2.5 libc, which appears to have the `__*' versions
- * of (v)snprintf.
- *
- * This file is in the public domain
- * (in case it matters)
- */
-
-#include <stdarg.h>
-#include <stdlib.h>
-
-extern int __vsnprintf (char *, size_t, const char *, va_list);
-
-int
-vsnprintf (char *string, size_t maxlen, const char *format, va_list args)
-{
- return __vsnprintf (string, maxlen, format, args);
-}
-
-int
-snprintf (char *string, size_t maxlen, const char *format, ...)
-{
- va_list args;
- int retval;
- va_start(args, format);
- retval = vsnprintf (string, maxlen, format, args);
- va_end(args);
- return retval;
-}