Commit Graph

161 Commits

Author SHA1 Message Date
Jason Edmeades 97194ec070 msvcrt: Add support for sprintf_s. 2010-01-11 12:19:34 -06:00
Jason Edmeades a2d4e5cb5d msvcrt: Add support for vsprintf_s. 2010-01-11 12:19:30 -06:00
Marcus Meissner 4da51e087d msvcrt: Remove unnecessary NULL check (Coverity). 2009-12-04 14:34:58 +01:00
Andrew Nguyen 1eb0775670 msvcrt: Implement and test _wcsupr_s. 2009-11-16 17:06:16 +01:00
Andrew Nguyen 15b0087d6e msvcrt: Remove dead code in wcscpy_s. 2009-08-10 13:11:02 +02:00
Hans Leidekker 0803575fd3 msvcrt: Implement _vscprintf and _vscwprintf. 2009-03-26 16:12:15 +01:00
Alexandre Julliard a494b13abe msvcrt: Avoid size_t in printf format. 2009-01-08 13:12:24 +01:00
Alexandre Julliard 07ca8f4f8f msvcrt: Convert all the printf functions to use MS ABI varargs. 2009-01-03 11:38:25 +01:00
Alexandre Julliard 34f2487163 msvcrt: Fix formatting of pointers in printf. 2009-01-02 21:33:33 +01:00
Andrew Talbot 4c3d27dfee msvcrt: Sign-compare warnings fix. 2008-10-22 13:54:53 +02:00
Eric Pouech 6a77a36b24 msvcrt: Implemented vswprintf_s. 2008-10-21 11:45:54 +02:00
Eric Pouech 07c80924eb msvcrt: Implemented wcscat_s. 2008-10-13 11:55:55 +02:00
Eric Pouech 096991428f msvcrt: Implemented wcsncpy_s. 2008-10-06 14:11:53 +02:00
Jon Griffiths 8e86162be5 msvcrt: Fix exponents in *printf family. 2008-07-16 20:10:28 +02:00
Jon Griffiths b86915382d msvcrt: Follow Vista behaviour in wcscpy_s. 2008-05-27 19:37:09 +02:00
Alistair Leslie-Hughes 00609d5e78 msvcrt: Implement wcscpy_s. 2008-02-27 14:52:26 +01:00
Alexandre Julliard 1f5a4a8046 msvcrt: Get rid of the now unused strndup/wstrndup functions. 2007-07-27 12:18:44 +02:00
Michael Stefaniuc bbe9c51b31 msvcrt: Fix *printf() handling of negative field width. 2007-02-05 12:26:10 +01:00
Sam Dennis 48c006621d msvcrt: Use the custom vsnprintf implementation for msvcrt.vsprintf too. 2006-11-15 11:25:00 +01:00
Jesse Allen 5b75c86921 msvcrt: Estimate required buffer size better in pf_vsnprintf. 2006-11-14 11:37:31 +01:00
Jesse Allen fa8656f841 msvcrt: Free correct buffer in pf_vsnprintf. 2006-11-14 11:35:42 +01:00
Alexandre Julliard 24beabfd4e msvcrt: Explicitly specify CDECL calling convention on exported functions. 2006-06-13 11:40:23 +02:00
Andrew Talbot 5ebf4f5b4e msvcrt: Write-strings warnings fix. 2006-06-06 11:29:41 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Peter Beutner bc83ae9fda msvcrt: Fix handling of 'h' prefix in swprintf.
- '%hs' in widechar string functions is wrongly recognized as
  a widechar string. Fix this by always checking the prefix first.
- add testcase
- remove code duplication in %c/%s handling by moving code into a function.
2006-05-16 20:21:44 +02:00
Alexandre Julliard a17b2c1cd2 msvcrt: Use the msvcrt version of printf everywhere. 2006-01-24 12:21:58 +01:00
Alexandre Julliard ee603ce6dd msvcrt: Make snprintf and snwprintf use the msvcrt version of printf.
Remove todos from tests that succeed now.
2006-01-14 17:30:02 +01:00
Alexandre Julliard 2ec3b96135 msvcrt: Make strtok and wcstok thread-safe by using the per-thread data. 2006-01-14 17:24:49 +01:00
Jesse Allen 419d493aac msvcrt: pf_integer_conv for I64.
- Add pf_integer_conv and pf_is_integer_format.
- Update pf_fill to handle printing the sign for signed integers.
- Handle I64 integer sizes using pf_integer_conv and pf_output_format_A.
2005-12-26 13:01:38 +01:00
Jesse Allen ee058ed078 msvcrt: Do not treat %ll as an IntegerDouble in printf. 2005-12-26 13:00:35 +01:00
Jesse Allen 6c70942a05 msvcrt: Parse I, I32, and I64 integer size flags in printf. 2005-12-26 13:00:01 +01:00
Jesse Allen 180326bb0a msvcrt: Fix printf sign flags.
Fix the printf sign flags so that '+' doesn't always override ' '
space alone.  If they both appear, continue parsing and let '+' take
precedence.
2005-12-21 20:07:03 +01:00
Jesse Allen 39b725b799 msvcrt: Ignore PadZero when LeftAlign is true in printf conversions. 2005-12-20 11:49:05 +01:00
Jesse Allen 5c6311688c msvcrt: Require exact uppercase and lowercase format in printf routines. 2005-12-19 21:26:46 +01:00
Mike McCormack cbe3fb6922 Use the correct buffer - reported by Jesse Allen. 2005-10-28 09:40:16 +00:00
Mike McCormack 990e537ac5 Missing and zero precision specifiers are different. 2005-10-27 10:20:08 +00:00
Marcus Meissner 222d74ae27 char pointer must be 11 byte to fit 10 characters + \0. 2005-07-03 11:19:29 +00:00
f438056b5d Interpret %% correctly in printf format string. 2005-05-10 08:27:38 +00:00
Rein Klazes b6d331d680 Fix decoding printf format in case the field width specifier is a '*'. 2005-04-14 11:32:53 +00:00
Mike McCormack 5def7dd337 Handle %ls in sprintf. 2005-03-05 10:46:46 +00:00
Mike McCormack 5b4327515e Handle the printf %F format modifier. 2005-03-04 10:47:27 +00:00
Uwe Bonnes 0fb9ef68f3 Advance over * argument for precision.
Honor precision argument for strings.
2005-02-25 19:16:46 +00:00
Mike McCormack 2cc5f1e469 Add handling of %ws, %S and %C to _vns(w)printf, improve sprintf
tests.
2005-02-14 20:53:42 +00:00
Dimitrie O. Paun 0377462460 Split the MSVCRT implementation headers from the public headers.
Fix some naming conventions aberrations.
Add tests to ensure consistency between the two sets of symbols.
2004-06-25 01:19:15 +00:00
Mike McCormack db0d0bb39b Copy the vsnprintfW implementation from libunicode.so to msvcrt and
add a handler for the %S flag.  That requires a conversion to unicode
and knowledge of the current ASCII code page.
2004-06-02 00:35:09 +00:00
Dave Belanger 9a05e1fd41 wcstod: added exponent parsing and fixed handling of negative sign. 2004-04-08 19:48:19 +00:00
Jon Griffiths d051a95b26 A first stab at wcstod(). 2003-09-23 22:50:30 +00:00
Dmitry Timoshkov ad068bc0c2 Move vsnwprintf implementation to libwine_unicode, export snprintfW
and vsnprintfW from there, forward MSVCRT and NTDLL functions to
libwine_unicode.
2003-03-12 22:30:16 +00:00
Thomas Mertes 657ca8a873 Forward to the ntdll functions _itoa, _ltoa, _ultoa, _i64toa,
_ui64toa, _itow, _ltow, _ultow, _i64tow, _ui64tow, _atoi64, _wtoi,
_wtol, _wtoi64 from msvcrt / msvcrt20.
2003-03-12 20:17:03 +00:00
Alexandre Julliard 5f31b32946 Use MSVCRT_wchar_t instead of WCHAR so that the implementation matches
the prototypes.
2002-12-19 04:21:30 +00:00
John K. Hohm 45b94449e6 Fix msvcrt._vsnwprintf format reading bug like NTDLL_vsnwprintf. 2002-05-20 18:02:47 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Alexandre Julliard bd1689ec0a Don't include debugtools.h in the header file, moved it to the C files
that need it (and used the new wine/debug.h while we are at it).
2002-01-22 00:57:16 +00:00
Alexandre Julliard 22c2ac7273 Implemented inline version of the iswxxx functions. 2001-11-08 19:16:34 +00:00
Patrik Stridvall 6ac110836b Removed implementation of _ultow since it is forwarded to NTDLL in the
.spec file.
2001-06-19 03:44:39 +00:00
Ove Kaaven e188fda25f Handle the %f case in wsprintf. 2001-04-16 19:00:42 +00:00
Francois Gouget e7f75c5dfb Include the msvcrt headers, remove duplicate definitions.
Fixed the signature of a few functions.
Don't use wcs* functions, use *W (from unicode.h) instead.
2001-04-10 23:25:25 +00:00
Francois Gouget 203a8f8290 Adjust the 'MSVCRT_' prefix to match the msvcrt headers
Prefix internal methods with 'msvcrt_' instead of 'MSVCRT_', '__MSVCRT_', etc.
Remove '_cdecl', it's unnecessary
2001-04-10 21:16:07 +00:00
James Juran d537d09b9c Use int instead of WCHAR in va_arg() (fixes gcc-current compilation
problem).
2001-01-22 19:26:42 +00:00
Jon Griffiths 34c786b2db - New msvcrt unicode functions, winapi_check/-Wall/-W clean.
- Forward to ntdll where possible.
- Fix some .spec entries with incorrect parameters.
2001-01-22 02:21:54 +00:00
Jon Griffiths 1db20bfd33 - Migrate CRTDLL to MSVCRT.
- Many fixes and a load of new functions.
2001-01-10 23:59:25 +00:00