Commit Graph

136 Commits

Author SHA1 Message Date
Alexandre Julliard 1f7489d493 crtdll: Share source with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-29 21:13:43 +01:00
Piotr Caban f48ea29726 msvcrt: Use _strnicmp instead of strncasecmp.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-26 13:50:36 +01:00
Piotr Caban 462caf8fbd msvcrt: Use _stricmp instead of strcasecmp.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-26 13:50:34 +01:00
Piotr Caban 834134f284 msvcrt: Use internal tolower implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-26 13:50:30 +01:00
Piotr Caban 8c1684a50a msvcrt: Don't detect overflow in atol implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46845
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-18 10:10:44 +01:00
Piotr Caban 58140f73a2 msvcrt: Fix long limits in _atol_l.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-18 10:10:36 +01:00
Nikolay Sivov 60c06980cf msvcrt: Implement __strncnt().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-30 18:04:48 +01:00
Piotr Caban c99d14d04d msvcrt: Don't forward strpbrk to ntdll.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 17:32:14 +02:00
Piotr Caban f43ae5e803 msvcrt: Don't forward strcspn to ntdll.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 17:32:11 +02:00
Piotr Caban 98eb7171e1 msvcrt: Don't forward atol to ntdll.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 17:32:00 +02:00
Piotr Caban 4d0a008e5d msvcrt: Don't forward _atoi64 to ntdll.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45922
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-17 17:31:42 +02:00
Daniel Lehman eb37e2e482 msvcrt: Don't read past end of string in _strnicoll/_wcsnicoll.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-19 17:47:53 +02:00
Daniel Lehman 368e9f39b4 msvcrt: Don't read past end of string in _strncoll/_wcsncoll.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-19 17:47:44 +02:00
Hua Meng e1c7a1f7ce msvcrt: Implement _atoi64_l.
Signed-off-by: Hua Meng <161220092@smail.nju.edu.cn>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-26 22:56:31 +02:00
Hua Meng 2f9dd7f6cb msvcrt: Implement _atol_l.
Signed-off-by: Hua Meng <161220092@smail.nju.edu.cn>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-26 22:56:23 +02:00
Piotr Caban 52415cabb0 msvcrt: Optimize _strupr implementation in C locale.
Don't write to input buffer when there's nothing to change.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-22 20:15:15 +01:00
Alex Henrie 1afc433954 msvcrt: Don't include MSVC 8.0+ string functions in SOs for older DLLs.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 15:52:22 +01:00
Nikolay Sivov d045a5ea29 msvcrt: Implement _memicmp_l().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-08 20:21:10 +01:00
Piotr Caban 395a65bdc6 msvcrt: Fix strcpy implementation so it works on overlapping buffers.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-06 10:34:11 +09:00
Bernhard Übelacker 4fa616c37c msvcrt: Fix strtok_s and _mbstok_s for empty strings.
Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 20:38:15 +09:00
Bernhard Übelacker 78716aebf8 msvcr120: Implement strtof and _strtof_l.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 15:10:20 +09:00
Piotr Caban aff5d2c1f3 msvcrt: Don't use isdigit in places where only 0-9 digits are handled.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 15:10:20 +09:00
Rafał Harabień ad9ab7c40b msvcr120: Implement atoll, _atoll_l, _wtoll, _wtoll_l.
Signed-off-by: Rafał Harabień <rafalh1992@o2.pl>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 23:25:57 +09:00
Piotr Caban 5e10634a5a msvcrt: Add _strtol_l implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:19:54 +01:00
Martin Storsjo 8578702e06 ucrtbase: Make the strtod implementation C99 compatible.
Add a test for ucrtbase that verifies these aspects of the C99
behaviour of strtod.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2015-10-02 20:50:10 +09:00
Sebastian Lackner abbb361733 msvcrt: Set *end to NULL when strtod is called with NULL pointer string. 2015-06-29 19:07:50 +09:00
Piotr Caban 0922865b37 msvcrt: Fix strtol implementation on strings not containing valid number. 2015-06-08 19:07:55 +09:00
Vincent Povirk 5ba68bb966 msvcrt: Implement _strtoul_l. 2014-10-29 20:31:03 +09:00
Piotr Caban 7cf23a7957 msvcrt: Fix _stricmp behavior on characters that doesn't fit into signed char. 2014-09-03 16:31:01 +02:00
Piotr Caban 53869e19eb msvcrt: Add _strnset_s implementation. 2014-09-02 15:07:27 +02:00
Piotr Caban 00bce25143 msvcrt: Add _strxfrm_l implementation. 2014-06-12 18:25:23 +02:00
Piotr Caban 49e503c55a msvcrt: Remove no longer needed exports. 2014-04-21 14:31:48 +02:00
Piotr Caban beeea28a53 msvcr100: Move functions implementation to msvcrt. 2014-04-16 18:00:15 +02:00
Piotr Caban e70bf5f8c6 msvcrt: Fix compilation errors on Mingw. 2014-04-16 18:00:01 +02:00
Piotr Caban 619944cf58 msvcrt: Fix str*coll functions behavior in C locale. 2014-01-27 14:13:27 +01:00
Piotr Caban f906be9ef4 msvcrt: Don't validate parameters in _itoa function. 2013-10-15 16:36:25 +02:00
Piotr Caban d99090aff8 msvcrt: Don't forward _itoa to ntdll. 2013-10-01 13:10:21 +02:00
Frédéric Delanoy cb7546eaf7 msvcrt: Use BOOL type where appropriate. 2013-09-27 10:44:55 +02:00
Piotr Caban a449b2d57b msvcrt: Call MSVCRT_strtoi64_l in strtoul implementation. 2013-09-25 19:30:32 +02:00
Piotr Caban c3c44544ff msvcrt: Call MSVCRT_strtoi64_l in strtol implementation. 2013-09-25 19:30:30 +02:00
Piotr Caban 019c34ca1e msvcrt: Don't forward strstr to ntdll. 2013-09-17 16:25:28 +02:00
Piotr Caban 138df7da33 msvcrt: Don't forward strrchr to ntdll. 2013-09-17 16:25:23 +02:00
Piotr Caban 31d92b926e msvcrt: Don't forward strncat to ntdll. 2013-09-17 16:25:04 +02:00
Piotr Caban f0ec9b134a msvcrt: Don't forward strlen to ntdll. 2013-09-17 16:24:58 +02:00
Piotr Caban 1803016c08 msvcrt: Don't forward strcmp to ntdll. 2013-09-17 16:24:53 +02:00
Piotr Caban 5b1f7f8549 msvcrt: Don't forward memmove to ntdll. 2013-09-17 16:24:46 +02:00
Piotr Caban 4fbf246298 msvcrt: Don't forward memcmp to ntdll. 2013-09-17 16:24:39 +02:00
Álvaro Nieto e3e1284557 msvrct: Fix strncpy to fill the buffer. 2013-08-16 20:49:36 +02:00
Piotr Caban bba1db0905 msvcrt: Don't forward memchr to ntdll. 2013-06-21 16:23:35 +02:00
Piotr Caban f3eb64ec73 msvcrt: Don't detect overflow in atoi implementation. 2013-06-04 21:01:13 +02:00