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
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/memchr-wmemchr.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -67,20 +67,20 @@ Number of characters to check.
67
67
68
68
## Return Value
69
69
70
-
If successful, returns a pointer to the first location of *c* in *buffer*. Otherwise it returns **NULL**.
70
+
If successful, returns a pointer to the first location of *c* in *buffer*. Otherwise it returns NULL.
71
71
72
72
## Remarks
73
73
74
-
**memchr** and **wmemchr** look for the first occurrence of *c* in the first *count* bytes of *buffer*. It stops when it finds *c* or when it has checked the first *count* bytes.
74
+
`memchr` and `wmemchr` look for the first occurrence of *c* in the first *count* bytes of *buffer*. It stops when it finds *c* or when it has checked the first *count* bytes.
75
75
76
-
In C, these functions take a **const** pointer for the first argument. In C++, two overloads are available. The overload taking a pointer to **const** returns a pointer to **const**; the version that takes a pointer to non-**const** returns a pointer to non-**const**. The macro _CRT_CONST_CORRECT_OVERLOADS is defined if both the **const** and non-**const** versions of these functions are available. If you require the non-**const** behavior for both C++ overloadsin C++, define the symbol _CONST_RETURN.
76
+
In C, these functions take a **const** pointer for the first argument. In C++, two overloads are available. The overload taking a pointer to **const** returns a pointer to **const**; the version that takes a pointer to non-**const** returns a pointer to non-**const**. The macro _CRT_CONST_CORRECT_OVERLOADS is defined if both the **const** and non-**const** versions of these functions are available. If you require the non-**const** behavior for both C++ overloadsin C++, define the symbol _CONST_RETURN.
77
77
78
78
## Requirements
79
79
80
80
|Routine|Required header|
81
81
|-------------|---------------------|
82
-
|**memchr**|\<memory.h> or \<string.h>|
83
-
|**wmemchr**|\<wchar.h>|
82
+
|`memchr`|\<memory.h> or \<string.h>|
83
+
|`wmemchr`|\<wchar.h>|
84
84
85
85
For more information about compatibility, see [Compatibility](../../c-runtime-library/compatibility.md).
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/strchr-wcschr-mbschr-mbschr-l.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ ms.workload: ["cplusplus"]
19
19
Finds a character in a string, by using the current locale or a specified LC_CTYPE conversion-state category.
20
20
21
21
> [!IMPORTANT]
22
-
> **_mbschr** and **_mbschr_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).
22
+
> `_mbschr` and `_mbschr_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).
23
23
24
24
## Syntax
25
25
@@ -90,32 +90,32 @@ Locale to use.
90
90
91
91
## Return Value
92
92
93
-
Each of these functions returns a pointer to the first occurrence of *c* in *str*, or **NULL** if *c* is not found.
93
+
Each of these functions returns a pointer to the first occurrence of *c* in *str*, or NULL if *c* is not found.
94
94
95
95
## Remarks
96
96
97
-
The **strchr** function finds the first occurrence of *c* in *str*, or it returns **NULL** if *c* is not found. The null terminating character is included in the search.
97
+
The `strchr` function finds the first occurrence of *c* in *str*, or it returns NULL if *c* is not found. The null terminating character is included in the search.
98
98
99
-
**wcschr**, **_mbschr** and **_mbschr_l** are wide-character and multibyte-character versions of **strchr**. The arguments and return value of **wcschr** are wide-character strings; those of **_mbschr** are multibyte-character strings. **_mbschr** recognizes multibyte-character sequences. Also, if the string is a null pointer, **_mbschr** invokes the invalid parameter handler, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, **_mbschr** returns **NULL** and sets **errno** to **EINVAL**. **strchr** and **wcschr** do not validate their parameters. These three functions behave identically otherwise.
99
+
`wcschr`, `_mbschr` and `_mbschr_l` are wide-character and multibyte-character versions of `strchr`. The arguments and return value of `wcschr` are wide-character strings; those of `_mbschr` are multibyte-character strings. `_mbschr` recognizes multibyte-character sequences. Also, if the string is a null pointer, `_mbschr` invokes the invalid parameter handler, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, `_mbschr` returns NULL and sets `errno` to EINVAL. `strchr` and `wcschr` do not validate their parameters. These three functions behave identically otherwise.
100
100
101
-
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](../../c-runtime-library/locale.md).
101
+
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](../../c-runtime-library/locale.md).
102
102
103
-
In C, these functions take a **const** pointer for the first argument. In C++, two overloads are available. The overload taking a pointer to **const** returns a pointer to **const**; the version that takes a pointer to non-**const** returns a pointer to non-**const**. The macro **_CRT_CONST_CORRECT_OVERLOADS** is defined if both the **const** and non-**const** versions of these functions are available. If you require the non-**const** behavior for both C++ overloads, define the symbol **_CONST_RETURN**.
103
+
In C, these functions take a **const** pointer for the first argument. In C++, two overloads are available. The overload taking a pointer to **const** returns a pointer to **const**; the version that takes a pointer to non-**const** returns a pointer to non-**const**. The macro _CRT_CONST_CORRECT_OVERLOADS is defined if both the **const** and non-**const** versions of these functions are available. If you require the non-**const** behavior for both C++ overloads, define the symbol _CONST_RETURN.
104
104
105
105
### Generic-Text Routine Mappings
106
106
107
107
|TCHAR.H routine|_UNICODE & _MBCS not defined|_MBCS defined|_UNICODE defined|
Copy file name to clipboardExpand all lines: docs/c-runtime-library/reference/strpbrk-wcspbrk-mbspbrk-mbspbrk-l.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ ms.workload: ["cplusplus"]
20
20
Scans strings for characters in specified character sets.
21
21
22
22
> [!IMPORTANT]
23
-
> **_mbspbrk** and **_mbspbrk_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).
23
+
> `_mbspbrk` and `_mbspbrk_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).
24
24
25
25
## Syntax
26
26
@@ -91,36 +91,36 @@ Locale to use.
91
91
92
92
## Return Value
93
93
94
-
Returns a pointer to the first occurrence of any character from *strCharSet* in *str*, or a **NULL** pointer if the two string arguments have no characters in common.
94
+
Returns a pointer to the first occurrence of any character from *strCharSet* in *str*, or a NULL pointer if the two string arguments have no characters in common.
95
95
96
96
## Remarks
97
97
98
-
The **strpbrk** function returns a pointer to the first occurrence of a character in *str* that belongs to the set of characters in *strCharSet*. The search does not include the terminating null character.
98
+
The `strpbrk` function returns a pointer to the first occurrence of a character in *str* that belongs to the set of characters in *strCharSet*. The search does not include the terminating null character.
99
99
100
-
**wcspbrk** and **_mbspbrk** are wide-character and multibyte-character versions of **strpbrk**. The arguments and return value of **wcspbrk** are wide-character strings; those of **_mbspbrk** are multibyte-character strings.
100
+
`wcspbrk` and `_mbspbrk` are wide-character and multibyte-character versions of `strpbrk`. The arguments and return value of `wcspbrk` are wide-character strings; those of `_mbspbrk` are multibyte-character strings.
101
101
102
-
**_mbspbrk** validates its parameters. If *str* or *strCharSet* is **NULL**, the invalid parameter handler is invoked, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, **_mbspbrk** returns **NULL** and sets **errno** to **EINVAL**. **strpbrk** and **wcspbrk** do not validate their parameters. These three functions behave identically otherwise.
102
+
`_mbspbrk` validates its parameters. If *str* or *strCharSet* is NULL, the invalid parameter handler is invoked, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, `_mbspbrk` returns NULL and sets `errno` to EINVAL. `strpbrk` and `wcspbrk` do not validate their parameters. These three functions behave identically otherwise.
103
103
104
-
**_mbspbrk** is similar to **_mbscspn** except that **_mbspbrk** returns a pointer rather than a value of type [size_t](../../c-runtime-library/standard-types.md).
104
+
`_mbspbrk` is similar to `_mbscspn` except that `_mbspbrk` returns a pointer rather than a value of type [size_t](../../c-runtime-library/standard-types.md).
105
105
106
-
In C, these functions take a **const** pointer for the first argument. In C++, two overloads are available. The overload taking a pointer to **const** returns a pointer to **const**; the version that takes a pointer to non-**const** returns a pointer to non-**const**. The macro **_CRT_CONST_CORRECT_OVERLOADS** is defined if both the **const** and non-**const** versions of these functions are available. If you require the non-**const** behavior for both C++ overloads, define the symbol **_CONST_RETURN**.
106
+
In C, these functions take a **const** pointer for the first argument. In C++, two overloads are available. The overload taking a pointer to **const** returns a pointer to **const**; the version that takes a pointer to non-**const** returns a pointer to non-**const**. The macro _CRT_CONST_CORRECT_OVERLOADS is defined if both the **const** and non-**const** versions of these functions are available. If you require the non-**const** behavior for both C++ overloads, define the symbol _CONST_RETURN.
107
107
108
-
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 version with the **_l** suffix is identical except that it uses the locale parameter passed in instead. For more information, see [Locale](../../c-runtime-library/locale.md).
108
+
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 version with the **_l** suffix is identical except that it uses the locale parameter passed in instead. For more information, see [Locale](../../c-runtime-library/locale.md).
109
109
110
110
### Generic-Text Routine Mappings
111
111
112
112
|TCHAR.H routine|_UNICODE & _MBCS not defined|_MBCS defined|_UNICODE defined|
0 commit comments