1214117Sjamie/*
2223190SjamieCopyright (C) 1993 Free Software Foundation
3214117Sjamie
4214117SjamieThis file is part of the GNU IO Library.  This library is free
5214117Sjamiesoftware; you can redistribute it and/or modify it under the
6214117Sjamieterms of the GNU General Public License as published by the
7214117SjamieFree Software Foundation; either version 2, or (at your option)
8214117Sjamieany later version.
9214117Sjamie
10214117SjamieThis library is distributed in the hope that it will be useful,
11214117Sjamiebut WITHOUT ANY WARRANTY; without even the implied warranty of
12214117SjamieMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13214117SjamieGNU General Public License for more details.
14214117Sjamie
15214117SjamieYou should have received a copy of the GNU General Public License
16214117Sjamiealong with this library; see the file COPYING.  If not, write to the Free
17214117SjamieSoftware Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18214117Sjamie
19214117SjamieAs a special exception, if you link this library with files
20214117Sjamiecompiled with a GNU compiler to produce an executable, this does not cause
21214117Sjamiethe resulting executable to be covered by the GNU General Public License.
22214117SjamieThis exception does not however invalidate any other reasons why
23214117Sjamiethe executable file might be covered by the GNU General Public License. */
24214117Sjamie
25214117Sjamie#include "libioP.h"
26214117Sjamie
27214117Sjamie#ifdef __STDC__
28214117Sjamie#include <stdarg.h>
29214117Sjamie#else
30214117Sjamie#include <varargs.h>
31214783Sjamie#endif
32214117Sjamie
33214117Sjamieint
34214117Sjamie_IO_scanf
35214117Sjamie#ifdef __STDC__
36214117Sjamie  (const char* format, ...)
37214117Sjamie#else
38214117Sjamie(format, va_alist) char *format; va_dcl
39214117Sjamie#endif
40214117Sjamie{
41214117Sjamie  int ret;
42214117Sjamie  va_list args;
43223351Sjamie  _IO_va_start(args, format);
44214117Sjamie  ret = _IO_vfscanf(_IO_stdin, format, args, NULL);
45214117Sjamie  va_end(args);
46214117Sjamie  return ret;
47214117Sjamie}
48214117Sjamie