Skip to content

Commit c02b9e3

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/cpp-docs-pr into whatsnew
2 parents a38e9d5 + 6a9073d commit c02b9e3

File tree

4 files changed

+7
-296
lines changed

4 files changed

+7
-296
lines changed

.openpublishing.redirection.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13759,6 +13759,11 @@
1375913759
"source_path": "docs/c-runtime-library/operator-new-crt.md",
1376013760
"redirect_url": "docs/c-runtime-library/new-operator-crt",
1376113761
"redirect_document_id": false
13762+
},
13763+
{
13764+
"source_path": "docs/overview/whats-new-cpp-docs.md",
13765+
"redirect_url": "../../cpp/overview/what-s-new-for-visual-cpp-in-visual-studio",
13766+
"redirect_document_id": false
1376213767
}
1376313768
]
13764-
}
13769+
}

docs/c-runtime-library/reference/snprintf-snprintf-snprintf-l-snwprintf-snwprintf-l.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ See [Behavior summary](#behavior-summary) for details.
120120

121121
## Remarks
122122

123-
Beginning with the UCRT in Visual Studio 2015 and Windows 10, **`snprintf`** is no longer identical to **`_snprintf`**. The **`snprintf`** behavior is now C99 standard conformant. The difference is that if you run out of buffer, `snprintf` null-terminates the end of the buffer and returns the number of characters that would have been required whereas `_snprintf` doesn't null-terminate the buffer and returns -1. Also, `snprintf()` includes one more character in the output because it doesn't null-terminate the buffer.
123+
Beginning with the UCRT in Visual Studio 2015 and Windows 10, **`snprintf`** is no longer identical to **`_snprintf`**. The **`snprintf`** behavior is now C99 standard conformant. The difference is that if you run out of buffer, `snprintf` null-terminates the end of the buffer and returns the number of characters that would have been required whereas `_snprintf` doesn't null-terminate the buffer and returns -1. Also, `_snprintf()` includes one more character in the output because it doesn't null-terminate the buffer.
124124

125125
- **`snprintf`** and the **`_snprintf`** family of functions format and store *`count`* or fewer characters in *`buffer`*.
126126
- **`snprintf`** always stores a terminating `NULL` character, truncating the output if necessary.

docs/overview/toc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ items:
1212
href: ../overview/what-s-new-for-cpp-2019.md
1313
- name: What's new for C++ in Visual Studio 2017
1414
href: ../overview/what-s-new-for-cpp-2017.md
15-
- name: What's new for Microsoft C++ docs
16-
href: ../overview/whats-new-cpp-docs.md
1715
- name: C++ conformance improvements in Visual Studio 2022
1816
href: ../overview/cpp-conformance-improvements.md
1917
- name: C++ conformance improvements in Visual Studio 2019

docs/overview/whats-new-cpp-docs.md

Lines changed: 0 additions & 292 deletions
This file was deleted.

0 commit comments

Comments
 (0)