Deleted Added
sdiff udiff text old ( 256281 ) new ( 269482 )
full compact
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 * Copyright (c) 2011 The FreeBSD Foundation

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

34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 */
37
38#if defined(LIBC_SCCS) && !defined(lint)
39static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93";
40#endif /* LIBC_SCCS and not lint */
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: stable/10/lib/libc/stdio/vfprintf.c 249808 2013-04-23 13:33:13Z emaste $");
43
44/*
45 * Actual printf innards.
46 *
47 * This code is large and complicated...
48 */
49
50#include "namespace.h"

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

450 }
451
452 if (__use_xprintf == 0 && getenv("USE_XPRINTF"))
453 __use_xprintf = 1;
454 if (__use_xprintf > 0)
455 return (__xvprintf(fp, fmt0, ap));
456
457 /* sorry, fprintf(read_only_file, "") returns EOF, not 0 */
458 if (prepwrite(fp) != 0)
459 return (EOF);
460
461 convbuf = NULL;
462 fmt = (char *)fmt0;
463 argtable = NULL;
464 nextarg = 1;
465 va_copy(orgap, ap);
466 io_init(&io, fp);
467 ret = 0;

--- 570 unchanged lines hidden ---