Re: [Mingw-users] snprintf() changes with mingw-runtime-3.14
- Date: Mon, 04 Feb 2008 21:58:29 +0000
- From: Paul Leder <sa212+mingw@xxxxxxxxxxx>
- Subject: Re: [Mingw-users] snprintf() changes with mingw-runtime-3.14
Brian Dessent wrote:
> Paul Leder wrote:
>
>> Can someone summarise the thread and tell us if there actually are any
>> replacement routines, and how to use them?
>
> You get the replacement if you use snprintf(). You get the broken MS
> version if you use the MS name, _snprintf(). Similarly for vsnprintf().
But the 5.1.3 vsnprintf doesn't work - it returns -1 if the buffer isn't
large enough. This is the MS and pre-C99 behaviour.
-Paul
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users