diff options
author | nobody <nobody@localhost> | 2002-03-10 15:35:38 +0000 |
---|---|---|
committer | nobody <nobody@localhost> | 2002-03-10 15:35:38 +0000 |
commit | 29792f4af1d5a2204cbc70c5e4b0bba0683e024c (patch) | |
tree | 112fdd1c1308eff2630d6e381ed55bb0b4ee3071 /support/easy-vsnprintf.c | |
parent | 251a1525db302d0b30e0529d3752202e4706d35a (diff) | |
download | shared-mime-info-29792f4af1d5a2204cbc70c5e4b0bba0683e024c.tar.gz |
This commit was manufactured by cvs2svn to create tagGNOME_VFS_1_9_14
'GNOME_VFS_1_9_14'.
svn path=/tags/GNOME_VFS_1_9_14/; revision=2405
Diffstat (limited to 'support/easy-vsnprintf.c')
-rw-r--r-- | support/easy-vsnprintf.c | 30 |
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; -} |