std::memchr
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <cstring>
|
||
| const void* memchr( const void* ptr, int ch, std::size_t count ); |
||
| void* memchr( void* ptr, int ch, std::size_t count ); |
||
。
ch,并找到该值在第一次出现的的初始unsigned char字符(每个解释为count)的对象所指向的unsigned char转换ptr. Original:
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. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 。参数。
| ptr | - | 。要检查的对象的指针。
Original: pointer to the object to be examined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| ch | - | 。搜索字符。
Original: character to search for The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| count | - | 。检查的字符数。
Original: number of characters to examine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
===。 返回值。===
。如果没有这样的字符的指针的位置的字符,或NULL发现.
Original:
Pointer to the location of the character, or NULL if no such character is found.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 。为例。
| 本节是不完整的 原因: no example |
[编辑] 。另请参阅。
| 找到第一个出现的字符 Original: finds the first occurrence of a character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
| (C++11) |
找到的第一个元素,满足特定的标准 Original: finds the first element satisfying specific criteria The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) |
| C documentation for memchr
| |