You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Determines file read/write permissions. These functions are versions of [`_access`, `_waccess`](access-waccess.md) with security enhancements as described in [Security features in the CRT](../security-features-in-the-crt.md).
16
15
16
+
For `taccess_s`, see [Generic-text routine mappings](#generic-text-routine-mappings).
17
+
17
18
## Syntax
18
19
19
20
```C
@@ -68,16 +69,18 @@ By default, this function's global state is scoped to the application. To change
68
69
69
70
### Generic-text routine mappings
70
71
71
-
| Tchar.h routine |`_UNICODE` and `_MBCS` not defined |`_MBCS` defined |`_UNICODE` defined |
72
+
The function in the `tchar.h` column maps to the function in the other columns depending on the character set that is defined at compile time.
73
+
74
+
|`tchar.h` function |`_UNICODE` and `_MBCS` not defined |`_MBCS` defined |`_UNICODE` defined |
Creates, modifies, or removes environment variables. These functions are versions of [`_putenv`, `_wputenv`](putenv-wputenv.md) that have security enhancements, as described in [Security features in the CRT](../security-features-in-the-crt.md).
15
15
16
16
> [!IMPORTANT]
17
17
> 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).
18
18
19
+
For `_tputenv_s`, see [Generic-text routine mappings](#generic-text-routine-mappings).
20
+
19
21
## Syntax
20
22
21
23
```C
@@ -58,9 +60,11 @@ By default, this function's global state is scoped to the application. To change
58
60
59
61
### Generic-text routine mappings
60
62
61
-
|`TCHAR.H` routine |`_UNICODE` and `_MBCS` not defined |`_MBCS` defined |`_UNICODE` defined |
63
+
The function in the `tchar.h` column maps to the function in the other columns depending on the character set that is defined at compile time.
64
+
65
+
|`tchar.h` function |`_UNICODE` and `_MBCS` not defined |`_MBCS` defined |`_UNICODE` defined |
*`varname`* is the name of the environment variable to be added or modified and *`value_string`* is the variable's value. If *`varname`* is already part of the environment, its value is replaced by *`value_string`*; otherwise, the new *`varname`* variable and its *`value_string`* are added to the environment. You can remove a variable from the environment by specifying an empty string (that is, `""`) for *`value_string`*.
Copies characters of one string to another. These versions of [`strncpy`, `_strncpy_l`, `wcsncpy`, `_wcsncpy_l`, `_mbsncpy`, `_mbsncpy_l`](strncpy-strncpy-l-wcsncpy-wcsncpy-l-mbsncpy-mbsncpy-l.md) have security enhancements, as described in [Security features in the CRT](../security-features-in-the-crt.md).
16
15
17
16
> [!IMPORTANT]
18
17
> **`_mbsncpy_s`** and **`_mbsncpy_s_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).
19
18
19
+
For `_tcsnccpy_s` and `_tcsnccpy_s_l`, see [Generic-text routine mappings](#generic-text-routine-mappings).
20
+
20
21
## Syntax
21
22
22
23
```C
@@ -170,10 +171,14 @@ By default, this function's global state is scoped to the application. To change
170
171
171
172
### Generic-text routine mappings
172
173
173
-
|`TCHAR.H` routine |`_UNICODE` and `_MBCS` not defined |`_MBCS` defined |`_UNICODE` defined |
174
+
The function in the `tchar.h` column maps to the function in the other columns depending on the character set that is defined at compile time.
175
+
176
+
|`tchar.h` routine |`_UNICODE` and `_MBCS` not defined |`_MBCS` defined |`_UNICODE` defined |
> **`_strncpy_s_l`**, **`_wcsncpy_s_l`** and **`_mbsncpy_s_l`** have no locale dependence. They're provided just for `_tcsncpy_s_l` and aren't intended to be called directly.
Initializes characters of a string to a given character. These versions of [`_strnset`, `_strnset_l`, `_wcsnset`, `_wcsnset_l`, `_mbsnset`, `_mbsnset_l`](strnset-strnset-l-wcsnset-wcsnset-l-mbsnset-mbsnset-l.md) have security enhancements, as described in [Security features in the CRT](../security-features-in-the-crt.md).
16
15
17
16
> [!IMPORTANT]
18
17
> **`_mbsnset_s`** and **`_mbsnset_s_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).
19
18
19
+
For `_tcsncset_s` and `_tcsncset_s_l`, see [Generic-text routine mappings](#generic-text-routine-mappings).
20
+
20
21
## Syntax
21
22
22
23
```C
@@ -92,26 +93,30 @@ These functions set, at most, the first *`count`* characters of *`str`* to *`c`*
92
93
93
94
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). 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](../locale.md).
94
95
95
-
The debug library versions of these functions first fill the buffer with 0xFE. To disable this behavior, use [`_CrtSetDebugFillThreshold`](crtsetdebugfillthreshold.md).
96
+
The debug library versions of these functions first fill the buffer with `0xFE`. To disable this behavior, use [`_CrtSetDebugFillThreshold`](crtsetdebugfillthreshold.md).
96
97
97
98
By default, this function's global state is scoped to the application. To change this behavior, see [Global state in the CRT](../global-state.md).
98
99
99
100
### Generic-text routine mappings
100
101
101
-
| TCHAR.H routine |`_UNICODE` and `_MBCS` not defined |`_MBCS` defined |`_UNICODE` defined |
102
+
The function in the `tchar.h` column maps to the function in the other columns depending on the character set that is defined at compile time.
103
+
104
+
|`tchar.h` function |`_UNICODE` and `_MBCS` not defined |`_MBCS` defined |`_UNICODE` defined |
0 commit comments