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
The size of the *`buffer`* for output, as the character count.
79
79
80
-
*`count`*<br/>
80
+
*`count`*\
81
81
Maximum number of characters to write (not including the terminating null), or [`_TRUNCATE`](../../c-runtime-library/truncate.md).
82
82
83
-
*`format`*<br/>
83
+
*`format`*\
84
84
Format specification.
85
85
86
-
*`argptr`*<br/>
86
+
*`argptr`*\
87
87
Pointer to list of arguments.
88
88
89
-
*`locale`*<br/>
89
+
*`locale`*\
90
90
The locale to use.
91
91
92
-
For more information, see [Format Specifications](../../c-runtime-library/format-specification-syntax-printf-and-wprintf-functions.md).
92
+
For more information, see [Format specifications](../../c-runtime-library/format-specification-syntax-printf-and-wprintf-functions.md).
93
93
94
94
## Return Value
95
95
@@ -135,6 +135,9 @@ The versions of these functions with the **`_l`** suffix are identical except th
135
135
136
136
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).
137
137
138
+
> [!Tip]
139
+
> If you get an undefined external `_vsnprintf_s` error and are using the Universal C Runtime, add `legacy_stdio_definitions.lib` to the set of libraries to link with. The Universal C Runtime doesn't export this function directly and is instead defined inline in `<stdio.h>`. For more information, see [Overview of potential upgrade issues](/cpp/porting/overview-of-potential-upgrade-issues-visual-cpp.md#libraries) and [Visual Studio 2015 Conformance Changes](/cpp/porting/visual-cpp-change-history-2003-2015.md#stdio_and_conio).
140
+
138
141
### Generic-Text Routine Mappings
139
142
140
143
|`TCHAR.H` routine|`_UNICODE` & `_MBCS` not defined|`_MBCS` defined|`_UNICODE` defined|
@@ -152,7 +155,7 @@ In C++, using these functions is simplified by template overloads; the overloads
152
155
153
156
\* Required for UNIX V compatibility.
154
157
155
-
For additional compatibility information, see [Compatibility](../../c-runtime-library/compatibility.md).
158
+
For more compatibility information, see [Compatibility](../../c-runtime-library/compatibility.md).
0 commit comments