Skip to content

Commit 440d347

Browse files
Merge pull request #5626 from Rageking8/elide-some-wrong-uses-of-c-flag-in-c-runtime-library
Elide some wrong uses of `/c` flag in C runtime library
2 parents d54db33 + 8428301 commit 440d347

15 files changed

+22
-38
lines changed

docs/c-runtime-library/reference/cprintf-cprintf-l-cwprintf-cwprintf-l.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
description: "Learn more about: _cprintf, _cprintf_l, _cwprintf, _cwprintf_l"
32
title: "_cprintf, _cprintf_l, _cwprintf, _cwprintf_l"
4-
ms.date: "3/9/2021"
3+
description: "Learn more about: _cprintf, _cprintf_l, _cwprintf, _cwprintf_l"
4+
ms.date: 3/9/2021
55
api_name: ["_cwprintf_l", "_cprintf_l", "_cwprintf", "_cprintf"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
77
api_type: ["DLLExport"]
@@ -85,7 +85,6 @@ For more compatibility information, see [Compatibility](../compatibility.md).
8585

8686
```C
8787
// crt_cprintf.c
88-
// compile with: /c
8988
// This program displays some variables to the console.
9089

9190
#include <conio.h>

docs/c-runtime-library/reference/cprintf-s-cprintf-s-l-cwprintf-s-cwprintf-s-l.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ All versions of the [C run-time libraries](../crt-library-features.md).
9393

9494
```C
9595
// crt_cprintf_s.c
96-
// compile with: /c
9796
// This program displays some variables to the console.
9897

9998
#include <conio.h>

docs/c-runtime-library/reference/cscanf-s-cscanf-s-l-cwscanf-s-cwscanf-s-l.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
2-
description: "Learn more about: _cscanf_s, _cscanf_s_l, _cwscanf_s, _cwscanf_s_l"
32
title: "_cscanf_s, _cscanf_s_l, _cwscanf_s, _cwscanf_s_l"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: _cscanf_s, _cscanf_s_l, _cwscanf_s, _cwscanf_s_l"
4+
ms.date: 11/04/2016
55
api_name: ["_cwscanf_s_l", "_cwscanf_s", "_cscanf_s", "_cscanf_s_l"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
77
api_type: ["DLLExport"]
88
topic_type: ["apiref"]
99
f1_keywords: ["cscanf_s", "cscanf_s_l", "cwscanf_s", "_cwscanf_s", "_tcscanf_s", "_cscanf_s", "_cwscanf_s_l", "_cscanf_s_l", "cwscanf_s_l", "_tcscanf_s_l", "tcscanf_s", "tcscanf_s_l"]
1010
helpviewer_keywords: ["cscanf_s function", "_cwscanf_s_l function", "tcscanf_s function", "console [C++], reading from", "_cscanf_s function", "data [C++], reading from the console", "cwscanf_s function", "_tcscanf_s_l function", "_cscanf_s_l function", "cscanf_s_l function", "cwscanf_s_l function", "reading data [C++], from the console", "_cwscanf_s function", "_tcscanf_s function", "tcscanf_s_l function"]
11-
ms.assetid: 9ccab74d-916f-42a6-93d8-920525efdf4b
1211
---
1312
# `_cscanf_s`, `_cscanf_s_l`, `_cwscanf_s`, `_cwscanf_s_l`
1413

@@ -92,7 +91,6 @@ All versions of the [C run-time libraries](../crt-library-features.md).
9291

9392
```C
9493
// crt_cscanf_s.c
95-
// compile with: /c
9694
/* This program prompts for a string
9795
* and uses _cscanf_s to read in the response.
9896
* Then _cscanf_s returns the number of items

docs/c-runtime-library/reference/cwait.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: "_cwait"
33
description: "API reference for the Microsoft Visual C runtime `_cwait()` function."
4-
ms.date: "10/23/2020"
4+
ms.date: 10/23/2020
55
api_name: ["_cwait", "_o__cwait"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-process-l1-1-0.dll"]
77
api_type: ["DLLExport"]
88
topic_type: ["apiref"]
99
f1_keywords: ["_cwait"]
1010
helpviewer_keywords: ["cwait function", "_cwait function"]
11-
ms.assetid: d9b596b5-45f4-4e03-9896-3f383cb922b8
1211
---
1312
# `_cwait`
1413

@@ -73,7 +72,6 @@ For more compatibility information, see [Compatibility](../compatibility.md).
7372

7473
```C
7574
// crt_cwait.c
76-
// compile with: /c
7775
// This program launches several processes and waits
7876
// for a specified process to finish.
7977

docs/c-runtime-library/reference/getch-getwch.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "_getch, _getwch"
33
description: "API reference for _getch and _getwch; which get a character from the console without echo."
4-
ms.date: "3/8/2023"
4+
ms.date: 3/8/2023
55
api_name: ["_getch", "_getwch", "_o__getch", "_o__getwch"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-conio-l1-1-0.dll"]
77
api_type: ["DLLExport"]
@@ -54,7 +54,6 @@ For more compatibility information, see [Compatibility](../compatibility.md).
5454
5555
```C
5656
// crt_getch.c
57-
// compile with: /c
5857
// This program reads characters from
5958
// the keyboard until it receives a 'Y' or 'y'.
6059

docs/c-runtime-library/reference/getch-nolock-getwch-nolock.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "_getch_nolock, _getwch_nolock"
33
description: "Learn more about: _getch_nolock, _getwch_nolock"
4-
ms.date: "4/2/2020"
4+
ms.date: 4/2/2020
55
api_name: ["_getwch_nolock", "_getch_nolock", "_o__getch_nolock", "_o__getwch_nolock"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-conio-l1-1-0.dll"]
77
api_type: ["DLLExport"]
@@ -52,7 +52,6 @@ For more compatibility information, see [Compatibility](../compatibility.md).
5252
5353
```C
5454
// crt_getch_nolock.c
55-
// compile with: /c
5655
// This program reads characters from
5756
// the keyboard until it receives a 'Y' or 'y'.
5857

docs/c-runtime-library/reference/getche-getwche.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: "_getche, _getwche"
33
description: "API reference for _getche and _getwche; which get a character from the console with echo."
4-
ms.date: "4/2/2020"
4+
ms.date: 4/2/2020
55
api_name: ["_getwche", "_getche", "_o__getche", "_o__getwche"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-conio-l1-1-0.dll"]
77
api_type: ["DLLExport"]
88
topic_type: ["apiref"]
99
f1_keywords: ["getwche", "_getche", "_getwche"]
1010
helpviewer_keywords: ["characters, getting from console", "_getwche function", "getche function", "console, reading from", "getwche function", "_getche function"]
11-
ms.assetid: eac978a8-c43a-4130-938f-54f12e2a0fda
1211
---
1312
# `_getche`, `_getwche`
1413

@@ -55,7 +54,6 @@ For more compatibility information, see [Compatibility](../compatibility.md).
5554
5655
```C
5756
// crt_getche.c
58-
// compile with: /c
5957
// This program reads characters from
6058
// the keyboard until it receives a 'Y' or 'y'.
6159

docs/c-runtime-library/reference/getche-nolock-getwche-nolock.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "_getche_nolock, _getwche_nolock"
33
description: "Learn more about: _getche_nolock, _getwche_nolock"
4-
ms.date: "4/2/2020"
4+
ms.date: 4/2/2020
55
api_name: ["_getche_nolock", "_getwche_nolock", "_o__getche_nolock", "_o__getwche_nolock"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-conio-l1-1-0.dll"]
77
api_type: ["DLLExport"]
@@ -52,7 +52,6 @@ For more compatibility information, see [Compatibility](../compatibility.md).
5252
5353
```C
5454
// crt_getche_nolock.c
55-
// compile with: /c
5655
// This program reads characters from
5756
// the keyboard until it receives a 'Y' or 'y'.
5857

docs/c-runtime-library/reference/getdiskfree.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description: "Learn more about: _getdiskfree"
32
title: "_getdiskfree"
3+
description: "Learn more about: _getdiskfree"
44
ms.date: 05/11/2022
55
api_name: ["_getdiskfree", "_o__getdiskfree"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-filesystem-l1-1-0.dll"]
@@ -66,7 +66,7 @@ For more compatibility information, see [Compatibility](../compatibility.md).
6666

6767
```C
6868
// crt_getdiskfree.c
69-
// compile with: /c
69+
7070
#include <windows.h>
7171
#include <direct.h>
7272
#include <stdio.h>

docs/c-runtime-library/reference/getdrive.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
2-
description: "Learn more about: _getdrive"
32
title: "_getdrive"
4-
ms.date: "4/2/2020"
3+
description: "Learn more about: _getdrive"
4+
ms.date: 4/2/2020
55
api_name: ["_getdrive", "_o__getdrive"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-filesystem-l1-1-0.dll"]
77
api_type: ["DLLExport"]
88
topic_type: ["apiref"]
99
f1_keywords: ["_getdrive", "getdrive"]
1010
helpviewer_keywords: ["current disk drive", "getdrive function", "disk drives", "_getdrive function"]
11-
ms.assetid: e40631a0-8f1a-4897-90ac-e1037ff30bca
1211
---
1312
# `_getdrive`
1413

@@ -43,7 +42,6 @@ For more compatibility information, see [Compatibility](../compatibility.md).
4342
4443
```C
4544
// crt_getdrive.c
46-
// compile with: /c
4745
// Illustrates drive functions including:
4846
// _getdrive _chdrive _getdcwd
4947
//

0 commit comments

Comments
 (0)