You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write formatted output using a pointer to a list of arguments. These are versions of [vsprintf, _vsprintf_l, vswprintf, _vswprintf_l, \__vswprintf_l](vsprintf-vsprintf-l-vswprintf-vswprintf-l-vswprintf-l.md) with security enhancements as described in [Security Features in the CRT](../../c-runtime-library/security-features-in-the-crt.md).
13
+
Write formatted output using a pointer to a list of arguments. These functions are versions of [vsprintf, _vsprintf_l, vswprintf, _vswprintf_l, \__vswprintf_l](vsprintf-vsprintf-l-vswprintf-vswprintf-l-vswprintf-l.md) with security enhancements as described in [Security Features in the CRT](../../c-runtime-library/security-features-in-the-crt.md).
14
14
15
15
## Syntax
16
16
@@ -88,7 +88,7 @@ These functions differ from the non-secure versions only in that the secure vers
88
88
89
89
The versions of these functions with the **_l** suffix are identical except that they use the locale parameter passed in instead of the current thread locale.
90
90
91
-
In C++, using these functions is simplified by template overloads; the overloads can infer buffer length automatically (eliminating the need to specify a size argument) and they can automatically replace older, non-secure functions with their newer, secure counterparts. For more information, see [Secure Template Overloads](../../c-runtime-library/secure-template-overloads.md).
91
+
In C++, using these functions is simplified by template overloads. The overloads can infer buffer length automatically, eliminating the need to specify a size argument. And, they can automatically replace non-secure functions with their secure counterparts. For more information, see [Secure Template Overloads](../../c-runtime-library/secure-template-overloads.md).
92
92
93
93
### Generic-Text Routine Mappings
94
94
@@ -112,13 +112,15 @@ For additional compatibility information, see [Compatibility](../../c-runtime-li
112
112
113
113
```C
114
114
// crt_vsprintf_s.c
115
+
// Compile with: cl /W4 crt_vsprintf_s.c
115
116
// This program uses vsprintf_s to write to a buffer.
116
117
// The size of the buffer is determined by _vscprintf.
0 commit comments