Deleted Added
full compact
sprintf.c (50476) sprintf.c (72373)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 25 unchanged lines hidden (view full) ---

34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38#if 0
39static char sccsid[] = "@(#)sprintf.c 8.1 (Berkeley) 6/4/93";
40#endif
41static const char rcsid[] =
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 25 unchanged lines hidden (view full) ---

34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38#if 0
39static char sccsid[] = "@(#)sprintf.c 8.1 (Berkeley) 6/4/93";
40#endif
41static const char rcsid[] =
42 "$FreeBSD: head/lib/libc/stdio/sprintf.c 50476 1999-08-28 00:22:10Z peter $";
42 "$FreeBSD: head/lib/libc/stdio/sprintf.c 72373 2001-02-11 22:06:43Z deischen $";
43#endif /* LIBC_SCCS and not lint */
44
45#include <stdio.h>
46#if __STDC__
47#include <stdarg.h>
48#else
49#include <varargs.h>
50#endif

--- 18 unchanged lines hidden (view full) ---

69 f._flags = __SWR | __SSTR;
70 f._bf._base = f._p = (unsigned char *)str;
71 f._bf._size = f._w = INT_MAX;
72#if __STDC__
73 va_start(ap, fmt);
74#else
75 va_start(ap);
76#endif
43#endif /* LIBC_SCCS and not lint */
44
45#include <stdio.h>
46#if __STDC__
47#include <stdarg.h>
48#else
49#include <varargs.h>
50#endif

--- 18 unchanged lines hidden (view full) ---

69 f._flags = __SWR | __SSTR;
70 f._bf._base = f._p = (unsigned char *)str;
71 f._bf._size = f._w = INT_MAX;
72#if __STDC__
73 va_start(ap, fmt);
74#else
75 va_start(ap);
76#endif
77 ret = vfprintf(&f, fmt, ap);
77 ret = __vfprintf(&f, fmt, ap);
78 va_end(ap);
79 *f._p = 0;
80 return (ret);
81}
78 va_end(ap);
79 *f._p = 0;
80 return (ret);
81}