◐ Shell
clean mode source ↗

std::strrchr - cppreference.com

De cppreference.com

Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.

La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí.

Definido en el archivo de encabezado <cstring>

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

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

Busca la última aparición de la ch carácter de la cadena byte apuntado por 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.

Parámetros

str -

puntero a la cadena de bytes de terminación nula a analizar

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 -

carácter que desea buscar

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.

Valor de retorno

Puntero al personaje se encuentra en str o NULL si no se encuentra dicho carácter .

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.

Ejemplo

Ver también