Skip to content

Commit cf7c368

Browse files
committed
Bulk Fix CRT Acrolinx issues 3 of N
1 parent 79ae484 commit cf7c368

30 files changed

+173
-186
lines changed

docs/c-runtime-library/format-specification-syntax-printf-and-wprintf-functions.md

Lines changed: 19 additions & 29 deletions
Large diffs are not rendered by default.

docs/c-runtime-library/function-family-overviews.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Describes the format string and arguments for `printf` and `wprintf`.
2323
Describes the format specification fields for parsing an input stream for the entire `scanf` family of functions.
2424

2525
[`is`, `isw` functions](is-isw-routines.md)\
26-
Functions for testing characters for things like whether they are uppercase, ASCII, numeric, punctuation, and so on.
26+
Functions for testing characters for things like whether they're uppercase, ASCII, numeric, punctuation, and so on.
2727

2828
[`_ismbb` functions](ismbb-routines.md)\
2929
Functions for testing an integer value for whether it represents an alpha character, blank character, a print character, and so on.
@@ -32,13 +32,13 @@ Functions for testing an integer value for whether it represents an alpha charac
3232
Functions for testing a multibyte character for whether it represents an alpha character, blank character, a print character, and so on.
3333

3434
[operator `delete` (CRT)](delete-operator-crt.md)\
35-
Beginning in Visual Studio 2013, the Universal C Runtime (UCRT) no longer supports the C++-specific operator delete function. It is now part of the C++ Standard Library.
35+
Beginning in Visual Studio 2013, the Universal C Runtime (UCRT) no longer supports the C++-specific operator delete function. It's now part of the C++ Standard Library.
3636

3737
[operator `new` (CRT)](new-operator-crt.md)\
38-
Beginning in Visual Studio 2013, the Universal C Runtime (UCRT) no longer supports the C++-specific operator new function. It is now part of the C++ Standard Library.
38+
Beginning in Visual Studio 2013, the Universal C Runtime (UCRT) no longer supports the C++-specific operator new function. It's now part of the C++ Standard Library.
3939

4040
[`printf` positional parameter functions](printf-p-positional-parameters.md)\
41-
Positional parameters specify by number which of the arguments is to be substituted into a field in a format string.
41+
Positional parameters specify by number the argument to substitute into a field in a format string.
4242

4343
[`scanf` type field characters](scanf-type-field-characters.md)\
4444
The type character determines whether the associated argument is interpreted as a character, string, or number for any of the `scanf` family of functions, including the secure versions, such as `scanf_s`.
@@ -56,7 +56,7 @@ The `strcoll` and `wcscoll` functions compare two strings according to the `LC_C
5656
The `strtod` family of functions convert a null-terminated string to a numeric value.
5757

5858
[`vprintf` functions](vprintf-functions.md)\
59-
The `vprintf` functions take a pointer to an argument list, formats it, and writes the result to the specified destination. The functions differ in the parameter validation performed, whether they take wide or single-byte character strings, the output destination, and support for specifying the order in which parameters are used in the format string.
59+
The `vprintf` functions take a pointer to an argument list, format it, and write the result to the specified destination. The functions differ in several ways: the parameter validation performed; whether they take wide or single-byte character strings; the output destination; and support for specifying the order in which parameters are used in the format string.
6060

6161
## See also
6262

docs/c-runtime-library/generic-text-mappings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To simplify writing code for international markets, generic-text mappings are de
1616

1717
- [Routine mappings](../c-runtime-library/routine-mappings.md)
1818

19-
For more information, see [Using Generic-Text Mappings](../c-runtime-library/using-generic-text-mappings.md). Generic-text mappings are Microsoft extensions that are not ANSI compatible.
19+
For more information, see [Using Generic-Text Mappings](../c-runtime-library/using-generic-text-mappings.md). Generic-text mappings are Microsoft extensions that aren't ANSI compatible.
2020

2121
## See also
2222

docs/c-runtime-library/get-output-format.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The current value of the output format flag.
2929

3030
## Remarks
3131

32-
The output format flag controls features of formatted I/O. At present the flag has two possible values: 0 and `_TWO_DIGIT_EXPONENT`. If `_TWO_DIGIT_EXPONENT` is set, the floating point numbers is printed with only two digits in the exponent unless a third digit is required by the size of the exponent. If the flag is zero, the floating point output displays three digits of exponent, using zeroes if necessary to pad the value to three digits.
32+
The output format flag controls features of formatted I/O. The flag has two possible values: 0 and `_TWO_DIGIT_EXPONENT`. If `_TWO_DIGIT_EXPONENT` is set, the floating point number is printed with only two digits in the exponent unless a third digit is required by the size of the exponent. If the flag is zero, the floating point output displays three digits of exponent, using zeroes if necessary to pad the value to three digits.
3333

3434
## Requirements
3535

docs/c-runtime-library/gets-getws.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The `gets` function reads a line from the standard input stream `stdin` and stor
5656
5757
In C++, these functions have template overloads that invoke the newer, secure counterparts of these functions. For more information, see [Secure Template Overloads](../c-runtime-library/secure-template-overloads.md).
5858

59-
By default, this function's global state is scoped to the application. To change this, see [Global state in the CRT](global-state.md).
59+
By default, this function's global state is scoped to the application. To change this behavior, see [Global state in the CRT](global-state.md).
6060

6161
### Generic-Text Routine Mappings
6262

@@ -71,7 +71,7 @@ By default, this function's global state is scoped to the application. To change
7171
|`gets`|`<stdio.h>`|
7272
|`_getws`|`<stdio.h>` or `<wchar.h>`|
7373

74-
For additional compatibility information, see [Compatibility](../c-runtime-library/compatibility.md).
74+
For more compatibility information, see [Compatibility](../c-runtime-library/compatibility.md).
7575

7676
## Example
7777

@@ -91,7 +91,7 @@ int main( void )
9191
}
9292
```
9393
94-
Note that input longer than 20 characters will overrun the line buffer and almost certainly cause the program to crash.
94+
Input longer than 20 characters will overrun the line buffer and almost certainly cause the program to crash.
9595
9696
```Output
9797

docs/c-runtime-library/global-constants.md

Lines changed: 49 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -8,60 +8,56 @@ ms.assetid: 778d86fd-3ca6-4d2b-b4c5-aee6dc1efe6b
88
---
99
# Global Constants
1010

11-
The Microsoft run-time library contains definitions for global constants used by library routines. To use these constants, include the appropriate header files as indicated in the description for each constant. The global constants are listed in the following table.
11+
The Microsoft run-time library contains definitions for global constants used by library routines. To use these constants, include the appropriate header files as indicated in the description for each constant. The global constant articles follow in this section.
1212

13-
:::row:::
14-
:::column span="":::
15-
[32-Bit Windows Time/Date Formats](../c-runtime-library/32-bit-windows-time-date-formats.md)\
16-
[BUFSIZ](../c-runtime-library/bufsiz.md)\
17-
[CLOCKS_PER_SEC, CLK_TCK](../c-runtime-library/clocks-per-sec-clk-tck.md)\
18-
[Commit-To-Disk Constants](../c-runtime-library/commit-to-disk-constants.md)\
19-
[_CRT_DISABLE_PERFCRIT_LOCKS](../c-runtime-library/crt-disable-perfcrit-locks.md)\
20-
[Data Type Constants](../c-runtime-library/data-type-constants.md)\
21-
[Environmental Constants](../c-runtime-library/environmental-constants.md)\
22-
[EOF, WEOF](../c-runtime-library/eof-weof.md)\
23-
[errno Constants](../c-runtime-library/errno-constants.md)\
24-
[Exception-Handling Constants](../c-runtime-library/exception-handling-constants.md)\
25-
[EXIT_SUCCESS, EXIT_FAILURE](../c-runtime-library/exit-success-exit-failure.md)\
26-
[File Attribute Constants](../c-runtime-library/file-attribute-constants.md)\
27-
[File Constants](../c-runtime-library/file-constants.md)\
28-
[File Permission Constants](../c-runtime-library/file-permission-constants.md)\
29-
[File Read/Write Access Constants](../c-runtime-library/file-read-write-access-constants.md)\
30-
[File Translation Constants](../c-runtime-library/file-translation-constants.md)\
31-
[FILENAME_MAX](../c-runtime-library/filename-max.md)\
32-
[FOPEN_MAX, _SYS_OPEN](../c-runtime-library/fopen-max-sys-open.md)\
33-
[_FREEENTRY, _USEDENTRY](../c-runtime-library/freeentry-usedentry.md)\
34-
[fseek, _lseek Constants](../c-runtime-library/fseek-lseek-constants.md)\
35-
[Heap Constants](../c-runtime-library/heap-constants.md)\
36-
[_HEAP_MAXREQ](../c-runtime-library/heap-maxreq.md)\
37-
[HUGE_VAL, _HUGE](../c-runtime-library/huge-val-huge.md)
38-
:::column-end:::
39-
:::column span="":::
40-
[Locale Categories](../c-runtime-library/locale-categories.md)\
41-
[_locking Constants](../c-runtime-library/locking-constants.md)\
42-
[Math Constants](../c-runtime-library/math-constants.md)\
43-
[Math Error Constants](../c-runtime-library/math-error-constants.md)\
44-
[_MAX_ENV](../c-runtime-library/max-env.md)\
45-
[MB_CUR_MAX](../c-runtime-library/mb-cur-max.md)\
46-
[NULL](../c-runtime-library/null-crt.md)\
47-
[Path Field Limits](../c-runtime-library/path-field-limits.md)\
48-
[RAND_MAX](../c-runtime-library/rand-max.md)\
49-
[setvbuf Constants](../c-runtime-library/setvbuf-constants.md)\
50-
[Sharing Constants](../c-runtime-library/sharing-constants.md)\
51-
[signal Constants](../c-runtime-library/signal-constants.md)\
52-
[signal Action Constants](../c-runtime-library/signal-action-constants.md)\
53-
[spawn Constants](../c-runtime-library/spawn-constants.md)\
54-
[_stat Structure st_mode Field Constants](../c-runtime-library/stat-structure-st-mode-field-constants.md)\
55-
[stdin, stdout, stderr](../c-runtime-library/stdin-stdout-stderr.md)\
56-
[TMP_MAX, L_tmpnam](../c-runtime-library/tmp-max-l-tmpnam.md)\
57-
[Translation Mode Constants](../c-runtime-library/translation-mode-constants.md)\
58-
[_TRUNCATE](../c-runtime-library/truncate.md)\
59-
[TZNAME_MAX](../c-runtime-library/tzname-max.md)\
60-
[_WAIT_CHILD, _WAIT_GRANDCHILD](../c-runtime-library/wait-child-wait-grandchild.md)\
61-
[WCHAR_MAX](../c-runtime-library/wchar-max.md)\
62-
[WCHAR_MIN](../c-runtime-library/wchar-min.md)
63-
:::column-end:::
64-
:::row-end:::
13+
## Global constant articles
14+
15+
[32-Bit Windows Time/Date Formats](../c-runtime-library/32-bit-windows-time-date-formats.md)\
16+
[`BUFSIZ`](../c-runtime-library/bufsiz.md)\
17+
[`CLOCKS_PER_SEC`, `CLK_TCK`](../c-runtime-library/clocks-per-sec-clk-tck.md)\
18+
[Commit-To-Disk Constants](../c-runtime-library/commit-to-disk-constants.md)\
19+
[`_CRT_DISABLE_PERFCRIT_LOCKS`](../c-runtime-library/crt-disable-perfcrit-locks.md)\
20+
[Data Type Constants](../c-runtime-library/data-type-constants.md)\
21+
[Environmental Constants](../c-runtime-library/environmental-constants.md)\
22+
[`EOF`, `WEOF`](../c-runtime-library/eof-weof.md)\
23+
[errno Constants](../c-runtime-library/errno-constants.md)\
24+
[Exception-Handling Constants](../c-runtime-library/exception-handling-constants.md)\
25+
[`EXIT_SUCCESS`, `EXIT_FAILURE`](../c-runtime-library/exit-success-exit-failure.md)\
26+
[File Attribute Constants](../c-runtime-library/file-attribute-constants.md)\
27+
[File Constants](../c-runtime-library/file-constants.md)\
28+
[File Permission Constants](../c-runtime-library/file-permission-constants.md)\
29+
[File Read/Write Access Constants](../c-runtime-library/file-read-write-access-constants.md)\
30+
[File Translation Constants](../c-runtime-library/file-translation-constants.md)\
31+
[`FILENAME_MAX`](../c-runtime-library/filename-max.md)\
32+
[`FOPEN_MAX`, `_SYS_OPEN`](../c-runtime-library/fopen-max-sys-open.md)\
33+
[`_FREEENTRY`, `_USEDENTRY`](../c-runtime-library/freeentry-usedentry.md)\
34+
[`fseek`, `_lseek` Constants](../c-runtime-library/fseek-lseek-constants.md)\
35+
[Heap Constants](../c-runtime-library/heap-constants.md)\
36+
[`_HEAP_MAXREQ`](../c-runtime-library/heap-maxreq.md)\
37+
[`HUGE_VAL`, `_HUGE`](../c-runtime-library/huge-val-huge.md)\
38+
[Locale Categories](../c-runtime-library/locale-categories.md)\
39+
[`_locking` Constants](../c-runtime-library/locking-constants.md)\
40+
[Math Constants](../c-runtime-library/math-constants.md)\
41+
[Math Error Constants](../c-runtime-library/math-error-constants.md)\
42+
[`_MAX_ENV`](../c-runtime-library/max-env.md)\
43+
[`MB_CUR_MAX`](../c-runtime-library/mb-cur-max.md)\
44+
[`NULL`](../c-runtime-library/null-crt.md)\
45+
[Path Field Limits](../c-runtime-library/path-field-limits.md)\
46+
[`RAND_MAX`](../c-runtime-library/rand-max.md)\
47+
[setvbuf Constants](../c-runtime-library/setvbuf-constants.md)\
48+
[Sharing Constants](../c-runtime-library/sharing-constants.md)\
49+
[`signal` Constants](../c-runtime-library/signal-constants.md)\
50+
[`signal` Action Constants](../c-runtime-library/signal-action-constants.md)\
51+
[`spawn` Constants](../c-runtime-library/spawn-constants.md)\
52+
[`_stat` Structure st_mode Field Constants](../c-runtime-library/stat-structure-st-mode-field-constants.md)\
53+
[`stdin`, `stdout`, `stderr`](../c-runtime-library/stdin-stdout-stderr.md)\
54+
[`TMP_MAX`, `L_tmpnam`](../c-runtime-library/tmp-max-l-tmpnam.md)\
55+
[Translation Mode Constants](../c-runtime-library/translation-mode-constants.md)\
56+
[`_TRUNCATE`](../c-runtime-library/truncate.md)\
57+
[`TZNAME_MAX`](../c-runtime-library/tzname-max.md)\
58+
[`_WAIT_CHILD`, `_WAIT_GRANDCHILD`](../c-runtime-library/wait-child-wait-grandchild.md)\
59+
[`WCHAR_MAX`](../c-runtime-library/wchar-max.md)\
60+
[`WCHAR_MIN`](../c-runtime-library/wchar-min.md)
6561

6662
## See also
6763

docs/c-runtime-library/global-state.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,34 @@ The OS-specific versions of these functions are in `ucrt.osmode.lib`. For exampl
2626
There are two ways to isolate your component's CRT state from an app's CRT state:
2727

2828
- Statically link your component by using compiler options `/MT` (release) or `/MTd` (debug). For details, see [/MD, /MT, /LD](../build/reference/md-mt-ld-use-run-time-library.md). Static linking can greatly increase binary size.
29-
- Starting in Windows versions beginning with Windows 10 version 2004, dynamically link to the CRT but call the OS-mode exports (the functions that begin with _o_). To call the OS-mode exports, statically link as before, but ignore the static UCRT by using linker option `/NODEFAULTLIB:libucrt.lib` (release) or `/NODEFAULTLIB:libucrtd.lib` (debug). And add `ucrt.osmode.lib` to the linker input. See [/NODEFAULTLIB (Ignore Libraries)](../build/reference/nodefaultlib-ignore-libraries.md) for details.
29+
- Starting in Windows versions beginning with Windows 10 version 2004, dynamically link to the CRT but call the OS-mode exports (the functions that begin with _o_). To call the OS-mode exports, statically link as before, but ignore the static UCRT by using linker option `/NODEFAULTLIB:libucrt.lib` (release) or `/NODEFAULTLIB:libucrtd.lib` (debug). And add `ucrt.osmode.lib` to the linker input. See [`/NODEFAULTLIB` (Ignore Libraries)](../build/reference/nodefaultlib-ignore-libraries.md) for details.
3030

31-
> [!Note]
31+
> [!NOTE]
3232
> In source code, write `setlocale()`, not `_o_setlocale()`. When you link against `ucrt.osmode.lib`, the linker will automatically substitute the OS-specific version of the function. That is, `setlocale()` will be substituted with `_o_setlocale()`.
3333
34-
Linking against `ucrt.osmode.lib` disables some UCRT calls that are only available in app mode. Attempting to call these will result in a link error.
34+
Linking against `ucrt.osmode.lib` disables some UCRT calls that are only available in app mode. Attempting to call these functions will result in a link error.
3535

3636
## Global state affected by app/OS separation
3737

3838
Global state affected by the separation of app and OS state includes:
3939

4040
- [Locale data](locale.md)
41-
- Signal handlers set by [signal](reference/signal.md)
42-
- Termination routines set by [terminate](reference/set-terminate-crt.md)
43-
- [errno and _doserrno](errno-doserrno-sys-errlist-and-sys-nerr.md)
41+
- Signal handlers set by [`signal`](reference/signal.md)
42+
- Termination routines set by [`terminate`](reference/set-terminate-crt.md)
43+
- [`errno` and `_doserrno`](errno-doserrno-sys-errlist-and-sys-nerr.md)
4444
- Random number generation state used by [rand](reference/rand.md) and [srand](reference/srand.md)
4545
- Functions that return a buffer that the user doesn't need to release:
46-
[strtok, wcstok, _mbstok](reference/strtok-strtok-l-wcstok-wcstok-l-mbstok-mbstok-l.md)
47-
[Tmpnam, _wtmpnam](reference/tempnam-wtempnam-tmpnam-wtmpnam.md)
48-
[asctime, _wasctime](reference/asctime-wasctime.md)
49-
[gmtime, _gmtime32, _gmtime64](reference/gmtime-gmtime32-gmtime64.md)
50-
[_fcvt](reference/fcvt.md)
51-
[_ecvt](reference/ecvt.md)
52-
[strerror, _strerror, _wcserror, __wcserror](reference/strerror-strerror-wcserror-wcserror.md)
53-
- The buffer used by [_putch, _putwch](reference/putch-putwch.md)
54-
- [_set_invalid_parameter_handler, _set_thread_local_invalid_parameter_handler](reference/set-invalid-parameter-handler-set-thread-local-invalid-parameter-handler.md)
55-
- [_set_new_handler](reference/set-new-handler.md) and [_set_new_mode](reference/set-new-mode.md)
56-
- [fmode](text-and-binary-mode-file-i-o.md)
46+
[`strtok`, `wcstok`, _mb`stok](reference/strtok-strtok-l-wcstok-wcstok-l-mbstok-mbstok-l.md)\
47+
[`Tmpnam`, `_wtmpnam`](reference/tempnam-wtempnam-tmpnam-wtmpnam.md)\
48+
[`asctime`, `_wasctime`](reference/asctime-wasctime.md)\
49+
[`gmtime`, `_gmtime32`, `_gmtime64`](reference/gmtime-gmtime32-gmtime64.md)\
50+
[`_fcvt`](reference/fcvt.md)\
51+
[`_ecvt`](reference/ecvt.md)\
52+
[`strerror`, `_strerror`, `_wcserror`, `__wcserror`](reference/strerror-strerror-wcserror-wcserror.md)
53+
- The buffer used by [`_putch`, `_putwch`](reference/putch-putwch.md)
54+
- [`_set_invalid_parameter_handler`, `_set_thread_local_invalid_parameter_handler`](reference/set-invalid-parameter-handler-set-thread-local-invalid-parameter-handler.md)
55+
- [`_set_new_handler`](reference/set-new-handler.md) and [`_set_new_mode`](reference/set-new-mode.md)
56+
- [`fmode`](text-and-binary-mode-file-i-o.md)
5757
- [Time zone information](time-management.md)
5858

5959
## See also

docs/c-runtime-library/global-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The Microsoft C run-time library provides the following global variables or macr
1919
|[_fmode](../c-runtime-library/fmode.md)|Deprecated. Instead, use `_get_fmode` or `_set_fmode`.<br /><br /> Sets default file-translation mode.|
2020
|[_iob](../c-runtime-library/iob.md)|Array of I/O control structures for the console, files, and devices.|
2121
|[_pctype, _pwctype, _wctype, _mbctype, _mbcasemap](../c-runtime-library/pctype-pwctype-wctype-mbctype-mbcasemap.md)|Contains information used by the character-classification functions.|
22-
|[_pgmptr, _wpgmptr](../c-runtime-library/pgmptr-wpgmptr.md)|Deprecated. Instead, use `_get_pgmptr` or `_get_wpgmptr`.<br /><br /> Initialized at program startup to the fully-qualified or relative path of the program, the full program name, or the program name without its file name extension, depending on how the program was invoked.|
22+
|[_pgmptr, _wpgmptr](../c-runtime-library/pgmptr-wpgmptr.md)|Deprecated. Instead, use `_get_pgmptr` or `_get_wpgmptr`.<br /><br /> Based on how the program is invoked, the runtime initializes these values at program startup: either to the fully qualified or relative path of the program, the full program name, or the program name without its file name extension.|
2323

2424
## See also
2525

docs/c-runtime-library/heap-constants.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ These constants give the return value indicating status of the heap.
2020

2121
|Constant|Meaning|
2222
|--------------|-------------|
23-
|`_HEAPBADBEGIN`|Initial header information was not found or was invalid.|
23+
|`_HEAPBADBEGIN`|Initial header information wasn't found or was invalid.|
2424
|`_HEAPBADNODE`|Bad node was found, or heap is damaged.|
25-
|`_HEAPBADPTR`|**_pentry** field of **_HEAPINFO** structure does not contain valid pointer into heap (`_heapwalk` routine only).|
26-
|`_HEAPEMPTY`|Heap has not been initialized.|
25+
|`_HEAPBADPTR`|**_pentry** field of **_HEAPINFO** structure doesn't contain valid pointer into heap (`_heapwalk` routine only).|
26+
|`_HEAPEMPTY`|Heap hasn't been initialized.|
2727
|`_HEAPEND`|End of heap was reached successfully (`_heapwalk` routine only).|
2828
|`_HEAPOK`|Heap is consistent (`_heapset` and `_heapchk` routines only). No errors so far; **_HEAPINFO** structure contains information about next entry (`_heapwalk` routine only).|
2929

docs/c-runtime-library/heapadd.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ int _heapadd(
2828

2929
#### Parameters
3030

31-
*memblock*<br/>
31+
*`memblock`*<br/>
3232
Pointer to the heap memory.
3333

34-
*size*<br/>
34+
*`size`*<br/>
3535
Size of memory to add, in bytes.
3636

3737
## Return Value

0 commit comments

Comments
 (0)