diff options
author | alfred <alfred@FreeBSD.org> | 2002-05-28 17:03:12 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-05-28 17:03:12 +0000 |
commit | 1ee311b26d7122f860fe940db6ce46968981a9a3 (patch) | |
tree | 96c195652047b452e756960d6bdfc6786443c564 /lib/libc/stdio/sprintf.c | |
parent | ae40c00e1724fe7d6584623e3a953b6b44fc741f (diff) | |
download | FreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.zip FreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.tar.gz |
Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
Diffstat (limited to 'lib/libc/stdio/sprintf.c')
-rw-r--r-- | lib/libc/stdio/sprintf.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c index 075ac63..7b81c1f 100644 --- a/lib/libc/stdio/sprintf.c +++ b/lib/libc/stdio/sprintf.c @@ -41,23 +41,12 @@ static char sccsid[] = "@(#)sprintf.c 8.1 (Berkeley) 6/4/93"; __FBSDID("$FreeBSD$"); #include <stdio.h> -#if __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif #include <limits.h> #include "local.h" int -#if __STDC__ sprintf(char *str, char const *fmt, ...) -#else -sprintf(str, fmt, va_alist) - char *str; - char *fmt; - va_dcl -#endif { int ret; va_list ap; @@ -67,11 +56,7 @@ sprintf(str, fmt, va_alist) f._flags = __SWR | __SSTR; f._bf._base = f._p = (unsigned char *)str; f._bf._size = f._w = INT_MAX; -#if __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif ret = __vfprintf(&f, fmt, ap); va_end(ap); *f._p = 0; |