std::strcpy - cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
| Definido no cabeçalho <cstring> |
||
|
|
||
Copia a seqüência de byte apontado por src a cadeia de bytes, apontado pelo dest.
Original:
Copies the byte string pointed to by src to 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.
Se as cordas se sobrepõem, o comportamento é indefinido.
Original:
If the strings overlap, the behavior is undefined.
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 para copiar Original: pointer to the byte string to copy to The text has been machine-translated via Google Translate. |
| src | - | ponteiro para o byte string terminada em nulo para copiar Original: pointer to the null-terminated byte string to copy from The text has been machine-translated via Google Translate. |
Valor de retorno
dest
Exemplo
Veja também
copia uma certa quantidade de caracteres a partir de uma corda para outra Original: copies a certain amount of characters from one string to another The text has been machine-translated via Google Translate. (função) [edit] | |
copia um buffer para outro Original: copies one buffer to another The text has been machine-translated via Google Translate. (função) [edit] | |
Documentação C para strcpy | |