Skip to content

Commit c69ff8b

Browse files
authored
Merge pull request #4232 from MicrosoftDocs/main638017976572875114sync_temp
Repo sync for protected CLA branch
2 parents 4e04334 + cfabdbe commit c69ff8b

File tree

931 files changed

+10031
-10038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

931 files changed

+10031
-10038
lines changed

docs/c-runtime-library/32-bit-windows-time-date-formats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ The file time and the date are stored individually, using unsigned integers as b
2929

3030
## See also
3131

32-
[Global Constants](../c-runtime-library/global-constants.md)
32+
[Global constants](./global-constants.md)

docs/c-runtime-library/a-sample-generic-text-program.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.date: "11/04/2016"
55
helpviewer_keywords: ["_TCHAR type", "mappings, TCHAR.H data types", "generic-text example [CRT]", "TCHAR type", "TCHAR.H data types, mapping"]
66
ms.assetid: a03de0db-8118-4bd9-a03f-640e8dfc5ed3
77
---
8-
# A Sample Generic-Text Program
8+
# A sample generic-text program
99

1010
**Microsoft Specific**
1111

@@ -166,8 +166,8 @@ int __cdecl main(int argc, char **argv, char **envp)
166166

167167
## See also
168168

169-
[Generic-Text Mappings](../c-runtime-library/generic-text-mappings.md)<br/>
170-
[Data Type Mappings](../c-runtime-library/data-type-mappings.md)<br/>
171-
[Constant and Global Variable Mappings](../c-runtime-library/constant-and-global-variable-mappings.md)<br/>
172-
[Routine Mappings](../c-runtime-library/routine-mappings.md)<br/>
173-
[Using Generic-Text Mappings](../c-runtime-library/using-generic-text-mappings.md)
169+
[Generic-text mappings](./generic-text-mappings.md)\
170+
[Data type mappings](./data-type-mappings.md)\
171+
[Constant and global variable mappings](./constant-and-global-variable-mappings.md)\
172+
[Routine mappings](./routine-mappings.md)\
173+
[Using generic-text mappings](./using-generic-text-mappings.md)

docs/c-runtime-library/abnormal-termination.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ int _abnormal_termination(
2121
);
2222
```
2323
24-
## Return Value
24+
## Return value
2525
26-
**`true`** if the system is *unwinding* the stack; otherwise, **`false`**.
26+
**`true`** if the system is unwinding the stack; otherwise, **`false`**.
2727
2828
## Remarks
2929

docs/c-runtime-library/acmdln-tcmdln-wcmdln.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ These CRT internal variables store the complete command line. They're exposed in
3232

3333
## See also
3434

35-
[Global Variables](../c-runtime-library/global-variables.md)
35+
[Global variables](./global-variables.md)

docs/c-runtime-library/ansi-c-compliance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ The names of Microsoft-specific macros and manifest constants begin with two und
1717

1818
## See also
1919

20-
[Compatibility](../c-runtime-library/compatibility.md)
20+
[Compatibility](./compatibility.md)

docs/c-runtime-library/argc-argv-wargv.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ For portable code, we recommend you use the arguments passed to `main` to get th
4141
|---------------------|---------------------|
4242
|`__argc`, `__argv`, `__wargv`|\<stdlib.h>, \<cstdlib> (C++)|
4343

44-
`__argc`, `__argv`, and `__wargv` are Microsoft extensions. For compatibility information, see [Compatibility](../c-runtime-library/compatibility.md).
44+
`__argc`, `__argv`, and `__wargv` are Microsoft extensions. For compatibility information, see [Compatibility](./compatibility.md).
4545

4646
## See also
4747

48-
[Global variables](../c-runtime-library/global-variables.md)\
48+
[Global variables](./global-variables.md)\
4949
[`main` function and command-line arguments (C++)](../cpp/main-function-command-line-args.md)\
5050
[Using `wmain` instead of `main`](../cpp/main-function-command-line-args.md)

docs/c-runtime-library/argument-access.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ The **va_arg**, **va_end**, and **va_start** macros provide access to function a
1414

1515
|Macro|Use|
1616
|-----------|-------------------------------|
17-
|[va_arg](../c-runtime-library/reference/va-arg-va-copy-va-end-va-start.md)|Retrieve argument from list|
18-
|[va_end](../c-runtime-library/reference/va-arg-va-copy-va-end-va-start.md)|Reset pointer|
19-
|[va_start](../c-runtime-library/reference/va-arg-va-copy-va-end-va-start.md)|Set pointer to beginning of argument list|
17+
|[`va_arg`](./reference/va-arg-va-copy-va-end-va-start.md)|Retrieve argument from list|
18+
|[`va_end`](./reference/va-arg-va-copy-va-end-va-start.md)|Reset pointer|
19+
|[`va_start`](./reference/va-arg-va-copy-va-end-va-start.md)|Set pointer to beginning of argument list|
2020

2121
## See also
2222

23-
[Universal C runtime routines by category](../c-runtime-library/run-time-routines-by-category.md)
23+
[Universal C runtime routines by category](./run-time-routines-by-category.md)

docs/c-runtime-library/backward-compatibility.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ ms.topic: "conceptual"
66
helpviewer_keywords: ["CRT, compatibility", "backward compatibility, C run-time libraries", "compatibility, C run-time libraries", "backward compatibility"]
77
ms.assetid: cc3175cf-97fd-492f-b329-5791aea63090
88
---
9-
# Backward Compatibility
9+
# Backward compatibility
1010

1111
For compatibility between product versions, the library OLDNAMES.LIB maps old names to new names. For instance, `open` maps to `_open`. You must explicitly link with OLDNAMES.LIB only when you compile with the following combinations of command-line options:
1212

1313
- `/Zl` (omit default library name from object file) and `/Ze` (the default: use Microsoft extensions)
1414

1515
- `/link` (linker-control), `/NOD` (no default-library search), and `/Ze`
1616

17-
For more information about compiler command-line options, see [Compiler Reference](../build/reference/compiler-options.md).
17+
For more information about compiler command-line options, see [Compiler options](../build/reference/compiler-options.md).
1818

1919
## See also
2020

21-
[Compatibility](../c-runtime-library/compatibility.md)
21+
[Compatibility](./compatibility.md)

docs/c-runtime-library/buffer-manipulation.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ Use these routines to work with areas of memory on a byte-by-byte basis.
1313

1414
|Routine|Use|
1515
|-------------|---------|
16-
|[_memccpy](../c-runtime-library/reference/memccpy.md)|Copy characters from one buffer to another until given character or given number of characters has been copied|
17-
|[memchr, wmemchr](../c-runtime-library/reference/memchr-wmemchr.md)|Return pointer to first occurrence, within specified number of characters, of given character in buffer|
18-
|[memcmp, wmemcmp](../c-runtime-library/reference/memcmp-wmemcmp.md)|Compare specified number of characters from two buffers|
19-
|[memcpy, wmemcpy](../c-runtime-library/reference/memcpy-wmemcpy.md), [memcpy_s, wmemcpy_s](../c-runtime-library/reference/memcpy-s-wmemcpy-s.md)|Copy specified number of characters from one buffer to another|
20-
|[_memicmp, _memicmp_l](../c-runtime-library/reference/memicmp-memicmp-l.md)|Compare specified number of characters from two buffers without regard to case|
21-
|[memmove, wmemmove](../c-runtime-library/reference/memmove-wmemmove.md),[memmove_s, wmemmove_s](../c-runtime-library/reference/memmove-s-wmemmove-s.md)|Copy specified number of characters from one buffer to another|
22-
|[memset, wmemset](../c-runtime-library/reference/memset-wmemset.md)|Use given character to initialize specified number of bytes in the buffer|
23-
|[_swab](../c-runtime-library/reference/swab.md)|Swap bytes of data and store them at specified location|
16+
|[`_memccpy`](./reference/memccpy.md)|Copy characters from one buffer to another until given character or given number of characters has been copied|
17+
|[`memchr`, `wmemchr`](./reference/memchr-wmemchr.md)|Return pointer to first occurrence, within specified number of characters, of given character in buffer|
18+
|[`memcmp`, `wmemcmp`](./reference/memcmp-wmemcmp.md)|Compare specified number of characters from two buffers|
19+
|[`memcpy`, `wmemcpy`](./reference/memcpy-wmemcpy.md), [`memcpy_s`, `wmemcpy_s`](./reference/memcpy-s-wmemcpy-s.md)|Copy specified number of characters from one buffer to another|
20+
|[`_memicmp`, `_memicmp_l`](./reference/memicmp-memicmp-l.md)|Compare specified number of characters from two buffers without regard to case|
21+
|[`memmove`, `wmemmove`](./reference/memmove-wmemmove.md),[`memmove_s`, `wmemmove_s`](./reference/memmove-s-wmemmove-s.md)|Copy specified number of characters from one buffer to another|
22+
|[`memset`, `wmemset`](./reference/memset-wmemset.md)|Use given character to initialize specified number of bytes in the buffer|
23+
|[`_swab`](./reference/swab.md)|Swap bytes of data and store them at specified location|
2424

2525
When the source and target areas overlap, only **memmove** is guaranteed to copy the full source properly.
2626

2727
## See also
2828

29-
[Universal C runtime routines by category](../c-runtime-library/run-time-routines-by-category.md)
29+
[Universal C runtime routines by category](./run-time-routines-by-category.md)

docs/c-runtime-library/bufsiz.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ ms.assetid: 94ac04a3-d154-476b-bd89-eefbc7b949ae
1616

1717
## Remarks
1818

19-
`BUFSIZ` is the required user-allocated buffer for the [setvbuf](../c-runtime-library/reference/setvbuf.md) routine.
19+
`BUFSIZ` is the required user-allocated buffer for the [`setvbuf`](./reference/setvbuf.md) routine.
2020

2121
## See also
2222

23-
[Stream I/O](../c-runtime-library/stream-i-o.md)<br/>
24-
[Global Constants](../c-runtime-library/global-constants.md)
23+
[Stream I/O](./stream-i-o.md)\
24+
[Global constants](./global-constants.md)

docs/c-runtime-library/byte-and-wide-streams.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ f1_keywords: ["Byte and Wide Streams"]
77
helpviewer_keywords: ["byte streams", "wide streams"]
88
ms.assetid: 61ef0587-4cbc-4eb8-aae5-4c298dbbc6f9
99
---
10-
# Byte and Wide Streams
10+
# Byte and wide streams
1111

1212
A byte stream treats a file as a sequence of bytes. Within the program, the stream is the identical sequence of bytes.
1313

14-
By contrast, a wide stream treats a file as a sequence of generalized multibyte characters, which can have a broad range of encoding rules. (Text and binary files are still read and written as previously described.) Within the program, the stream looks like the corresponding sequence of wide characters. Conversions between the two representations occur within the Standard C Library. The conversion rules can, in principle, be altered by a call to [`setlocale`](../c-runtime-library/reference/setlocale-wsetlocale.md) that alters the category `LC_CTYPE`. Each wide stream determines its conversion rules at the time it becomes wide oriented, and retains these rules even if the category `LC_CTYPE` later changes.
14+
By contrast, a wide stream treats a file as a sequence of generalized multibyte characters, which can have a broad range of encoding rules. (Text and binary files are still read and written as previously described.) Within the program, the stream looks like the corresponding sequence of wide characters. Conversions between the two representations occur within the Standard C Library. The conversion rules can, in principle, be altered by a call to [`setlocale`](./reference/setlocale-wsetlocale.md) that alters the category `LC_CTYPE`. Each wide stream determines its conversion rules at the time it becomes wide oriented, and retains these rules even if the category `LC_CTYPE` later changes.
1515

16-
Positioning within a wide stream suffers the same limitations as for text steams. Moreover, the file-position indicator may well have to deal with a state-dependent encoding. Typically, it includes both a byte offset within the stream and an object of type `mbstate_t`. Thus, the only reliable way to obtain a file position within a wide stream is by calling [`fgetpos`](../c-runtime-library/reference/fgetpos.md), and the only reliable way to restore a position obtained this way is by calling [`fsetpos`](../c-runtime-library/reference/fsetpos.md).
16+
Positioning within a wide stream suffers the same limitations as for text steams. Moreover, the file-position indicator may well have to deal with a state-dependent encoding. Typically, it includes both a byte offset within the stream and an object of type `mbstate_t`. Thus, the only reliable way to obtain a file position within a wide stream is by calling [`fgetpos`](./reference/fgetpos.md), and the only reliable way to restore a position obtained this way is by calling [`fsetpos`](./reference/fsetpos.md).
1717

1818
## See also
1919

20-
[Files and Streams](../c-runtime-library/files-and-streams.md)<br/>
21-
[`setlocale`, `_wsetlocale`](../c-runtime-library/reference/setlocale-wsetlocale.md)
20+
[Files and streams](./files-and-streams.md)\
21+
[`setlocale`, `_wsetlocale`](./reference/setlocale-wsetlocale.md)

docs/c-runtime-library/byte-classification.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.assetid: 1cb52d71-fb0c-46ca-aad7-6472c1103370
88
---
99
# Byte classification
1010

11-
Each of these routines tests a specified byte of a multibyte character for satisfaction of a condition. Except where specified otherwise, the output value is affected by the setting of the `LC_CTYPE` category setting of the locale. For more information, see [`setlocale`](../c-runtime-library/reference/setlocale-wsetlocale.md). The versions of these functions without the **`_l`** suffix use the current locale for this locale-dependent behavior; the versions with the **`_l`** suffix are identical except that they use the locale parameter passed in instead.
11+
Each of these routines tests a specified byte of a multibyte character for satisfaction of a condition. Except where specified otherwise, the output value is affected by the setting of the `LC_CTYPE` category setting of the locale. For more information, see [`setlocale`](./reference/setlocale-wsetlocale.md). The versions of these functions without the **`_l`** suffix use the current locale for this locale-dependent behavior; the versions with the **`_l`** suffix are identical except that they use the locale parameter passed in instead.
1212

1313
> [!NOTE]
1414
> By definition, the ASCII characters between 0 and 127 are a subset of all multibyte-character sets. For example, the Japanese katakana character set includes ASCII as well as non-ASCII characters.
@@ -19,26 +19,26 @@ The predefined constants in the following table are defined in `<ctype.h>`.
1919

2020
| Routine | Byte Test Condition |
2121
|--|--|
22-
| [`isleadbyte`, `_isleadbyte_l`](../c-runtime-library/reference/isleadbyte-isleadbyte-l.md) | Lead byte; test result depends on `LC_CTYPE` category setting of current locale |
23-
| [`_ismbbalnum`, `_ismbbalnum_l`](../c-runtime-library/reference/ismbbalnum-ismbbalnum-l.md) | `isalnum || _ismbbkalnum` |
24-
| [`_ismbbalpha`, `_ismbbalpha_l`](../c-runtime-library/reference/ismbbalpha-ismbbalpha-l.md) | `isalpha || _ismbbkalpha` |
25-
| [`_ismbbgraph`, `_ismbbgraph_l`](../c-runtime-library/reference/ismbbgraph-ismbbgraph-l.md) | Same as `_ismbbprint`, but `_ismbbgraph` doesn't include the space character (0x20) |
26-
| [`_ismbbkalnum`, `_ismbbkalnum_l`](../c-runtime-library/reference/ismbbkalnum-ismbbkalnum-l.md) | Non-ASCII text symbol other than punctuation. For example, in code page 932 only, `_ismbbkalnum` tests for katakana alphanumeric |
27-
| [`_ismbbkana`, `_ismbbkana_l`](../c-runtime-library/reference/ismbbkana-ismbbkana-l.md) | Katakana (0xA1 - 0xDF), code page 932 only |
28-
| [`_ismbbkprint`, `_ismbbkprint_l`](../c-runtime-library/reference/ismbbkprint-ismbbkprint-l.md) | Non-ASCII text or non-ASCII punctuation symbol. For example, in code page 932 only, `_ismbbkprint` tests for katakana alphanumeric or katakana punctuation (range: 0xA1 - 0xDF). |
29-
| [`_ismbbkpunct`, `_ismbbkpunct_l`](../c-runtime-library/reference/ismbbkpunct-ismbbkpunct-l.md) | Non-ASCII punctuation. For example, in code page 932 only, `_ismbbkpunct` tests for katakana punctuation. |
30-
| [`_ismbblead`, `_ismbblead_l`](../c-runtime-library/reference/ismbblead-ismbblead-l.md) | First byte of multibyte character. For example, in code page 932 only, valid ranges are 0x81 - 0x9F, 0xE0 - 0xFC. |
31-
| [`_ismbbprint`, `_ismbbprint_l`](../c-runtime-library/reference/ismbbprint-ismbbprint-l.md) | `isprint || _ismbbkprint`. `ismbbprint` includes the space character (0x20) |
32-
| [`_ismbbpunct`, `_ismbbpunct_l`](../c-runtime-library/reference/ismbbpunct-ismbbpunct-l.md) | `ispunct || _ismbbkpunct` |
33-
| [`_ismbbtrail`, `_ismbbtrail_l`](../c-runtime-library/reference/ismbbtrail-ismbbtrail-l.md) | Second byte of multibyte character. For example, in code page 932 only, valid ranges are 0x40 - 0x7E, 0x80 - 0xEC. |
34-
| [`_ismbslead`, `_ismbslead_l`](../c-runtime-library/reference/ismbslead-ismbstrail-ismbslead-l-ismbstrail-l.md) | Lead byte (in string context) |
35-
| [`ismbstrail`, `_ismbstrail_l`](../c-runtime-library/reference/ismbslead-ismbstrail-ismbslead-l-ismbstrail-l.md) | Trail byte (in string context) |
36-
| [`_mbbtype`, `_mbbtype_l`](../c-runtime-library/reference/mbbtype-mbbtype-l.md) | Return byte type based on previous byte |
37-
| [`_mbsbtype`, `_mbsbtype_l`](../c-runtime-library/reference/mbsbtype-mbsbtype-l.md) | Return type of byte within string |
38-
| [`mbsinit`](../c-runtime-library/reference/mbsinit.md) | Tracks the state of a multibyte character conversion. |
22+
| [`isleadbyte`, `_isleadbyte_l`](./reference/isleadbyte-isleadbyte-l.md) | Lead byte; test result depends on `LC_CTYPE` category setting of current locale |
23+
| [`_ismbbalnum`, `_ismbbalnum_l`](./reference/ismbbalnum-ismbbalnum-l.md) | `isalnum || _ismbbkalnum` |
24+
| [`_ismbbalpha`, `_ismbbalpha_l`](./reference/ismbbalpha-ismbbalpha-l.md) | `isalpha || _ismbbkalpha` |
25+
| [`_ismbbgraph`, `_ismbbgraph_l`](./reference/ismbbgraph-ismbbgraph-l.md) | Same as `_ismbbprint`, but `_ismbbgraph` doesn't include the space character (0x20) |
26+
| [`_ismbbkalnum`, `_ismbbkalnum_l`](./reference/ismbbkalnum-ismbbkalnum-l.md) | Non-ASCII text symbol other than punctuation. For example, in code page 932 only, `_ismbbkalnum` tests for katakana alphanumeric |
27+
| [`_ismbbkana`, `_ismbbkana_l`](./reference/ismbbkana-ismbbkana-l.md) | Katakana (0xA1 - 0xDF), code page 932 only |
28+
| [`_ismbbkprint`, `_ismbbkprint_l`](./reference/ismbbkprint-ismbbkprint-l.md) | Non-ASCII text or non-ASCII punctuation symbol. For example, in code page 932 only, `_ismbbkprint` tests for katakana alphanumeric or katakana punctuation (range: 0xA1 - 0xDF). |
29+
| [`_ismbbkpunct`, `_ismbbkpunct_l`](./reference/ismbbkpunct-ismbbkpunct-l.md) | Non-ASCII punctuation. For example, in code page 932 only, `_ismbbkpunct` tests for katakana punctuation. |
30+
| [`_ismbblead`, `_ismbblead_l`](./reference/ismbblead-ismbblead-l.md) | First byte of multibyte character. For example, in code page 932 only, valid ranges are 0x81 - 0x9F, 0xE0 - 0xFC. |
31+
| [`_ismbbprint`, `_ismbbprint_l`](./reference/ismbbprint-ismbbprint-l.md) | `isprint || _ismbbkprint`. `ismbbprint` includes the space character (0x20) |
32+
| [`_ismbbpunct`, `_ismbbpunct_l`](./reference/ismbbpunct-ismbbpunct-l.md) | `ispunct || _ismbbkpunct` |
33+
| [`_ismbbtrail`, `_ismbbtrail_l`](./reference/ismbbtrail-ismbbtrail-l.md) | Second byte of multibyte character. For example, in code page 932 only, valid ranges are 0x40 - 0x7E, 0x80 - 0xEC. |
34+
| [`_ismbslead`, `_ismbslead_l`](./reference/ismbslead-ismbstrail-ismbslead-l-ismbstrail-l.md) | Lead byte (in string context) |
35+
| [`ismbstrail`, `_ismbstrail_l`](./reference/ismbslead-ismbstrail-ismbslead-l-ismbstrail-l.md) | Trail byte (in string context) |
36+
| [`_mbbtype`, `_mbbtype_l`](./reference/mbbtype-mbbtype-l.md) | Return byte type based on previous byte |
37+
| [`_mbsbtype`, `_mbsbtype_l`](./reference/mbsbtype-mbsbtype-l.md) | Return type of byte within string |
38+
| [`mbsinit`](./reference/mbsinit.md) | Tracks the state of a multibyte character conversion. |
3939

4040
The `MB_LEN_MAX` macro, defined in `<limits.h>`, expands to the maximum length in bytes that any multibyte character can have. `MB_CUR_MAX`, defined in `<stdlib.h>`, expands to the maximum length in bytes of any multibyte character in the current locale.
4141

4242
## See also
4343

44-
[Universal C runtime routines by category](../c-runtime-library/run-time-routines-by-category.md)
44+
[Universal C runtime routines by category](./run-time-routines-by-category.md)

docs/c-runtime-library/c-run-time-library-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The Microsoft runtime library provides routines for programming the Microsoft Wi
1111

1212
Sample programs are included in the individual reference articles for most routines in the library.
1313

14-
## In This Section
14+
## In this section
1515

1616
[Universal C runtime routines by category](run-time-routines-by-category.md)\
1717
Provides links to the runtime library by category.
@@ -40,7 +40,7 @@ Describes how to use the `setlocale` function to set the language and Country/Re
4040
[C runtime (CRT) and C++ Standard Library (STL) `.lib` files](crt-library-features.md)\
4141
List of `.lib` files that make up the C runtime libraries and their associated compiler options and preprocessor directives.
4242

43-
## Related Sections
43+
## Related sections
4444

4545
[Debug routines](debug-routines.md)\
4646
Provides links to the debug versions of the runtime library routines.

0 commit comments

Comments
 (0)