std::strstr
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 char *strstr( const char *dest, const char *src ); |
||
char *strstr( char *dest, const char *src ); |
||
Trova la prima occorrenza del
src
stringa di byte nella stringa di byte puntato da dest
. Original:
Finds the first occurrence of the byte string
src
in the byte string pointed to by dest
. 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
dest | - | puntatore alla stringa con terminazione null byte da esaminare
Original: pointer to the null-terminated byte string to examine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
src | - | puntatore alla stringa con terminazione null byte da ricercare
Original: pointer to the null-terminated byte string 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. |
[modifica] Valore di ritorno
Puntatore al primo carattere della sottostringa trovato in
dest
, o NULL se tale carattere non è stato trovato. Se src
punta a una stringa vuota, viene restituito dest
.Original:
Pointer to the first character of the found substring in
dest
, or NULL if no such character is found. If src
points to an empty string, dest
is returned.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) | |
trova l'ultima occorrenza di un carattere Original: finds the last 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 documentation for strstr
|