[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/c/string/byte/memchr [Back]  [Original]

memchr cppreference.com
cppreference.com

memchr

cppreference.com
< c | string | byte

<metanoindex/>

<tbody> </tbody>
<string.h>
const void* memchr( const void* ptr, int ch, size_t count );
      void* memchr( void* ptr, int ch, size_t count );
ch unsigned char count ( unsigned char) , ptr.
:
Converts ch to unsigned char and locates the first occurrence of that value in the initial count characters (each interpreted as unsigned char) of the object pointed to by ptr.
Google.
. .

ptr
:
pointer to the object to be examined
Google.
. .
ch
:
character to search for
Google.
. .
count
:
number of characters to examine
Google.
. .

, NULL .
:
Pointer to the location of the character, or NULL if no such character is found.
Google.
. .

.


() []
C++ memchr

Web Proxy Viewer  |  New URL  |  Original Page