Piotr Caban
287dabd9b6
msvcrt: Fix floating point numbers scanning when null-byte is preceding the number.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48452
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-13 22:20:36 +01:00
Piotr Caban
7695433c05
msvcrt: Support mixing length and width in scanf format.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45967
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-06 22:30:23 +01:00
Erich E. Hoover
0a89a69913
msvcrt: Fix fscanf return when EOF is immediately after an end of line.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-22 23:04:27 +02:00
Alexandre Julliard
9a4b596ed9
msvcrt/tests: Add some function pointers to bypass gcc builtin functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-10 21:01:46 +02:00
Michał Janiszewski
08d98f0ff8
msvcrt: Update size checks for secure scanf versions.
...
Signed-off-by: Michał Janiszewski <janisozaur@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-09 18:04:17 +02:00
Piotr Caban
7aa67f1e5f
msvcrt: Fix buffer size checks in swscanf_s.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 15:57:12 +01:00
Alexandre Julliard
7726157e19
msvcrt: Use WINAPIV calling convention for variadic functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 10:20:02 +01:00
Piotr Caban
e7f9b562b9
msvcrt: Fix wide characters handling in wscanf functions.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 13:08:57 +02:00
Piotr Caban
32bb8d9068
msvcrt: Fix handling of unsigned chars in scanf format.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-31 15:53:21 +02:00
Nikolay Sivov
d99727bcb3
msvcrt: Fix char to int promotion that breaks pattern lookup.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:31:53 +01:00
Andrey Gusev
8bfc9bd2ee
Assorted typos fixes.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:30 +09:00
Piotr Caban
638c8e3847
msvcrt: Don't overwrite unmatched string in scanf.
2014-01-16 21:04:19 +01:00
Piotr Caban
a9c6113c28
msvcrt: Improved parsing precision of doubles in scanf.
...
This code is based on doubles parsing in jscript lexer.
2012-11-01 15:43:21 +01:00
Piotr Caban
bab686e7d1
msvcrt: Fixed %Lf format handling in scanf.
2012-11-01 15:43:14 +01:00
Piotr Caban
7240170cee
msvcrt: Added more length modifiers in scanf function.
2012-04-16 18:56:15 +02:00
Daniel Lehman
5a3695ccee
msvcrt: Make WEOF returned from swscanf signed.
2012-01-06 19:24:16 +01:00
Austin English
2164bb7a7f
msvcrt/tests: Make sure return values are used (LLVM/Clang).
2011-02-08 13:42:14 -06:00
Piotr Caban
ca3cb9e2f5
msvcrt/tests: Added sscanf_s tests.
2010-04-22 18:11:24 +02:00
Alexandre Julliard
52f87c4a57
msvcrt/tests: Fix the scanf pointer formatting tests on 64-bit.
2009-01-04 14:47:59 +01:00
Michael Stefaniuc
276b938e1d
msvcrt: Use NULL instead of casting zero.
2008-12-05 12:36:19 +01:00
Peter Oberndorfer
9e3a4652da
msvcrt: Implement %p for scanf.
2008-07-02 11:37:18 +02:00
Peter Oberndorfer
02fb99e6b3
msvcrt: Add a test for scanf %p.
2008-07-02 11:37:14 +02:00
Alasdair Sinclair
8137c094fd
msvcrt: If we're at EOF in the buffer and we have pattern %n in format string we should not count the EOF in the total.
2007-01-17 11:23:34 +01:00
Andrzej Popowski
4e5c51a6ee
msvcrt: Fix scanf format "%i" base detection.
2006-08-23 17:04:53 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
H. Verbeet
8c29b7dc8b
msvcrt: Fix reading of signed numbers with unsigned read types in scanf.
2006-03-27 11:30:50 +02:00
C. Scott Ananian
9ef2706a77
Allow scanf to continue parsing format string after a '%n'.
2005-03-10 11:44:19 +00:00
Francois Gouget
168265ebb0
Fix handling of EOF for the '%c' and '%C' cases in scanf().
...
Add conformance tests to verify the behavior of '%c'.
Improve some of the test's error messages.
2005-01-28 11:27:26 +00:00
Aneurin Price
97cc28ff0f
- Move printf tests from scanf.c to printf.c (and fix one on the
...
way).
- Add some more.
2004-11-04 21:03:30 +00:00
Francois Gouget
cfc3943c5f
Make our ascii strings static const.
...
Remove a couple string variables that were used only once and use the
string literal directly.
2004-05-04 04:13:05 +00:00
Francois Gouget
231fbff8d0
Add trailing '\n's to ok() calls.
2004-01-27 04:01:10 +00:00
Peter Berg Larsen
a457ee0a3d
%[a-z] and %[z-a] are interpreted as equivalent to %[abcde...z].
...
Added some scanf tests.
2004-01-06 21:36:10 +00:00
Uwe Bonnes
545a3b7118
Patch and test for scanf %i.
2003-12-15 21:06:19 +00:00
Ferenc Wagner
20c1d1e0f9
Added snprintf test.
2003-12-15 19:50:05 +00:00
Uwe Bonnes
16c3f341f9
Another difference in the printf family.
2003-10-28 00:04:42 +00:00
Uwe Bonnes
c23a9257f0
Added a test case for sprintf.
2003-10-24 04:24:08 +00:00
Uwe Bonnes
78754341db
Added test for %n.
2003-10-10 00:00:35 +00:00
Jon Griffiths
90535ce905
Various test fixes for XP/msvc.
2003-09-25 20:29:40 +00:00
Uwe Bonnes
29c7e32f83
Fix some sscanf cases and testcase to get wxtide32.exe running.
2003-05-13 23:38:46 +00:00
Mehmet Yasar
653510348a
- return EOF when stream is empty
...
- conformance test updated
2003-01-11 20:53:22 +00:00
Alexandre Julliard
7ea8a0b9be
Handle unknown format chars correctly (spotted by György 'Nog'
...
Jeney) and added test for it.
Removed unneeded _L_ macro.
2002-12-20 00:35:41 +00:00
Patrik Stridvall
517a93afe3
Fixed some issues found by winapi_check.
2002-11-06 19:57:49 +00:00
Uwe Bonnes
a768fa3119
First version of msvcrt scanf test.
2002-10-30 23:49:03 +00:00