◐ Shell
clean mode source ↗

std::strcspn - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Definido no cabeçalho

<cstring>

size_t strcspn( const char *dest, const char *src );

Retorna o comprimento do segmento inicial máximo da seqüência de byte apontado pelo dest, que consiste apenas os caracteres não encontrado em cadeia de bytes apontado 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.

Parâmetros

dest -

ponteiro para o byte string terminada em nulo para ser analisado

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 -

ponteiro para o byte string NULL-Terminated que contém os caracteres a procurar

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

O comprimento do segmento inicial máximo que contém somente caracteres não encontrados na seqüência de byte apontado pelo src

Original:

The length of the maximum initial segment that contains only characters not found in the 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.

Exemplo

Veja também

retorna o comprimento máximo do segmento inicial que consiste de
apenas os caracteres encontrado em outra cadeia de byte

Original:

returns the length of the maximum initial segment that consists
of only the characters found in another byte string

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


(função) [edit]

encontra o primeiro local de qualquer caractere em um string, em outra seqüência

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.


(função) [edit]

Documentação C para strcspn