std::strcspn
De cppreference.com
[] |
Esta pgina se ha traducido por ordenador/computador/computadora de la versin en ingls de la Wiki usando Google Translate.
La traduccin puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versin original. Puedes ayudar a corregir los errores y mejorar la traduccin. Para instrucciones haz clic aqu. |
| Definido en el archivo de encabezado <cstring>
|
||
size_t strcspn( const char *dest, const char *src );
|
||
Devuelve la longitud del segmento inicial mxima de la cadena de bytes que apunta
dest, que consta de slo los caracteres no se encuentra en cadena byte apuntado por src .Original:
Returns the length of the maximum initial segment of the byte string pointed to by
dest, that consists of only the characters not found in byte string pointed to by src.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.
Parmetros
| dest | - | puntero a la cadena de bytes de terminacin 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. |
| src | - | puntero a la cadena de bytes terminada en cero que contiene los caracteres que desea buscar
Original: pointer to the null-terminated byte string that contains the characters 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
La longitud del segmento inicial mximo que slo contiene caracteres que no se encuentran en la cadena de bytes indicada por
srcOriginal:
The length of the maximum initial segment that contains only characters not found in the byte string pointed to by
srcThe 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.
Ejemplo
| Esta seccin est incompleta Razn: sin ejemplo |
Ver tambin
| Devuelve la longitud del segmento inicial mximo que consiste de slo los caracteres que se encuentran en otra cadena de bytes (funcin) | |
| Encuentra la primera ubicacin de cualquier carcter en una cadena, en otra cadena (funcin) | |
Documentacin de C para strcspn
| |