Loading...
stdio/FreeBSD/vscanf.c Libc-1725.40.4 Libc-320
--- Libc/Libc-1725.40.4/stdio/FreeBSD/vscanf.c
+++ Libc/Libc-320/stdio/FreeBSD/vscanf.c
@@ -13,6 +13,10 @@
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *	This product includes software developed by the University of
+ *	California, Berkeley and its contributors.
  * 4. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
@@ -34,9 +38,7 @@
 static char sccsid[] = "@(#)vscanf.c	8.1 (Berkeley) 6/4/93";
 #endif /* LIBC_SCCS and not lint */
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/lib/libc/stdio/vscanf.c,v 1.13 2007/01/09 00:28:08 imp Exp $");
-
-#include "xlocale_private.h"
+__FBSDID("$FreeBSD: src/lib/libc/stdio/vscanf.c,v 1.12 2003/01/03 23:27:27 tjr Exp $");
 
 #include "namespace.h"
 #include <stdio.h>
@@ -45,24 +47,14 @@
 #include "local.h"
 
 int
-vscanf(const char * __restrict fmt, __va_list ap)
+vscanf(fmt, ap)
+	const char * __restrict fmt;
+	__va_list ap;
 {
 	int retval;
 
 	FLOCKFILE(stdin);
-	retval = __svfscanf_l(stdin, __current_locale(), fmt, ap);
+	retval = __svfscanf(stdin, fmt, ap);
 	FUNLOCKFILE(stdin);
 	return (retval);
 }
-
-int
-vscanf_l(locale_t loc, const char * __restrict fmt, __va_list ap)
-{
-	int retval;
-
-	NORMALIZE_LOCALE(loc);
-	FLOCKFILE(stdin);
-	retval = __svfscanf_l(stdin, loc, fmt, ap);
-	FUNLOCKFILE(stdin);
-	return (retval);
-}