Deleted Added
full compact
vscanf.c (104989) vscanf.c (108622)
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 * Donn Seeley at UUNET Technologies, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38static char sccsid[] = "@(#)vscanf.c 8.1 (Berkeley) 6/4/93";
39#endif /* LIBC_SCCS and not lint */
40#include <sys/cdefs.h>
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 * Donn Seeley at UUNET Technologies, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 */
36
37#if defined(LIBC_SCCS) && !defined(lint)
38static char sccsid[] = "@(#)vscanf.c 8.1 (Berkeley) 6/4/93";
39#endif /* LIBC_SCCS and not lint */
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: head/lib/libc/stdio/vscanf.c 104989 2002-10-12 16:13:41Z mike $");
41__FBSDID("$FreeBSD: head/lib/libc/stdio/vscanf.c 108622 2003-01-03 23:27:27Z tjr $");
42
43#include "namespace.h"
44#include <stdio.h>
45#include "un-namespace.h"
46#include "libc_private.h"
42
43#include "namespace.h"
44#include <stdio.h>
45#include "un-namespace.h"
46#include "libc_private.h"
47#include "local.h"
47
48int
49vscanf(fmt, ap)
50 const char * __restrict fmt;
51 __va_list ap;
52{
53 int retval;
54
55 FLOCKFILE(stdin);
56 retval = __svfscanf(stdin, fmt, ap);
57 FUNLOCKFILE(stdin);
58 return (retval);
59}
48
49int
50vscanf(fmt, ap)
51 const char * __restrict fmt;
52 __va_list ap;
53{
54 int retval;
55
56 FLOCKFILE(stdin);
57 retval = __svfscanf(stdin, fmt, ap);
58 FUNLOCKFILE(stdin);
59 return (retval);
60}