search for: sprintf_s

Displaying 11 results from an estimated 11 matches for "sprintf_s".

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 w...
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: > >> Since MS refuses to support C99, the common practice is to use either >&g...
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/
2012 Sep 19
7
[LLVMdev] Handling of unsafe functions
...d are for manipulating strings. Memcpy is the most commonly used of all these unsecure methods. The following table lists all these functions are their recommended secure alternatives. Recommended alternatives: Functions Windows Unix/Mac OS Memcpy memcpy_s - Sprint sprintf_s snprintf Sscanf scanf_s - _alloca _malloca - Strcat strcat_s strlcat Strcpy strcpy_s strlcpy Strtok strtok_s - The proposal is to add secure versions of these functions. These functions will be im...
2012 Sep 19
0
[LLVMdev] Handling of unsafe functions
...monly used of all these unsecure methods. The > following table lists all these functions are their recommended secure > alternatives. > > > > Recommended alternatives: > > Functions Windows Unix/Mac OS > > Memcpy memcpy_s - > > Sprint sprintf_s snprintf > > Sscanf scanf_s - > > _alloca _malloca - > > Strcat strcat_s strlcat > > Strcpy strcpy_s strlcpy > > Strtok strtok_s - > > > > The proposal is to add...
2012 Sep 19
0
[LLVMdev] Handling of unsafe functions
...lating strings. Memcpy is the most commonly used of all these > unsecure methods. The following table lists all these functions are > their recommended secure alternatives. > > Recommended alternatives: > > Functions Windows Unix/Mac OS > > Memcpy memcpy_s - > > Sprint sprintf_s snprintf > > Sscanf scanf_s - > > _alloca _malloca - > > Strcat strcat_s strlcat > > Strcpy strcpy_s strlcpy > > Strtok strtok_s - > > The proposal is to add secure versions of these functions. These > functions will be implemented in LLVM Support module and b...
2013 Mar 14
0
snprintf and MS Visual Studio
...ase 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 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 writ...
2012 Sep 20
1
[LLVMdev] Handling of unsafe functions
...nly used of all these unsecure methods. The > following table lists all these functions are their recommended secure > alternatives. > > > > Recommended alternatives: > > Functions Windows Unix/Mac OS > > Memcpy memcpy_s - > > Sprint sprintf_s snprintf > > Sscanf scanf_s - > > _alloca _malloca - > > Strcat strcat_s strlcat > > Strcpy strcpy_s strlcpy > > Strtok strtok_s - > > > > The proposal is to add...
2007 Mar 06
1
Errors compiling flac in Visual Studio Express 2005
...rations_shorthand_cuesheet.c(163) : warning C4996: 'sprintf' was declared deprecated 10> c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf' 10> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 10>c:\greenhouse\workspace\soundio\tool\flac_1.1.3\main\flac-1.1.3\src\metaflac\operations_shorthand_cuesheet.c(189) : warning C4996: 'fopen' was declared deprecated 10> c:\progra...
2010 Jan 22
0
Wine release 1.1.37
...t implementation. mshtml: Added IDispatchEx support for frame element. jscript: Skip tests on too old jscript.dll. James Hawkins (1): Revert "advapi32: Free descriptor if it isn't returned from GetSecurityInfo().". Jason Edmeades (6): msvcrt: Add support for vsprintf_s. msvcrt: Add support for sprintf_s. comctl32/listview: Issue LVM_DELETEALLITEMS from WM_DESTROY. kernel32: Return error on second attempt to free a module. netapi31: Add basic support for NetServerGetInfo. msi: Correct the setting of environment variables. Jeff Zaroyk...
2020 Feb 28
0
Wine release 5.3
...intf inline wrapper. include: Add corecrt_wio.h header. include: Move __acrt_iob_func declaration to corecrt_wstdio.h. stdio.h: Add ucrt _vsnprintf_s declaration. stdio.h: Add ucrt _vscprintf declaration. stdio.h: Add ucrt vsprintf declaration. stdio.h: Add ucrt vsprintf_s declaration. stdio.h: Add ucrt _vsprintf_p_l declaration. stdio.h: Add ucrt vfprintf declaration. stdio.h: Add ucrt vfprintf_s declaration. include: Add corecrt_wtime.h file. include: Include sys/stat.h from wchar.h. stdio.h: Add ucrt _scprintf declaration....