You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
36
36
37
37
[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.
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.
42
42
43
43
[`scanf` type field characters](scanf-type-field-characters.md)\
44
44
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
56
56
The `strtod` family of functions convert a null-terminated string to a numeric value.
57
57
58
58
[`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.
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.
Copy file name to clipboardExpand all lines: docs/c-runtime-library/get-output-format.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ The current value of the output format flag.
29
29
30
30
## Remarks
31
31
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.
Copy file name to clipboardExpand all lines: docs/c-runtime-library/gets-getws.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ The `gets` function reads a line from the standard input stream `stdin` and stor
56
56
57
57
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).
58
58
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).
60
60
61
61
### Generic-Text Routine Mappings
62
62
@@ -71,7 +71,7 @@ By default, this function's global state is scoped to the application. To change
71
71
|`gets`|`<stdio.h>`|
72
72
|`_getws`|`<stdio.h>` or `<wchar.h>`|
73
73
74
-
For additional compatibility information, see [Compatibility](../c-runtime-library/compatibility.md).
74
+
For more compatibility information, see [Compatibility](../c-runtime-library/compatibility.md).
75
75
76
76
## Example
77
77
@@ -91,7 +91,7 @@ int main( void )
91
91
}
92
92
```
93
93
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.
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.
12
12
13
-
:::row:::
14
-
:::column span="":::
15
-
[32-Bit Windows Time/Date Formats](../c-runtime-library/32-bit-windows-time-date-formats.md)\
Copy file name to clipboardExpand all lines: docs/c-runtime-library/global-state.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,34 +26,34 @@ The OS-specific versions of these functions are in `ucrt.osmode.lib`. For exampl
26
26
There are two ways to isolate your component's CRT state from an app's CRT state:
27
27
28
28
- 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.
30
30
31
-
> [!Note]
31
+
> [!NOTE]
32
32
> 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()`.
33
33
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.
35
35
36
36
## Global state affected by app/OS separation
37
37
38
38
Global state affected by the separation of app and OS state includes:
39
39
40
40
-[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)
44
44
- Random number generation state used by [rand](reference/rand.md) and [srand](reference/srand.md)
45
45
- Functions that return a buffer that the user doesn't need to release:
Copy file name to clipboardExpand all lines: docs/c-runtime-library/global-variables.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ The Microsoft C run-time library provides the following global variables or macr
19
19
|[_fmode](../c-runtime-library/fmode.md)|Deprecated. Instead, use `_get_fmode` or `_set_fmode`.<br /><br /> Sets default file-translation mode.|
20
20
|[_iob](../c-runtime-library/iob.md)|Array of I/O control structures for the console, files, and devices.|
21
21
|[_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 startupto 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 fullyqualified or relative path of the program, the full program name, or the program name without its file name extension.|
Copy file name to clipboardExpand all lines: docs/c-runtime-library/heap-constants.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,10 @@ These constants give the return value indicating status of the heap.
20
20
21
21
|Constant|Meaning|
22
22
|--------------|-------------|
23
-
|`_HEAPBADBEGIN`|Initial header information was not found or was invalid.|
23
+
|`_HEAPBADBEGIN`|Initial header information wasn't found or was invalid.|
24
24
|`_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.|
27
27
|`_HEAPEND`|End of heap was reached successfully (`_heapwalk` routine only).|
28
28
|`_HEAPOK`|Heap is consistent (`_heapset` and `_heapchk` routines only). No errors so far; **_HEAPINFO** structure contains information about next entry (`_heapwalk` routine only).|
0 commit comments