std::memchr
Da cppreference.com.
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <cstring>
|
||
const void* memchr( const void* ptr, int ch, std::size_t count ); |
||
void* memchr( void* ptr, int ch, std::size_t count ); |
||
Converte
ch
a unsigned char e individua la prima occorrenza di tale valore nei personaggi count
iniziali (ogni interpretata come unsigned char) dell'oggetto puntato da 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.
Indice |
[modifica] Parametri
ptr | - | puntatore all'oggetto da esaminare
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 | - | carattere da cercare
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 | - | numero di caratteri da esaminare
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. |
[modifica] Valore di ritorno
Puntatore alla posizione del carattere, o in mancanza di NULL tale carattere viene trovato.
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.
[modifica] Esempio
This section is incomplete Reason: no example |
[modifica] Vedi anche
trova la prima occorrenza di un carattere 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. (funzione) | |
(C++11) |
trova il primo elemento che soddisfi i criteri specifici 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. (funzione di modello) |
C documentation for memchr
|