◐ Shell
clean mode source ↗

std::strrchr - cppreference.com

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.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Elemento definito nell'header

<cstring>

const char *strrchr( const char *str, int ch );

  char *strrchr( char *str, int ch );

Trova l'ultima occorrenza del ch carattere nella stringa di byte puntato da str.

Original:

Finds the last occurrence of the character ch in the byte string pointed to by str.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parametri

str -

puntatore alla stringa con terminazione null byte da analizzare

Original:

pointer to the null-terminated byte string to be analyzed

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.

Valore di ritorno

Puntatore al carattere trovato in str, o in mancanza di NULL tale carattere viene trovato.

Original:

Pointer to the found character in str, 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.

Esempio

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) [modifica]

trova la prima posizione di carattere in una stringa, in un'altra stringa

Original:

finds the first location of any character in one string, in another string

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(funzione) [modifica]

C documentation for strrchr