Skip to content

Commit 2d21c07

Browse files
authored
Merge pull request #3370 from TylerMSFT/twhitney-2713
typo
2 parents 2d2e4fc + 70c4d51 commit 2d21c07

File tree

1 file changed

+33
-34
lines changed

1 file changed

+33
-34
lines changed

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

+33-34
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
---
22
description: "Learn more about: strncat, _strncat_l, wcsncat, _wcsncat_l, _mbsncat, _mbsncat_l"
33
title: "strncat, _strncat_l, wcsncat, _wcsncat_l, _mbsncat, _mbsncat_l"
4-
ms.date: "4/2/2020"
4+
ms.date: "1/20/2021"
55
api_name: ["strncat", "_strncat_l", "_mbsncat", "_mbsncat_l", "wcsncat", "wcsncat_l", "_o__mbsncat", "_o__mbsncat_l"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-multibyte-l1-1-0.dll", "api-ms-win-crt-string-l1-1-0.dll", "ntoskrnl.exe", "api-ms-win-crt-private-l1-1-0.dll"]
77
api_type: ["DLLExport"]
88
topic_type: ["apiref"]
99
f1_keywords: ["_tcsncat_l", "_wcsncat_l", "_tcsnccat_l", "_mbsncat", "_strncat_l", "strncat", "_tcsnccat", "_mbsncat_l", "_ftcsncat", "wcsncat", "_tcsncat"]
1010
helpviewer_keywords: ["concatenating strings", "ftcsncat function", "tcsncat_l function", "_tcsnccat_l function", "_tcsncat function", "strncat function", "_ftcsncat function", "mbsncat function", "mbsncat_l function", "strings [C++], appending", "wcsncat function", "tcsnccat function", "tcsnccat_l function", "_tcsnccat function", "string concatenation [C++]", "appending strings", "characters [C++], appending to strings", "_mbsncat function", "_tcsncat_l function", "_mbsncat_l function", "tcsncat function"]
11-
ms.assetid: de67363b-68c6-4ca5-91e3-478610ad8159
1211
---
1312
# strncat, _strncat_l, wcsncat, _wcsncat_l, _mbsncat, _mbsncat_l
1413

15-
Appends characters of a string. More secure versions of these functions are available, see [strncat_s, _strncat_s_l, wcsncat_s, _wcsncat_s_l, _mbsncat_s, _mbsncat_s_l](strncat-s-strncat-s-l-wcsncat-s-wcsncat-s-l-mbsncat-s-mbsncat-s-l.md) .
14+
Appends characters of a string. More secure versions of these functions are available, see `[strncat_s, _strncat_s_l, wcsncat_s, _wcsncat_s_l, _mbsncat_s, _mbsncat_s_l`](strncat-s-strncat-s-l-wcsncat-s-wcsncat-s-l-mbsncat-s-mbsncat-s-l.md) .
1615

1716
> [!IMPORTANT]
18-
> **_mbsncat** and **_mbsncat_l** 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).
17+
> **`_mbsncat`** and **`_mbsncat_l`** 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).
1918
2019
## Syntax
2120

@@ -70,16 +69,16 @@ unsigned char *_mbsncat_l(
7069

7170
### Parameters
7271

73-
*strDest*<br/>
72+
*`strDest`*\
7473
Null-terminated destination string.
7574

76-
*strSource*<br/>
75+
*`strSource`*\
7776
Null-terminated source string.
7877

79-
*count*<br/>
78+
*`count`*\
8079
Number of characters to append.
8180

82-
*locale*<br/>
81+
*`locale`*\
8382
Locale to use.
8483

8584
## Return Value
@@ -88,39 +87,39 @@ Returns a pointer to the destination string. No return value is reserved to indi
8887

8988
## Remarks
9089

91-
The **strncat** function appends, at most, the first *count* characters of *strSource* to *strDest*. The initial character of *strSource* overwrites the terminating null character of *strDest*. If a null character appears in *strSource* before *count* characters are appended, **strncat** appends all characters from *strSource*, up to the null character. If *count* is greater than the length of *strSource*, the length of *strSource* is used in place of *count*. The all cases, the resulting string is terminated with a null character. If copying takes place between strings that overlap, the behavior is undefined.
90+
The **`strncat`** function appends, at most, the first *`count`* characters of *`strSource`* to *`strDest`*. The initial character of *`strSource`* overwrites the terminating null character of *`strDest`*. If a null character appears in *`strSource`* before *`count`* characters are appended, **`strncat`** appends all characters from *`strSource`*, up to the null character. If *`count`* is greater than the length of *`strSource`*, the length of *`strSource`* is used in place of *`count`*. In all cases, the resulting string is terminated with a null character. If copying takes place between strings that overlap, the behavior is undefined.
9291

9392
> [!IMPORTANT]
94-
> **strncat** does not check for sufficient space in *strDest*; it is therefore a potential cause of buffer overruns. Keep in mind that *count* limits the number of characters appended; it is not a limit on the size of *strDest*. See the example below. For more information, see [Avoiding Buffer Overruns](/windows/win32/SecBP/avoiding-buffer-overruns).
93+
> **`strncat`** does not check for sufficient space in *`strDest`*; it is therefore a potential cause of buffer overruns. Keep in mind that *`count`* limits the number of characters appended; it is not a limit on the size of *`strDest`*. See the example below. For more information, see [Avoiding Buffer Overruns](/windows/win32/SecBP/avoiding-buffer-overruns).
9594
96-
**wcsncat** and **_mbsncat** are wide-character and multibyte-character versions of **strncat**. The string arguments and return value of **wcsncat** are wide-character strings; those of **_mbsncat** are multibyte-character strings. These three functions behave identically otherwise.
95+
**`wcsncat`** and **`_mbsncat`** are wide-character and multibyte-character versions of **`strncat`**. The string arguments and return value of **`wcsncat`** are wide-character strings; those of **`_mbsncat`** are multibyte-character strings. These three functions behave identically otherwise.
9796

98-
The output value is affected by the setting of the **LC_CTYPE** category setting of the locale; see [setlocale](setlocale-wsetlocale.md) for more information. 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. For more information, see [Locale](../../c-runtime-library/locale.md).
97+
The output value is affected by the setting of the **`LC_CTYPE`** category setting of the locale. For more information, see [`setlocale`](setlocale-wsetlocale.md) for more information. 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 they use the locale parameter passed in instead. For more information, see [Locale](../../c-runtime-library/locale.md).
9998

10099
In C++, these functions have template overloads. For more information, see [Secure Template Overloads](../../c-runtime-library/secure-template-overloads.md).
101100

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

104103
### Generic-Text Routine Mappings
105104

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

111110
> [!NOTE]
112-
> **_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**.
111+
> **`_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`**.
113112
114113
## Requirements
115114

116115
|Routine|Required header|
117116
|-------------|---------------------|
118-
|**strncat**|\<string.h>|
119-
|**wcsncat**|\<string.h> or \<wchar.h>|
120-
|**_mbsncat**|\<mbstring.h>|
121-
|**_mbsncat_l**|\<mbstring.h>|
117+
|**`strncat`**|\<string.h>|
118+
|**`wcsncat`**|\<string.h> or \<wchar.h>|
119+
|**`_mbsncat`**|\<mbstring.h>|
120+
|**`_mbsncat_l`**|\<mbstring.h>|
122121

123-
For additional compatibility information, see [Compatibility](../../c-runtime-library/compatibility.md).
122+
For more compatibility information, see [Compatibility](../../c-runtime-library/compatibility.md).
124123

125124
## Example
126125

@@ -173,16 +172,16 @@ Note that **BadAppend** caused a buffer overrun.
173172

174173
## See also
175174

176-
[String Manipulation](../../c-runtime-library/string-manipulation-crt.md)<br/>
177-
[_mbsnbcat, _mbsnbcat_l](mbsnbcat-mbsnbcat-l.md)<br/>
178-
[strcat, wcscat, _mbscat](strcat-wcscat-mbscat.md)<br/>
179-
[strcmp, wcscmp, _mbscmp](strcmp-wcscmp-mbscmp.md)<br/>
180-
[strcpy, wcscpy, _mbscpy](strcpy-wcscpy-mbscpy.md)<br/>
181-
[strncmp, wcsncmp, _mbsncmp, _mbsncmp_l](strncmp-wcsncmp-mbsncmp-mbsncmp-l.md)<br/>
182-
[strncpy, _strncpy_l, wcsncpy, _wcsncpy_l, _mbsncpy, _mbsncpy_l](strncpy-strncpy-l-wcsncpy-wcsncpy-l-mbsncpy-mbsncpy-l.md)<br/>
183-
[_strnicmp, _wcsnicmp, _mbsnicmp, _strnicmp_l, _wcsnicmp_l, _mbsnicmp_l](strnicmp-wcsnicmp-mbsnicmp-strnicmp-l-wcsnicmp-l-mbsnicmp-l.md)<br/>
184-
[strrchr, wcsrchr, _mbsrchr, _mbsrchr_l](strrchr-wcsrchr-mbsrchr-mbsrchr-l.md)<br/>
185-
[_strset, _strset_l, _wcsset, _wcsset_l, _mbsset, _mbsset_l](strset-strset-l-wcsset-wcsset-l-mbsset-mbsset-l.md)<br/>
186-
[strspn, wcsspn, _mbsspn, _mbsspn_l](strspn-wcsspn-mbsspn-mbsspn-l.md)<br/>
187-
[Locale](../../c-runtime-library/locale.md)<br/>
188-
[Interpretation of Multibyte-Character Sequences](../../c-runtime-library/interpretation-of-multibyte-character-sequences.md)<br/>
175+
[String Manipulation](../../c-runtime-library/string-manipulation-crt.md)\
176+
[`_mbsnbcat, _mbsnbcat_l`](mbsnbcat-mbsnbcat-l.md)\
177+
[`strcat, wcscat, _mbscat`](strcat-wcscat-mbscat.md)\
178+
[`strcmp, wcscmp, _mbscmp`](strcmp-wcscmp-mbscmp.md)\
179+
[`strcpy, wcscpy, _mbscpy`](strcpy-wcscpy-mbscpy.md)\
180+
[`strncmp, wcsncmp, _mbsncmp, _mbsncmp_l`](strncmp-wcsncmp-mbsncmp-mbsncmp-l.md)\
181+
[`strncpy, _strncpy_l, wcsncpy, _wcsncpy_l, _mbsncpy, _mbsncpy_l`](strncpy-strncpy-l-wcsncpy-wcsncpy-l-mbsncpy-mbsncpy-l.md)\
182+
[`_strnicmp, _wcsnicmp, _mbsnicmp, _strnicmp_l, _wcsnicmp_l, _mbsnicmp_l`](strnicmp-wcsnicmp-mbsnicmp-strnicmp-l-wcsnicmp-l-mbsnicmp-l.md)\
183+
[`strrchr, wcsrchr, _mbsrchr, _mbsrchr_l`](strrchr-wcsrchr-mbsrchr-mbsrchr-l.md)\
184+
[`_strset, _strset_l, _wcsset, _wcsset_l, _mbsset, _mbsset_l`](strset-strset-l-wcsset-wcsset-l-mbsset-mbsset-l.md)\
185+
[`strspn, wcsspn, _mbsspn, _mbsspn_l`](strspn-wcsspn-mbsspn-mbsspn-l.md)\
186+
[Locale](../../c-runtime-library/locale.md)\
187+
[Interpretation of Multibyte-Character Sequences](../../c-runtime-library/interpretation-of-multibyte-character-sequences.md)\

0 commit comments

Comments
 (0)