Skip to content

Commit 516fac8

Browse files
US1907300 - add md code escapes to code elements - PR5
1 parent 39fcc51 commit 516fac8

File tree

2 files changed

+30
-32
lines changed

2 files changed

+30
-32
lines changed

docs/c-runtime-library/reference/strtol-wcstol-strtol-l-wcstol-l.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ api_type: ["DLLExport"]
88
topic_type: ["apiref"]
99
f1_keywords: ["_wcstol_l", "strtol", "_tcstol", "wcstol", "_strtol_l", "_tcstol_l"]
1010
helpviewer_keywords: ["wcstol function", "wcstol_l function", "_tcstol function", "string conversion, to integers", "tcstol function", "strtol_l function", "_wcstol_l function", "_strtol_l function", "strtol function"]
11-
ms.assetid: 1787c96a-f283-4a83-9325-33cfc1c7e240
1211
no-loc: [strtol, wcstol, _strtol_l, _wcstol_l, LONG_MAX, LONG_MIN, errno, ERANGE, EINVAL, LC_NUMERIC, _tcstol, _tcstol_l, localeconv, setlocale, _wsetlocale, strtod, _strtod_l, wcstod, _wcstod_l, strtoll, _strtoll_l, wcstoll, _wcstoll_l, strtoul, _strtoul_l, wcstoul, _wcstoul_l, atof, _atof_l, _wtof, _wtof_l]
1312
---
14-
# strtol, wcstol, _strtol_l, _wcstol_l
13+
# `strtol`, `wcstol`, `_strtol_l`, `_wcstol_l`
1514

1615
Convert strings to a **`long`** integer value.
1716

@@ -44,70 +43,70 @@ long _wcstol_l(
4443

4544
### Parameters
4645

47-
*string*\
46+
*`string`*\
4847
Null-terminated string to convert.
4948

50-
*end_ptr*\
49+
*`end_ptr`*\
5150
An output parameter, set to point to the character after the last interpreted character. Ignored, if **NULL**.
5251

53-
*base*\
52+
*`base`*\
5453
Number base to use.
5554

56-
*locale*\
55+
*`locale`*\
5756
Locale to use.
5857

5958
## Return Value
6059

61-
**strtol**, **wcstol**, **_strtol_l**, and **_wcstol_l** return the value represented in *string*. They return 0 if no conversion is possible. When the representation would cause an overflow, they return **LONG_MAX** or **LONG_MIN**.
60+
**`strtol`**, **`wcstol`**, **`_strtol_l`**, and **`_wcstol_l`** return the value represented in *`string`*. They return 0 if no conversion is possible. When the representation would cause an overflow, they return **`LONG_MAX`** or **`LONG_MIN`**.
6261

63-
**errno** is set to **ERANGE** if overflow or underflow occurs. It's set to **EINVAL** if *string* is **NULL**. Or, if *base* is nonzero and less than 2, or greater than 36. For more information on **ERANGE**, **EINVAL**, and other return codes, see [_doserrno, errno, _sys_errlist, and _sys_nerr](../../c-runtime-library/errno-doserrno-sys-errlist-and-sys-nerr.md).
62+
**`errno`** is set to **`ERANGE`** if overflow or underflow occurs. It's set to **`EINVAL`** if *`string`* is **NULL**. Or, if *`base`* is nonzero and less than 2, or greater than 36. For more information on **`ERANGE`**, **`EINVAL`**, and other return codes, see [`_doserrno`, `errno`, `_sys_errlist`, and `_sys_nerr`](../../c-runtime-library/errno-doserrno-sys-errlist-and-sys-nerr.md).
6463

6564
## Remarks
6665

67-
The **strtol**, **wcstol**, **_strtol_l**, and **_wcstol_l** functions convert *string* to a **`long`**. They stop reading *string* at the first character not recognized as part of a number. It may be the terminating-null character, or the first alphanumeric character greater than or equal to *base*.
66+
The **`strtol`**, **`wcstol`**, **`_strtol_l`**, and **`_wcstol_l`** functions convert *`string`* to a **`long`**. They stop reading *`string`* at the first character not recognized as part of a number. It may be the terminating-null character, or the first alphanumeric character greater than or equal to *`base`*.
6867

69-
**wcstol** and **_wcstol_l** are wide-character versions of **strtol** and **_strtol_l**. Their *string* argument is a wide-character string. These functions behave identically to **strtol** and **_strtol_l** otherwise. The locale's **LC_NUMERIC** category setting determines recognition of the radix character (the fractional marker or decimal point) in *string*. The functions **strtol** and **wcstol** use the current locale. **_strtol_l** and **_wcstol_l** use the locale passed in instead. For more information, see [setlocale] and [Locale](../../c-runtime-library/locale.md).
68+
**`wcstol`** and **`_wcstol_l`** are wide-character versions of **`strtol`** and **`_strtol_l`**. Their *`string`* argument is a wide-character string. These functions behave identically to **`strtol`** and **`_strtol_l`** otherwise. The locale's **`LC_NUMERIC`** category setting determines recognition of the radix character (the fractional marker or decimal point) in *`string`*. The functions **`strtol`** and **`wcstol`** use the current locale. **`_strtol_l`** and **`_wcstol_l`** use the locale passed in instead. For more information, see [`setlocale`] and [Locale](../../c-runtime-library/locale.md).
7069

71-
When *end_ptr* is **NULL**, it's ignored. Otherwise, a pointer to the character that stopped the scan is stored at the location pointed to by *end_ptr*. No conversion is possible if no valid digits are found, or an invalid base is specified. The value of *string* is then stored at the location pointed to by *end_ptr*.
70+
When *`end_ptr`* is **NULL**, it's ignored. Otherwise, a pointer to the character that stopped the scan is stored at the location pointed to by *`end_ptr`*. No conversion is possible if no valid digits are found, or an invalid base is specified. The value of *`string`* is then stored at the location pointed to by *`end_ptr`*.
7271

73-
**strtol** expects *string* to point to a string of the following form:
72+
**`strtol`** expects *`string`* to point to a string of the following form:
7473

7574
> [*whitespace*] [{**+** | **-**}] [**0** [{ **x** | **X** }]] [*alphanumerics*]
7675
77-
Square brackets (`[ ]`) surround optional elements. Curly braces and a vertical bar (`{ | }`) surround alternatives for a single element. *whitespace* may consist of space and tab characters, which are ignored. *alphanumerics* are decimal digits or the letters 'a' through 'z' (or 'A' through 'Z'). The first character that doesn't fit this form stops the scan. If *base* is between 2 and 36, then it's used as the base of the number. If *base* is 0, the initial characters of the string pointed to by *string* are used to determine the base. If the first character is 0, and the second character isn't 'x' or 'X', the string is interpreted as an octal integer. If the first character is '0' and the second character is 'x' or 'X', the string is interpreted as a hexadecimal integer. If the first character is '1' through '9', the string is interpreted as a decimal integer. The letters 'a' through 'z' (or 'A' through 'Z') are assigned the values 10 through 35. The scan only allows letters whose values are less than *base*. The first character outside the range of the base stops the scan. For example, suppose *string* starts with "01". If *base* is 0, the scanner assumes it's an octal integer. An '8' or '9' character stops the scan.
76+
Square brackets (`[ ]`) surround optional elements. Curly braces and a vertical bar (`{ | }`) surround alternatives for a single element. *whitespace* may consist of space and tab characters, which are ignored. *alphanumerics* are decimal digits or the letters 'a' through 'z' (or 'A' through 'Z'). The first character that doesn't fit this form stops the scan. If *`base`* is between 2 and 36, then it's used as the base of the number. If *`base`* is 0, the initial characters of the string pointed to by *`string`* are used to determine the base. If the first character is 0, and the second character isn't 'x' or 'X', the string is interpreted as an octal integer. If the first character is '0' and the second character is 'x' or 'X', the string is interpreted as a hexadecimal integer. If the first character is '1' through '9', the string is interpreted as a decimal integer. The letters 'a' through 'z' (or 'A' through 'Z') are assigned the values 10 through 35. The scan only allows letters whose values are less than *`base`*. The first character outside the range of the base stops the scan. For example, suppose *`string`* starts with "01". If *`base`* is 0, the scanner assumes it's an octal integer. An '8' or '9' character stops the scan.
7877

7978
By default, this function's global state is scoped to the application. To change this, see [Global state in the CRT](../global-state.md).
8079

8180
### Generic-Text Routine Mappings
8281

8382
|TCHAR.H routine|_UNICODE & _MBCS not defined|_MBCS defined|_UNICODE defined|
8483
|---------------------|------------------------------------|--------------------|-----------------------|
85-
|**_tcstol**|**strtol**|**strtol**|**wcstol**|
86-
|**_tcstol_l**|**_strtol_l**|**_strtol_l**|**_wcstol_l**|
84+
|**`_tcstol`**|**`strtol`**|**`strtol`**|**`wcstol`**|
85+
|**`_tcstol_l`**|**`_strtol_l`**|**`_strtol_l`**|**`_wcstol_l`**|
8786

8887
## Requirements
8988

9089
|Routine|Required header|
9190
|-------------|---------------------|
92-
|**strtol**|\<stdlib.h>|
93-
|**wcstol**|\<stdlib.h> or \<wchar.h>|
94-
|**_strtol_l**|\<stdlib.h>|
95-
|**_wcstol_l**|\<stdlib.h> or \<wchar.h>|
91+
|**`strtol`**|`<stdlib.h>`|
92+
|**`wcstol`**|`<stdlib.h>` or `<wchar.h>`|
93+
|**`_strtol_l`**|`<stdlib.h>`|
94+
|**`_wcstol_l`**|`<stdlib.h>` or `<wchar.h>`|
9695

97-
The **_strtol_l** and **_wcstol_l** functions are Microsoft-specific, not part of the Standard C library. For additional compatibility information, see [Compatibility](../compatibility.md).
96+
The **`_strtol_l`** and **`_wcstol_l`** functions are Microsoft-specific, not part of the Standard C library. For additional compatibility information, see [Compatibility](../compatibility.md).
9897

9998
## Example
10099

101-
See the example for [strtod](strtod-strtod-l-wcstod-wcstod-l.md).
100+
See the example for [`strtod`](strtod-strtod-l-wcstod-wcstod-l.md).
102101

103102
## See also
104103

105104
[Data conversion](../data-conversion.md)\
106105
[Locale](../locale.md)\
107-
[localeconv](localeconv.md)\
108-
[setlocale, _wsetlocale](setlocale-wsetlocale.md)\
106+
[`localeconv`](localeconv.md)\
107+
[`setlocale`, `_wsetlocale`](setlocale-wsetlocale.md)\
109108
[String to numeric value functions](../string-to-numeric-value-functions.md)\
110-
[strtod, _strtod_l, wcstod, _wcstod_l](strtod-strtod-l-wcstod-wcstod-l.md)\
111-
[strtoll, _strtoll_l, wcstoll, _wcstoll_l](strtoll-strtoll-l-wcstoll-wcstoll-l.md)\
112-
[strtoul, _strtoul_l, wcstoul, _wcstoul_l](strtoul-strtoul-l-wcstoul-wcstoul-l.md)\
113-
[atof, _atof_l, _wtof, _wtof_l](atof-atof-l-wtof-wtof-l.md)
109+
[`strtod`, `_strtod_l`, `wcstod`, `_wcstod_l`](strtod-strtod-l-wcstod-wcstod-l.md)\
110+
[`strtoll`, `_strtoll_l`, `wcstoll`, `_wcstoll_l`](strtoll-strtoll-l-wcstoll-wcstoll-l.md)\
111+
[`strtoul`, `_strtoul_l`, `wcstoul`, `_wcstoul_l`](strtoul-strtoul-l-wcstoul-wcstoul-l.md)\
112+
[`atof`, `_atof_l`, `_wtof`, `_wtof_l`](atof-atof-l-wtof-wtof-l.md)

docs/mfc/reference/mfc-application-wizard.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ title: "MFC Application Wizard"
44
ms.date: "11/04/2016"
55
f1_keywords: ["vc.appwiz.mfc.exe.overview"]
66
helpviewer_keywords: ["MFC Application Wizard", "executable files, creating"]
7-
ms.assetid: 227ac090-921d-4b2f-be0a-66a5f4cab0d4
87
---
98
# MFC Application Wizard
109

@@ -15,7 +14,7 @@ The MFC Application Wizard generates an application that, when compiled, impleme
1514
1615
## Overview
1716

18-
This wizard page describes the current application settings for the MFC application that you are creating. By default, the wizard creates a project as follows:
17+
This wizard page describes the current application settings for the MFC application that you’re creating. By default, the wizard creates a project as follows:
1918

2019
- [Application Type, MFC Application Wizard](../../mfc/reference/application-type-mfc-application-wizard.md)
2120

@@ -67,12 +66,12 @@ This wizard page describes the current application settings for the MFC applicat
6766

6867
- The project's child frame class is derived from the [CMDIChildWndEx Class](../../mfc/reference/cmdichildwndex-class.md).
6968

70-
To change these default settings, click the appropriate tab title in the left column of the wizard and make the changes on the page that appears.
69+
To change these default settings, select the appropriate tab title in the left column of the wizard and make the changes on the page that appears.
7170

7271
After you create an MFC application project, you can add objects or controls to your project using Visual C++ [code wizards](../../ide/adding-functionality-with-code-wizards-cpp.md).
7372

7473
## See also
7574

76-
[Creating an MFC Application](../../mfc/reference/creating-an-mfc-application.md)<br/>
77-
[MFC Desktop Applications](../../mfc/mfc-desktop-applications.md)<br/>
75+
[Creating an MFC Application](../../mfc/reference/creating-an-mfc-application.md)\
76+
[MFC Desktop Applications](../../mfc/mfc-desktop-applications.md)\
7877
[Using the Classes to Write Applications for Windows](../../mfc/using-the-classes-to-write-applications-for-windows.md)

0 commit comments

Comments
 (0)