2012-09-07 20:36:27 +02:00
|
|
|
/*******************************************************************************
|
|
|
|
|
2013-09-01 01:42:02 +02:00
|
|
|
Copyright(C) Jonas 'Sortie' Termansen 2012, 2013, 2014.
|
2012-09-07 20:36:27 +02:00
|
|
|
|
2013-07-10 15:26:01 +02:00
|
|
|
This file is part of the Sortix C Library.
|
2012-09-07 20:36:27 +02:00
|
|
|
|
2013-07-10 15:26:01 +02:00
|
|
|
The Sortix C Library is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
option) any later version.
|
2012-09-07 20:36:27 +02:00
|
|
|
|
2013-07-10 15:26:01 +02:00
|
|
|
The Sortix C Library is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
|
|
|
License for more details.
|
2012-09-07 20:36:27 +02:00
|
|
|
|
2013-07-10 15:26:01 +02:00
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
2012-09-07 20:36:27 +02:00
|
|
|
|
2013-06-25 13:58:12 +02:00
|
|
|
stdio/vfscanf.cpp
|
2013-07-10 15:26:01 +02:00
|
|
|
Input format conversion.
|
2012-09-07 20:36:27 +02:00
|
|
|
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2014-01-19 17:27:36 +01:00
|
|
|
extern "C" int vfscanf(FILE* fp, const char* format, va_list ap)
|
2012-09-07 20:36:27 +02:00
|
|
|
{
|
2013-09-01 01:42:02 +02:00
|
|
|
flockfile(fp);
|
|
|
|
int result = vfscanf_unlocked(fp, format, ap);
|
|
|
|
funlockfile(fp);
|
|
|
|
return result;
|
2012-09-07 20:36:27 +02:00
|
|
|
}
|