search for: ce3zzk1k

Displaying 4 results from an estimated 4 matches for "ce3zzk1k".

2013 Mar 14
4
snprintf and MS Visual Studio
Hi all, There are a bunch of sprintf calls in the FLAC code base and I'd like to replace them with calls to snprintf but I know that can cause problems with at least some versions of Visual Studio. Whats the current state of play in this regard? Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
2013 Mar 15
2
snprintf and MS Visual Studio
Christoph Terasa wrote: > Since MS refuses to support C99, the common practice is to use either > > sprintf_s: > http://msdn.microsoft.com/en-us/library/ce3zzk1k(v=VS.80).aspx > _snprintf_s: > http://msdn.microsoft.com/de-de/library/f30dzcf6(v=VS.80).aspx > > The former can be used as a drop-in replacement of snprintf via a > define, the latter takes an additional argument count which can limit > the bytes written to the buffer add...
2013 Mar 14
0
snprintf and MS Visual Studio
...to snprintf but I know that can cause > problems with at least some versions of Visual Studio. > > Whats the current state of play in this regard? > > Erik Since MS refuses to support C99, the common practice is to use either sprintf_s: http://msdn.microsoft.com/en-us/library/ce3zzk1k(v=VS.80).aspx _snprintf_s: http://msdn.microsoft.com/de-de/library/f30dzcf6(v=VS.80).aspx The former can be used as a drop-in replacement of snprintf via a define, the latter takes an additional argument count which can limit the bytes written to the buffer additionally. DO NOT use _sn...
2013 Mar 15
0
snprintf and MS Visual Studio
...m my iPhone On Mar 14, 2013, at 9:09 PM, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote: > Christoph Terasa wrote: > >> Since MS refuses to support C99, the common practice is to use either >> >> sprintf_s: >> http://msdn.microsoft.com/en-us/library/ce3zzk1k(v=VS.80).aspx >> _snprintf_s: >> http://msdn.microsoft.com/de-de/library/f30dzcf6(v=VS.80).aspx >> >> The former can be used as a drop-in replacement of snprintf via a >> define, the latter takes an additional argument count which can limit >> the bytes wr...