vwscanf.c revision 103856
12786Ssos/*-
22786Ssos * Copyright (c) 2002 Tim J. Robbins
32786Ssos * All rights reserved.
42786Ssos *
52786Ssos * Redistribution and use in source and binary forms, with or without
632822Syokota * modification, are permitted provided that the following conditions
72786Ssos * are met:
82786Ssos * 1. Redistributions of source code must retain the above copyright
92786Ssos *    notice, this list of conditions and the following disclaimer.
102786Ssos * 2. Redistributions in binary form must reproduce the above copyright
112786Ssos *    notice, this list of conditions and the following disclaimer in the
122786Ssos *    documentation and/or other materials provided with the distribution.
132786Ssos *
142786Ssos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
152786Ssos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
162786Ssos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1738140Syokota * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
182786Ssos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
197420Ssos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
202786Ssos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
212786Ssos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
222786Ssos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
232786Ssos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
242786Ssos * SUCH DAMAGE.
252786Ssos */
262786Ssos
272786Ssos#include <sys/cdefs.h>
282786Ssos__FBSDID("$FreeBSD: head/lib/libc/stdio/vwscanf.c 103856 2002-09-23 12:40:06Z tjr $");
292786Ssos
302786Ssos#include <stdarg.h>
312786Ssos#include <stdio.h>
322786Ssos#include <wchar.h>
332786Ssos
342786Ssosint
352786Ssosvwscanf(const wchar_t * __restrict fmt, va_list ap)
362786Ssos{
372786Ssos
382786Ssos	return (vfwscanf(stdin, fmt, ap));
392786Ssos}
402786Ssos