Deleted Added
full compact
vfprintf.c (141858) vfprintf.c (157001)
1/*
2 * Copyright (c) 2000-2001, 2004 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1990
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Chris Torek.
9 *
10 * By using this file, you agree to the terms and conditions set
11 * forth in the LICENSE file which can be found at the top level of
12 * the sendmail distribution.
13 */
14
15#include <sm/gen.h>
1/*
2 * Copyright (c) 2000-2001, 2004 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1990
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Chris Torek.
9 *
10 * By using this file, you agree to the terms and conditions set
11 * forth in the LICENSE file which can be found at the top level of
12 * the sendmail distribution.
13 */
14
15#include <sm/gen.h>
16SM_IDSTR(id, "@(#)$Id: vfprintf.c,v 1.53 2004/08/03 20:54:49 ca Exp $")
16SM_IDSTR(id, "@(#)$Id: vfprintf.c,v 1.54 2005/05/16 03:52:00 ca Exp $")
17
18/*
19** Overall:
20** Actual printing innards.
21** This code is large and complicated...
22*/
23
24#include <sys/types.h>

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

530 *p++ = ch;
531 *p = '\0';
532
533 if (width > 120)
534 width = 120;
535 if (prec > 120)
536 prec = 120;
537 if (prec >= 0)
17
18/*
19** Overall:
20** Actual printing innards.
21** This code is large and complicated...
22*/
23
24#include <sys/types.h>

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

530 *p++ = ch;
531 *p = '\0';
532
533 if (width > 120)
534 width = 120;
535 if (prec > 120)
536 prec = 120;
537 if (prec >= 0)
538#if HASSNPRINTF
539 snprintf(out, sizeof(out), fmt, width,
540 prec, val);
541#else /* HASSNPRINTF */
538 sprintf(out, fmt, width, prec, val);
542 sprintf(out, fmt, width, prec, val);
543#endif /* HASSNPRINTF */
539 else
544 else
545#if HASSNPRINTF
546 snprintf(out, sizeof(out), fmt, width,
547 val);
548#else /* HASSNPRINTF */
540 sprintf(out, fmt, width, val);
549 sprintf(out, fmt, width, val);
550#endif /* HASSNPRINTF */
541 len = strlen(out);
542 PRINT(out, len);
543 FLUSH();
544 continue;
545 }
546 case 'n':
547 if (flags & QUADINT)
548 *GETARG(LONGLONG_T *) = ret;

--- 560 unchanged lines hidden ---
551 len = strlen(out);
552 PRINT(out, len);
553 FLUSH();
554 continue;
555 }
556 case 'n':
557 if (flags & QUADINT)
558 *GETARG(LONGLONG_T *) = ret;

--- 560 unchanged lines hidden ---