Espacios de nombres
Variantes
Acciones

std::strncat

De cppreference.com
< cpp‎ | string‎ | byte
 
 
 
 
Definido en el archivo de encabezado <cstring>
char*strncat(char*dest, constchar*src, size_t count );
Anexa una cadena de bytes que apunta a una cadena src byte apuntado por dest. En la mayoría de los personajes count se copian. La cadena de bytes resultante es terminada en nulo. Si las cadenas se superponen, el comportamiento no está definido .
Original:
Appends a byte string pointed to by src to a byte string pointed to by dest. At most count characters are copied. The resulting byte string is null-terminated. 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.

Contenido

[editar]Parámetros

dest -
puntero a la cadena de bytes terminada en cero para anexar
Original:
pointer to the null-terminated byte string to append to
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 terminada en null byte a copiar
Original:
pointer to the null-terminated byte string to copy from
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
count -
número máximo de caracteres a copiar
Original:
maximum number of characters to copy
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar]Valor de retorno

dest

[editar]Ejemplo

[editar]Ver también

Concatena dos cadenas
(función)[editar]
Copia una cadena a otra
(función)[editar]
Documentación de C para strncat
close