1244971Sjkim/* $OpenBSD: vwscanf.c,v 1.3 2015/08/31 02:53:57 guenther Exp $ */ 2244971Sjkim 3244971Sjkim/*- 4244971Sjkim * Copyright (c) 2002 Tim J. Robbins 5244971Sjkim * All rights reserved. 6244971Sjkim * 7244971Sjkim * Redistribution and use in source and binary forms, with or without 8306536Sjkim * modification, are permitted provided that the following conditions 9244971Sjkim * are met: 10244971Sjkim * 1. Redistributions of source code must retain the above copyright 11244971Sjkim * notice, this list of conditions and the following disclaimer. 12244971Sjkim * 2. Redistributions in binary form must reproduce the above copyright 13244971Sjkim * notice, this list of conditions and the following disclaimer in the 14244971Sjkim * documentation and/or other materials provided with the distribution. 15244971Sjkim * 16244971Sjkim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17244971Sjkim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18244971Sjkim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19244971Sjkim * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20244971Sjkim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21244971Sjkim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22244971Sjkim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23244971Sjkim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24244971Sjkim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25244971Sjkim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26244971Sjkim * SUCH DAMAGE. 27244971Sjkim */ 28244971Sjkim 29244971Sjkim#include <stdarg.h> 30244971Sjkim#include <stdio.h> 31244971Sjkim#include <wchar.h> 32244971Sjkim 33244971Sjkimint 34244971Sjkimvwscanf(const wchar_t * __restrict fmt, __va_list ap) 35244971Sjkim{ 36244971Sjkim 37244971Sjkim return (vfwscanf(stdin, fmt, ap)); 38244971Sjkim} 39244971SjkimDEF_STRONG(vwscanf); 40244971Sjkim