Skip to content

Commit cdbba0b

Browse files
authored
Merge pull request MicrosoftDocs#4993 from MicrosoftDocs/main
7/25/2023 10:30 AM Publish
2 parents 005e650 + 5990a73 commit cdbba0b

File tree

6 files changed

+22
-12
lines changed

6 files changed

+22
-12
lines changed

docs/c-language/c-enumeration-declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ enum BOOLEAN end_flag, match_flag; /* Two variables of type BOOLEAN */
103103
This declaration can also be specified as
104104

105105
```C
106-
enum BOOLEAN { false, true } end_flag, match_flag;\
106+
enum BOOLEAN { false, true } end_flag, match_flag;
107107
```
108108
109109
or as

docs/c-language/c-type-specifiers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The Microsoft C compiler also generates warnings for differences in sign. For ex
5555

5656
```C
5757
signed int *pi;
58-
unsigned int *pu
58+
unsigned int *pu;
5959

6060
pi = pu; /* Now generates warning */
6161
```

docs/c-language/declarators-and-variable-declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ int list[20]; // Declares an array of 20 int values named list
6767
char *cp; // Declares a pointer to a char value
6868
double func( void ); // Declares a function named func, with no
6969
// arguments, that returns a double value
70-
int *aptr[10] // Declares an array of 10 pointers
70+
int *aptr[10]; // Declares an array of 10 pointers
7171
```
7272

7373
**Microsoft Specific**

docs/c-language/extern-storage-class-specifier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void func(void)
4949
}
5050
```
5151
52-
In this example, the variable `i` is defined in Source1.c with an initial value of 1. An **`extern`** declaration in Source2.c is makes 'i' visible in that file.
52+
In this example, the variable `i` is defined in Source1.c with an initial value of 1. An **`extern`** declaration in Source2.c makes 'i' visible in that file.
5353
5454
In the `func` function, the address of the global variable `i` is used to initialize the **`static`** pointer variable `external_i`. This works because the global variable has **`static`** lifetime, meaning its address does not change during program execution. Next, a variable `i` is defined within the scope of `func` as a local variable with initial value 16. This definition does not affect the value of the external-level `i`, which is hidden by the use of its name for the local variable. The value of the global `i` is now accessible only through the pointer `external_i`.
5555

docs/c-runtime-library/stdin-stdout-stderr.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
---
2-
description: "Learn more about: stdin, stdout, stderr"
2+
description: "Learn more about the definitions of: stdin, stdout, stderr"
33
title: "stdin, stdout, stderr"
4-
ms.date: "10/23/2018"
4+
ms.date: "7/24/2023"
55
f1_keywords: ["CORECRT_WSTDIO/stdin", "CORECRT_WSTDIO/stderr", "CORECRT_WSTDIO/stdout", "stdin", "stderr", "stdout"]
66
helpviewer_keywords: ["stdout function", "standard output stream", "standard error stream", "stdin function", "standard input stream", "stderr function"]
7-
ms.assetid: badd4735-596d-4498-857c-ec8b7e670e4c
87
---
98
# `stdin`, `stdout`, `stderr`
109

1110
## Syntax
1211

1312
```C
14-
FILE *stdin;
15-
FILE *stdout;
16-
FILE *stderr;
17-
#include <stdio.h>
13+
#define stdin /* implementation defined */
14+
#define stdout /* implementation defined */
15+
#define stderr /* implementation defined */
1816
```
1917
2018
## Remarks

docs/sanitizers/asan-debugger-integration.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,21 @@ When you link the VCAsan library to your executable, users can enable it to gene
3434

3535
`set ASAN_SAVE_DUMPS=MyFileName.dmp`
3636

37-
The file must have a .dmp suffix to follow the Visual Studio IDE conventions.
37+
The file must have a `.dmp` extension to follow the Visual Studio IDE conventions. (Prior to 17.7)
3838

3939
Here's what happens when a dump file is specified for `ASAN_SAVE_DUMPS`: If an error gets caught by the AddressSanitizer runtime, it saves a crash dump file that has the metadata associated with the error. The debugger in Visual Studio version 16.9 and later can parse the metadata that's saved in the dump file. You can set `ASAN_SAVE_DUMPS` on a per-test basis, store these binary artifacts, and then view them in the IDE with proper source indexing.
4040

41+
Visual Studio version 17.7 and later supports the following:
42+
43+
* Quoted strings are now handled correctly. In previous versions, for environments inside of Visual Studio or when using PowerShell, setting the environment variable to contain quotes or spaces would fail to create the expected dump file.
44+
45+
* When the `.dmp` extension is explicitly specified (for example, `set ASAN_SAVE_DUMPS=MyDmp.dmp`), VCAsan uses it explicitly, and will not add an associated process ID to the dump file name.
46+
47+
* If a `.dmp` file already exists with the same name specified from the environment variable, VCAsan modifies the file name as follows:
48+
* Appends a number to the filename in parentheses. For example, `Myfile (1).dmp`.
49+
* If after several attempts appending a number in parentheses fails to generate a unique name, the file is saved to an `%APPLOCAL%` temporary path that VCAsan will print. For example, `C:\Users\~\AppData\Local\Temp\Dump.dmp`.
50+
* If saving to a temporary path fails, a diagnostic error is displayed.
51+
4152
## See also
4253

4354
[AddressSanitizer overview](./asan.md)\
@@ -47,3 +58,4 @@ Here's what happens when a dump file is specified for `ASAN_SAVE_DUMPS`: If an e
4758
[AddressSanitizer shadow bytes](./asan-shadow-bytes.md)\
4859
[AddressSanitizer cloud or distributed testing](./asan-offline-crash-dumps.md)\
4960
[AddressSanitizer error examples](./asan-error-examples.md)
61+

0 commit comments

Comments
 (0)