3 Copyright (C) 1993 Free Software Foundation
5 This file is part of the GNU IO Library. This library is free
6 software; you can redistribute it and/or modify it under the
7 terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option)
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this library; see the file COPYING. If not, write to the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 As a special exception, if you link this library with files
21 compiled with a GNU compiler to produce an executable, this does not cause
22 the resulting executable to be covered by the GNU General Public License.
23 This exception does not however invalidate any other reasons why
24 the executable file might be covered by the GNU General Public License. */
27 #include "streambuf.h"
30 int streambuf::vscan(char const *fmt0
, _IO_va_list ap
, ios
* stream
/* = NULL*/)
33 int count
= _IO_vfscanf(this, fmt0
, ap
, &errcode
);
35 stream
->setstate((ios::iostate
)errcode
);
38 int streambuf::scan(char const *format
...)
42 int count
= _IO_vfscanf(this, format
, ap
, NULL
);