Skip to content

Commit 3eed57c

Browse files
author
Colin Robertson
authored
Update memchr-wmemchr.md
- Fix some formatting and a typo unrelated to the previous fix. - Update date field.
1 parent 83b24a3 commit 3eed57c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/c-runtime-library/reference/memchr-wmemchr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "memchr, wmemchr"
3-
ms.date: "11/04/2016"
3+
ms.date: "03/31/2019"
44
apiname: ["wmemchr", "memchr"]
55
apilocation: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "ntoskrnl.exe"]
66
apitype: "DLLExport"
@@ -66,7 +66,7 @@ If successful, returns a pointer to the first location of *c* in *buffer*. Other
6666

6767
`memchr` and `wmemchr` look for the first occurrence of *c* in the first *count* characters of *buffer*. It stops when it finds *c* or when it has checked the first *count* characters.
6868

69-
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.
69+
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 in C++, define the symbol \_CONST\_RETURN.
7070

7171
## Requirements
7272

0 commit comments

Comments
 (0)