search for: stringcchprintfexa

Displaying 2 results from an estimated 2 matches for "stringcchprintfexa".

Did you mean: stringcchprintfa
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
2013 Mar 15
0
snprintf and MS Visual Studio
Microsoft provides a surprisingly good (but proprietary) API inside strsafe.h. StringCchPrintfA can be substituted for snprintf but the return value is different. A small wrapper function around StringCchPrintfExA could get you enough information to emulate snprintf well. But sprintf_s might be good enough for the limited uses inside flac, as you said. Sent from my iPhone On Mar 14, 2013, at 9:09 PM, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote: > Christoph Terasa wrote: > >> Si...