Skip to content

Commit b0ae5c8

Browse files
author
3836425+corob-msft@users.noreply.github.com
committed
Markdown quality fixes 4 of N
1 parent 000e7ab commit b0ae5c8

9 files changed

Lines changed: 14 additions & 15 deletions

‎docs/c-runtime-library/reference/cosh-coshf-coshl.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ See the example in [`sinh`, `sinhf`, `sinhl`](sinh-sinhf-sinhl.md).
7070
[`atanh, atanhf, atanhl`](atanh-atanhf-atanhl.md)\
7171
[`_matherr`](matherr.md)\
7272
[`sinh, sinhf, sinhl`](sinh-sinhf-sinhl.md)\
73-
[`tanh, tanhf, tanhl`](tanh-tanhf-tanhl.md)
73+
[`tanh, tanhf, tanhl`](tanh-tanhf-tanhl.md)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ The versions of these functions with the **_l** suffix are identical except that
6666
>
6767
> Starting in Windows 10 version 2004 (build 19041), the `printf` family of functions prints exactly representable floating point numbers according to the IEEE 754 rules for rounding. In previous versions of Windows, exactly representable floating point numbers ending in '5' would always round up. IEEE 754 states that they must round to the closest even digit (also known as "Banker's Rounding"). For example, both `printf("%1.0f", 1.5)` and `printf("%1.0f", 2.5)` should round to 2. Previously, 1.5 would round to 2 and 2.5 would round to 3. This change only affects exactly representable numbers. For example, 2.35 (which, when represented in memory, is closer to 2.35000000000000008) continues to round up to 2.4. Rounding done by these functions now also respects the floating point rounding mode set by [`fesetround`](fegetround-fesetround2.md). Previously, rounding always chose `FE_TONEAREST` behavior. This change only affects programs built using Visual Studio 2019 version 16.2 and later. To use the legacy floating point rounding behavior, link with [`legacy_stdio_float_rounding.obj`](../link-options.md).
6868
69-
7069
### Generic-Text Routine Mappings
7170

7271
|Tchar.h routine|_UNICODE and _MBCS not defined|_MBCS defined|_UNICODE defined|

‎docs/c-runtime-library/reference/cprintf.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ We recommend you use the [_cprintf](cprintf-cprintf-l-cwprintf-cwprintf-l.md) or
1818
> [!IMPORTANT]
1919
> This API cannot be used in applications that execute in the Windows Runtime. For more information, see [CRT functions not supported in Universal Windows Platform apps](../../cppcx/crt-functions-not-supported-in-universal-windows-platform-apps.md).
2020
>
21-
> Starting in Windows 10 version 2004 (build 19041), the `printf` family of functions prints exactly representable floating point numbers according to the IEEE 754 rules for rounding. In previous versions of Windows, exactly representable floating point numbers ending in '5' would always round up. IEEE 754 states that they must round to the closest even digit (also known as "Banker's Rounding"). For example, both `printf("%1.0f", 1.5)` and `printf("%1.0f", 2.5)` should round to 2. Previously, 1.5 would round to 2 and 2.5 would round to 3. This change only affects exactly representable numbers. For example, 2.35 (which, when represented in memory, is closer to 2.35000000000000008) continues to round up to 2.4. Rounding done by these functions now also respects the floating point rounding mode set by [`fesetround`](fegetround-fesetround2.md). Previously, rounding always chose `FE_TONEAREST` behavior. This change only affects programs built using Visual Studio 2019 version 16.2 and later. To use the legacy floating point rounding behavior, link with [`legacy_stdio_float_rounding.obj`](../link-options.md).
21+
> Starting in Windows 10 version 2004 (build 19041), the `printf` family of functions prints exactly representable floating point numbers according to the IEEE 754 rules for rounding. In previous versions of Windows, exactly representable floating point numbers ending in '5' would always round up. IEEE 754 states that they must round to the closest even digit (also known as "Banker's Rounding"). For example, both `printf("%1.0f", 1.5)` and `printf("%1.0f", 2.5)` should round to 2. Previously, 1.5 would round to 2 and 2.5 would round to 3. This change only affects exactly representable numbers. For example, 2.35 (which, when represented in memory, is closer to 2.35000000000000008) continues to round up to 2.4. Rounding done by these functions now also respects the floating point rounding mode set by [`fesetround`](fegetround-fesetround2.md). Previously, rounding always chose `FE_TONEAREST` behavior. This change only affects programs built using Visual Studio 2019 version 16.2 and later. To use the legacy floating point rounding behavior, link with [`legacy_stdio_float_rounding.obj`](../link-options.md).

‎docs/c-runtime-library/reference/fpclass-fpclassf.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ For more compatibility and conformance information, see [Compatibility](../../c-
6565

6666
[Floating-Point Support](../../c-runtime-library/floating-point-support.md)\
6767
[`isnan`, `_isnan`, `_isnanf`](isnan-isnan-isnanf.md)\
68-
[`fpclassify`](fpclassify.md)
68+
[`fpclassify`](fpclassify.md)

‎docs/c-runtime-library/reference/freopen-wfreopen.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Pointer to **`FILE`** structure.
4343

4444
Each of these functions returns a pointer to the newly opened file. If an error occurs, the original file is closed and the function returns a **`NULL`** pointer value. If *`path`*, *`mode`*, or *`stream`* is a null pointer, or if *filename* is an empty string, these functions invoke the invalid parameter handler, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, these functions set **`errno`** to **`EINVAL`** and return **`NULL`**.
4545

46-
For more information on these, and other, error codes, see [`_doserrno, errno, _sys_errlist, and _sys_nerr`](../../c-runtime-library/errno-doserrno-sys-errlist-and-sys-nerr.md).
46+
For more information on these, and other, error codes, see [`_doserrno`, `errno`, `_sys_errlist`, and `_sys_nerr`](../../c-runtime-library/errno-doserrno-sys-errlist-and-sys-nerr.md).
4747

4848
## Remarks
4949

@@ -55,9 +55,9 @@ By default, this function's global state is scoped to the application. To change
5555

5656
### Generic-Text Routine Mappings
5757

58-
|`TCHAR.H `routine|_`UNICODE & _MBCS` not defined|`_MBCS` defined|`_UNICODE` defined|
59-
|---------------------|------------------------------------|--------------------|-----------------------|
60-
|**`_tfreopen`**|**`freopen`**|**`freopen`**|**`_wfreopen`**|
58+
| `TCHAR.H` routine | `_UNICODE` and `_MBCS` not defined | `_MBCS` defined | `_UNICODE` defined |
59+
|--|--|--|--|
60+
| **`_tfreopen`** | **`freopen`** | **`freopen`** | **`_wfreopen`** |
6161

6262
**`freopen`** is typically used to redirect the pre-opened files **`stdin`**, **`stdout`**, and **`stderr`** to files specified by the user. The new file associated with *`stream`* is opened with *`mode`*, which is a character string specifying the type of access requested for the file, as follows:
6363

‎docs/c-runtime-library/reference/logb-logbf-logbl-logb-logbf.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ All versions of the [C run-time libraries](../../c-runtime-library/crt-library-f
8181
## See also
8282
8383
[Floating-Point Support](../../c-runtime-library/floating-point-support.md)\
84-
[`frexp`](frexp.md)
84+
[`frexp`](frexp.md)

‎docs/c-runtime-library/reference/malloc.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Bytes to allocate.
3333

3434
## Remarks
3535

36-
The **`malloc`** function allocates a memory block of at least *`size`*` bytes. The block may be larger than *`size`* bytes because of the space that's required for alignment and maintenance information.
36+
The **`malloc`** function allocates a memory block of at least *`size`* bytes. The block may be larger than *`size`* bytes because of the space that's required for alignment and maintenance information.
3737

3838
**`malloc`** sets **`errno`** to **`ENOMEM`** if a memory allocation fails or if the amount of memory requested exceeds **`_HEAP_MAXREQ`**. For information about this and other error codes, see [`errno`, `_doserrno`, `_sys_errlist`, and `_sys_nerr`](../../c-runtime-library/errno-doserrno-sys-errlist-and-sys-nerr.md).
3939

‎docs/c-runtime-library/reference/memset-wmemset.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ int main( void )
8585
}
8686
```
8787
88-
### Output
88+
The example produces this output:
8989
9090
```Output
9191
Before: This is a test of the memset function
9292
After: **** is a test of the memset function
9393
```
9494

95-
Here's an example of the use of wmemset:
95+
Here's an example of the use of `wmemset`:
9696

9797
```C
9898
// crt_wmemset.c
@@ -113,7 +113,7 @@ int main( void )
113113
}
114114
```
115115
116-
### Output
116+
The example produces this output:
117117
118118
```Output
119119
Before: This is a test of the wmemset function
@@ -127,4 +127,4 @@ After: **** is a test of the wmemset function
127127
[`memchr`, `wmemchr`](memchr-wmemchr.md)\
128128
[`memcmp`, `wmemcmp`](memcmp-wmemcmp.md)\
129129
[`memcpy`, `wmemcpy`](memcpy-wmemcpy.md)\
130-
[`_strnset`, `_strnset_l`, `_wcsnset`, `_wcsnset_l`, `_mbsnset`, `_mbsnset_l`](strnset-strnset-l-wcsnset-wcsnset-l-mbsnset-mbsnset-l.md)
130+
[`_strnset`, `_strnset_l`, `_wcsnset`, `_wcsnset_l`, `_mbsnset`, `_mbsnset_l`](strnset-strnset-l-wcsnset-wcsnset-l-mbsnset-mbsnset-l.md)

‎docs/c-runtime-library/reference/modf-modff-modfl.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ For -14.876543, the fraction is -0.876543 and the integer is -14
8484

8585
[Floating-Point Support](../../c-runtime-library/floating-point-support.md)\
8686
[`frexp`](frexp.md)\
87-
[`ldexp`](ldexp.md)
87+
[`ldexp`](ldexp.md)

0 commit comments

Comments
 (0)