summaryrefslogtreecommitdiff
path: root/src/pal/src/safecrt/snprintf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/src/safecrt/snprintf.cpp')
-rw-r--r--src/pal/src/safecrt/snprintf.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pal/src/safecrt/snprintf.cpp b/src/pal/src/safecrt/snprintf.cpp
new file mode 100644
index 0000000000..dea87167b9
--- /dev/null
+++ b/src/pal/src/safecrt/snprintf.cpp
@@ -0,0 +1,18 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+/***
+*snprintf.c - "Count" version of sprintf
+*
+
+*
+*Purpose:
+* The sprintf_s() flavor takes a count argument that is
+* the max number of bytes that should be written to the
+* user's buffer.
+*
+*******************************************************************************/
+
+#define _COUNT_ 1
+#include "sprintf.c"