std::memchr - cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
| Definido no cabeçalho <cstring> |
||
|
|
||
|
|
||
Converte ch para unsigned char e localiza a primeira ocorrência desse valor nos personagens count iniciais (cada interpretado como unsigned char) do objeto apontado por 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.
Parâmetros
| ptr | - | ponteiro para o objeto a ser examinado Original: pointer to the object to be examined The text has been machine-translated via Google Translate. |
| ch | - | caracteres para pesquisa Original: character to search for The text has been machine-translated via Google Translate. |
| count | - | número de caracteres para examinar Original: number of characters to examine The text has been machine-translated via Google Translate. |
Valor de retorno
Ponteiro para a localização do personagem, ou NULL se nenhum desses personagens é encontrada.
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.
Exemplo
Veja também
encontra a primeira ocorrência de um caractere Original: finds the first occurrence of a character The text has been machine-translated via Google Translate. (função) [edit] | |
(C++11) |
encontra o primeiro elemento satisfazer critérios específicos Original: finds the first element satisfying specific criteria The text has been machine-translated via Google Translate. (modelo de função) [edit] |
Documentação C para memchr | |