Commit Graph

117 Commits

Author SHA1 Message Date
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
Jactry Zeng 7cd91b6452 msvcrt: Fixed typo of _strncoll and _strncoll_l. 2013-04-29 20:30:55 +02:00
Piotr Caban b626556272 msvcrt: Don't forward strncpy to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban e66e950459 msvcrt: Don't forward strncmp to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban bf237452ef msvcrt: Don't forward strchr to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban 1278080901 msvcrt: Don't forward memset to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban 15b40e7b9c msvcrt: Don't forward atoi to ntdll. 2013-03-27 20:12:29 +01:00
Piotr Caban 737bb1bb18 msvcrt: Fixed copied buffer size in _ui64tow_s. 2013-03-25 16:28:07 +01:00
Piotr Caban 6382bc5219 msvcrt: Don't call invalid parameter handler in str{n,i}cmp functions. 2013-01-28 14:06:09 +01:00
Piotr Caban eaa1b70603 msvcrt: Added _strnicmp_l implementation. 2012-12-26 18:23:05 +01:00
Piotr Caban dbec250635 msvcrt: Added _stricmp_l implementation. 2012-12-24 13:34:04 +01:00
Piotr Caban 0c91daee8b msvcrt: Use LC_COLLATE category in strcoll functions. 2012-12-18 12:38:39 +01:00
Piotr Caban 3b5ab1b48f msvcrt: Added _atodbl_l implementation. 2012-12-17 20:31:25 +01:00
Piotr Caban 38bf8ac44b msvcrt: Don't duplicate floating-point number parsing code in MSVCRT__atoflt_l. 2012-12-17 20:31:24 +01:00
Austin English c8e71e9a3e msvcrt: Implement memcpy in msvcrt instead of forwarding to ntdll. 2012-12-14 12:15:05 +01:00
Piotr Caban b5cf3057e9 msvcrt: Added _atoi_l implementation. 2012-12-12 12:00:46 +01:00
Piotr Caban cbb94b1fcc msvcrt: Improved strtod_l precision. 2012-11-06 16:02:36 +01:00
Piotr Caban a3035679d5 msvcrt: Improved _atoflt_l precision. 2012-11-06 16:02:35 +01:00
Alexandre Julliard 06989a0483 msvcrt: Make sure that errno is always set when calling the invalid parameter handler. 2012-07-26 11:05:32 +02:00
Francois Gouget d817bbd6f4 msvcrt: Use the CSTR_XXX macros instead of numeric literals. 2012-06-21 08:33:36 +02:00