Commit Graph

99 Commits

Author SHA1 Message Date
Jacek Caban c317c1c47c stdio.h: Add ucrt _snscanf_l declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 19:35:38 +01:00
Jacek Caban 6e5ef798be stdio.h: Add ucrt sscanf and sscanf_s declarations.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 19:35:38 +01:00
Jacek Caban 1e1b5d58f7 stdio.h: Add ucrt scanf and scanf_s declarations.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 18:27:03 +01:00
Jacek Caban 8a5983197a stdio.h: Add ucrt fscanf and fscanf_s declarations.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 18:26:43 +01:00
Jacek Caban 6805ae0f05 stdio.h: Add ucrt sprintf_s declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 18:26:39 +01:00
Jacek Caban 95be8e4928 stdio.h: Add ucrt printf_s and vprintf_s declarations.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 18:26:36 +01:00
Jacek Caban 04ad51b3e5 stdio.h: Add ucrt printf and vprintf declarations.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 18:26:33 +01:00
Jacek Caban 39b1d610d8 stdio.h: Add ucrt fprintf and fprintf_s declarations.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 18:26:29 +01:00
Jacek Caban 6bc1573045 stdio.h: Add ucrt _snprintf_s declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 18:26:25 +01:00
Jacek Caban 9bfd465236 stdio.h: Add ucrt _scprintf declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 18:26:20 +01:00
Francois Gouget c2404ba333 msvcrt: Old versions of _vsnprintf() treat the size as a signed int.
When they see -1 they consider that the buffer is too small and return
an error. So impose a 2 GB limit on sprintf() for backward
compatibility with XP and 2003.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-21 00:55:44 +01:00
Jacek Caban 62d43ed418 stdio.h: Add ucrt vfprintf_s declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-20 16:17:41 +01:00
Jacek Caban 567b9ac093 stdio.h: Add ucrt vfprintf declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-20 16:17:38 +01:00
Jacek Caban add7409c0a stdio.h: Add ucrt _vsprintf_p_l declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-20 16:17:34 +01:00
Jacek Caban 84778f154a stdio.h: Add ucrt vsprintf_s declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-20 16:17:31 +01:00
Jacek Caban a68c92d45a stdio.h: Add ucrt vsprintf declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-20 16:17:27 +01:00
Jacek Caban b8681acd46 stdio.h: Add ucrt _vscprintf declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-20 16:17:23 +01:00
Jacek Caban a3f973c434 stdio.h: Add ucrt _vsnprintf_s declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-20 16:17:18 +01:00
Jacek Caban 6017d33339 include: Move __acrt_iob_func declaration to corecrt_wstdio.h.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-20 16:17:12 +01:00
Jacek Caban c60b21926e stdio.h: Add ucrt version of vsnprintf inline wrapper.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-18 20:30:24 +01:00
Jacek Caban 0eb79209d1 stdio.h: Add snprintf inline wrapper.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-18 20:30:10 +01:00
Jacek Caban d840af4b87 include: Move NULL define to corecrt.h.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-16 21:23:13 +01:00
Jacek Caban 84dbedc922 stdio.h: Provide sprintf and _snprintf as inline wrappers.
It's enough for Wine debug functions to use _vsnprintf from ucrtbase
importlib instead of ntdll for modules that link to ucrtbase.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-16 20:55:18 +01:00
Jacek Caban ba07e25ccf corecrt_wstdio.h: Add new file and use it instead of duplicating declarations in stdio.h and wchar.h.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-13 16:44:24 +01:00
Erich E. Hoover 6d70b1a66e webservices: Use sscanf to convert strings to doubles.
Signed-off-by: Erich E. Hoover <erich.e.hoover@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-07 22:26:08 +01:00
Jacek Caban 80e2154856 include/msvcrt: Include corecrt.h instead of crtdefs.h.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 19:37:21 +02:00
Jacek Caban 14e7e331ae stdio.h: Use __acrt_iob_func to access standard stream files.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-07 00:12:25 +02:00
Alexandre Julliard 44be6a8294 include/msvcrt: Add snprintf() compatibility macro.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-29 10:44:09 +02:00
Alexandre Julliard 9b63daca51 include: Default to the standards-compliant version of swprintf().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-11 16:46:41 +02: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
Alistair Leslie-Hughes fae0570a88 msvcrt: Implement clearerr_s.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 11:19:36 +02:00
Iván Matellanes bcbd83d154 msvcrt: Added _fread_nolock_s implementation. 2014-11-10 19:25:15 +09:00
Iván Matellanes 0ad3537d68 msvcrt: Added _putwc_nolock implementation. 2014-11-06 13:41:27 +09:00
Iván Matellanes 755a54b2a7 msvcrt: Added _putc_nolock implementation. 2014-11-06 13:41:23 +09:00
Iván Matellanes fb4248315f msvcrt: Added _getwc_nolock implementation. 2014-11-06 13:41:19 +09:00
Iván Matellanes caedfc8954 msvcrt: Added _getc_nolock implementation. 2014-11-06 13:41:13 +09:00
Iván Matellanes 4f807d9ae9 msvcrt: Added _ungetwc_nolock implementation. 2014-11-05 13:15:44 +09:00
Iván Matellanes 6f24dd9677 msvcrt: Added _ungetc_nolock implementation. 2014-11-05 13:15:20 +09:00
Iván Matellanes b536ff62ef msvcrt: Added _fputwc_nolock implementation. 2014-11-05 13:14:35 +09:00
Iván Matellanes 975a95a25b msvcrt: Added _fputc_nolock implementation. 2014-11-05 13:14:03 +09:00
Iván Matellanes 156684ba91 msvcrt: Added _fgetwc_nolock implementation. 2014-10-31 15:35:36 +09:00
Iván Matellanes 878b4a9280 msvcrt: Added _fgetc_nolock implementation. 2014-10-31 15:35:24 +09:00
Iván Matellanes 4bb80afedc msvcrt: Added _fflush_nolock implementation.
Thanks to Piotr Caban for the test.
2014-10-27 19:03:57 +09:00
Iván Matellanes c53e0384a5 msvcrt: Added _fseek_nolock implementation. 2014-10-16 13:02:24 +09:00
Iván Matellanes 5077d8c137 msvcrt: Added _fseeki64_nolock implementation. 2014-10-16 13:02:16 +09:00
Iván Matellanes 50574ccffa msvcrt: Added _ftell_nolock implementation. 2014-10-16 13:02:08 +09:00
Iván Matellanes 7cf0c877b3 msvcrt: Added _ftelli64_nolock implementation. 2014-10-16 13:01:59 +09:00
Iván Matellanes 25d7a1bbbf msvcrt: Added _fwrite_nolock() implementation. 2014-10-13 18:09:06 +09:00
Iván Matellanes 206ea48f20 msvcrt: Added _fread_nolock() implementation. 2014-10-13 18:08:54 +09:00
Iván Matellanes 9fda14a9d6 msvcrt: Added _fclose_nolock() implementation. 2014-10-08 14:47:46 +02:00