Skip to content

Commit ecc7e68

Browse files
authored
Merge pull request #3700 from corob-msft/docs/corob/mdl-210805-5
Markdown quality fixes 5 of N
2 parents 8c5e5b2 + 11ffa84 commit ecc7e68

9 files changed

Lines changed: 22 additions & 27 deletions

‎docs/c-runtime-library/reference/printf-printf-l-wprintf-wprintf-l.md‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ The **`printf`** function formats and prints a series of characters and values t
6161

6262
The versions of these functions with the **`_l`** suffix are identical except that they use the locale parameter passed in instead of the current thread locale.
6363

64-
### Generic-Text Routine Mappings
65-
66-
|`TCHAR.H` routine|`_UNICODE` & `_MBCS` not defined|`_MBCS` defined|`_UNICODE` defined|
67-
|---------------------|------------------------------------|--------------------|-----------------------|
68-
|**`_tprintf`**|**`printf`**|**`printf`**|**`wprintf`**|
69-
7064
The *`format`* argument consists of ordinary characters, escape sequences, and (if arguments follow *`format`*) format specifications. The ordinary characters and escape sequences are copied to **`stdout`** in order of their appearance. For example, the line:
7165

7266
```C

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ Random number in a range demo ====
123123
[Floating-Point Support](../../c-runtime-library/floating-point-support.md)\
124124
[`srand`](srand.md)\
125125
[`rand_s`](rand-s.md)\
126-
[C++ `<random>` library](../../standard-library/random.md)
126+
[C++ `<random>` library](../../standard-library/random.md)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ It isn't safe to call **`_resetstkoflw`** in a C++ catch block that is reached f
7373
7474
There are situations where **`_resetstkoflw`** can fail even if used in a correct location, such as within an **`__except`** block. If, even after unwinding the stack, there's still not enough stack space left to execute **`_resetstkoflw`** without writing into the last page of the stack, **`_resetstkoflw`** fails to reset the last page of the stack as the guard page and returns 0, indicating failure. Safe usage of this function should include checking the return value instead of assuming that the stack is safe to use.
7575
76-
Structured exception handling won't catch a **`STATUS_STACK_OVERFLOW`** exception when the application is compiled with **`/clr`** (see [`/clr `(Common Language Runtime Compilation)](../../build/reference/clr-common-language-runtime-compilation.md)).
76+
Structured exception handling won't catch a **`STATUS_STACK_OVERFLOW`** exception when the application is compiled with **`/clr`** (see [`/clr` (Common Language Runtime Compilation)](../../build/reference/clr-common-language-runtime-compilation.md)).
7777
7878
By default, this function's global state is scoped to the application. To change this, see [Global state in the CRT](../global-state.md).
7979

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ For more compatibility information, see [Compatibility](../../c-runtime-library/
5757
## See also
5858

5959
[Floating-Point Support](../../c-runtime-library/floating-point-support.md)\
60-
[`ldexp`](ldexp.md)
60+
[`ldexp`](ldexp.md)

‎docs/c-runtime-library/reference/setlocale-wsetlocale.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,10 @@ The function [`_configthreadlocale`](configthreadlocale.md) is used to control w
173173
Starting in Windows 10 build 17134 (April 2018 Update), the Universal C Runtime supports using a UTF-8 code page. This means that `char` strings passed to C runtime functions will expect strings in the UTF-8 encoding. To enable UTF-8 mode, use `".UTF8"` as the code page when using `setlocale`. For example, `setlocale(LC_ALL, ".UTF8")` will use the current default Windows ANSI code page (ACP) for the locale and UTF-8 for the code page.
174174

175175
The string to specify UTF-8 mode is:
176+
176177
- case-insensitive
177-
- the hyphen (-) is optional
178-
- It must be in the code page part of the locale name, so must have a leading period '.' For example, `"en_US.UTF8"` or `".utf8"`
178+
- the hyphen (`-`) is optional
179+
- It must be in the code page part of the locale name, so must have a leading period (`.`) as in these examples: `"en_US.UTF8"` or `".utf8"`
179180

180181
The following examples show how to specify the UTF-8 string:
181182

‎docs/c-runtime-library/reference/sinh-sinhf-sinhl.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ cosh( 1.570796 ) = 2.509178
9494
[`asinh`, `asinhf`, `asinhl`](asinh-asinhf-asinhl.md)\
9595
[`atanh`, `atanhf`, `atanhl`](atanh-atanhf-atanhl.md)\
9696
[`cosh`, `coshf`, `coshl`](cosh-coshf-coshl.md)\
97-
[`tanh`, `tanhf`, `tanhl`](tanh-tanhf-tanhl.md)
97+
[`tanh`, `tanhf`, `tanhl`](tanh-tanhf-tanhl.md)

‎docs/c-runtime-library/reference/strncat-strncat-l-wcsncat-wcsncat-l-mbsncat-mbsncat-l.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ By default, this function's global state is scoped to the application. To change
102102

103103
### Generic-Text Routine Mappings
104104

105-
|`TCHAR.H `routine|`_UNICODE & _MBCS` not defined|`_MBCS` defined|`_UNICODE` defined|
106-
|---------------------|------------------------------------|--------------------|-----------------------|
107-
|**`_tcsncat`**|**`strncat`**|**`_mbsnbcat`**|**`wcsncat`**|
108-
|**`_tcsncat_l`**|**`_strncat_l`**|**`_mbsnbcat_l`**|**`_wcsncat_l`**|
105+
| `TCHAR.H` routine | `_UNICODE` and `_MBCS` not defined | `_MBCS` defined | `_UNICODE` defined |
106+
|--|--|--|--|
107+
| **`_tcsncat`** | **`strncat`** | **`_mbsnbcat`** | **`wcsncat`** |
108+
| **`_tcsncat_l`** | **`_strncat_l`** | **`_mbsnbcat_l`** | **`_wcsncat_l`** |
109109

110110
> [!NOTE]
111111
> **`_strncat_l`** and **`_wcsncat_l`** have no locale dependence and are not meant to be called directly. They are provided for internal use by **`_tcsncat_l`**.

‎docs/c-runtime-library/reference/tan-tanf-tanl.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ tan( 0.785398 ) = 1.000000
8686
## See also
8787

8888
[Floating-Point Support](../../c-runtime-library/floating-point-support.md)\
89-
[`acos, acosf, acosl`](acos-acosf-acosl.md)\
90-
[`asin, asinf, asinl`](asin-asinf-asinl.md)\
91-
[`atan, atanf, atanl, atan2, atan2f, atan2l`](atan-atanf-atanl-atan2-atan2f-atan2l.md)\
92-
[`cos, cosf, cosl`](cos-cosf-cosl.md)\
93-
[`sin, sinf, sinl`](sin-sinf-sinl.md)\
94-
[`_CItan`](../../c-runtime-library/citan.md)
89+
[`acos`, `acosf`, `acosl`](acos-acosf-acosl.md)\
90+
[`asin`, `asinf`, `asinl`](asin-asinf-asinl.md)\
91+
[`atan`, `atanf`, `atanl`, `atan2`, `atan2f`, `atan2l`](atan-atanf-atanl-atan2-atan2f-atan2l.md)\
92+
[`cos`, `cosf`, `cosl`](cos-cosf-cosl.md)\
93+
[`sin`, `sinf`, `sinl`](sin-sinf-sinl.md)\
94+
[`_CItan`](../../c-runtime-library/citan.md)

‎docs/c-runtime-library/reference/tanh-tanhf-tanhl.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ tanh( 1.000000 ) = 0.761594
8888
## See also
8989

9090
[Floating-Point Support](../../c-runtime-library/floating-point-support.md)\
91-
[`acosh, acoshf, acoshl`](acosh-acoshf-acoshl.md)\
92-
[`asinh, asinhf, asinhl`](asinh-asinhf-asinhl.md)\
93-
[`atanh, atanhf, atanhl`](atanh-atanhf-atanhl.md)\
94-
[`cosh, coshf, coshl`](cosh-coshf-coshl.md)\
95-
[`sinh, sinhf, sinhl`](sinh-sinhf-sinhl.md)
91+
[`acosh`, `acoshf`, `acoshl`](acosh-acoshf-acoshl.md)\
92+
[`asinh`, `asinhf`, `asinhl`](asinh-asinhf-asinhl.md)\
93+
[`atanh`, `atanhf`, `atanhl`](atanh-atanhf-atanhl.md)\
94+
[`cosh`, `coshf`, `coshl`](cosh-coshf-coshl.md)\
95+
[`sinh`, `sinhf`, `sinhl`](sinh-sinhf-sinhl.md)

0 commit comments

Comments
 (0)