diff options
author | nobody <nobody@localhost> | 1999-12-25 14:31:23 +0000 |
---|---|---|
committer | nobody <nobody@localhost> | 1999-12-25 14:31:23 +0000 |
commit | 8c7127454525530f0c6236c581c8c7bc476745de (patch) | |
tree | 7d0d3756e5b4657c67be691910240a559b06c3cc /support/easy-vsnprintf.c | |
parent | d13f9d91ab9298f4430b5d8198bf6a1bb98db585 (diff) | |
download | gnome-common-STABLE.tar.gz |
This commit was manufactured by cvs2svn to create tag 'STABLE'.STABLE
svn path=/tags/STABLE/; revision=1051
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 b50df74..0000000 --- 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; -} |