X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fcrtdll%2Fstdio%2Fscanf.c;fp=lib%2Fcrtdll%2Fstdio%2Fscanf.c;h=0000000000000000000000000000000000000000;hp=10d7c42c5d8970fbcba605b970b2df2ec4414fff;hb=7c0cf90e3b750f1f0dc83b2eec9e5c68a512c30f;hpb=ee8b63255465d8c28be3e7bd11628015708fc1ab diff --git a/lib/crtdll/stdio/scanf.c b/lib/crtdll/stdio/scanf.c deleted file mode 100644 index 10d7c42..0000000 --- a/lib/crtdll/stdio/scanf.c +++ /dev/null @@ -1,69 +0,0 @@ -/* Copyright (C) 1991, 1995, 1996 Free Software Foundation, Inc. -This file is part of the GNU C Library. - -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. - -The GNU 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 -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ - -#include -#include -#include -#include - - -/* The function `vscanf' is not defined in ISO C. Therefore we must - use the protected form here. In stdio it is called `__vscanf' and - in libio `_IO_vscanf'. */ -#ifdef USE_IN_LIBIO -# include -# define VSCANF _IO_vscanf -#else -# define VSCANF __vscanf -#endif - -int __vscanf (const char *format, va_list arg); - -/* Read formatted input from stdin according to the format string FORMAT. */ -/* VARARGS1 */ -int scanf (const char *format, ...) -{ - va_list arg; - int done; - - va_start (arg, format); - done = VSCANF (format, arg); - va_end (arg); - - return done; -} - -int -wscanf(const wchar_t *fmt, ...) -{ - va_list arg; - int done; - char *f; - int i, len = wcslen(fmt); - - f = malloc(len+1); - for(i=0;i