.\" -*- coding: UTF-8 -*- .\" Copyright 1995 James R. Van Zandt .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH STPCPY 3 "9 Octubre 2022" "Páginas de manual de Linux 6.01" .SH NOMBRE stpcpy \- copia una cadena devolviendo un apuntador a su final .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBchar *stpcpy(char *restrict \fP\fIdest\fP\fB, const char *restrict \fP\fIsrc\fP\fB);\fP .fi .PP .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .PP \fBstpcpy\fP(): .nf Since glibc 2.10: _POSIX_C_SOURCE >= 200809L Before glibc 2.10: _GNU_SOURCE .fi .SH DESCRIPCIÓN The \fBstpcpy\fP() function copies the string pointed to by \fIsrc\fP (including the terminating null byte (\(aq\e0\(aq)) to the array pointed to by \fIdest\fP. The strings may not overlap, and the destination string \fIdest\fP must be large enough to receive the copy. .SH "VALOR DEVUELTO" \fBstpcpy\fP() returns a pointer to the \fBend\fP of the string \fIdest\fP (that is, the address of the terminating null byte) rather than the beginning. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .ad l .nh .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ \fBstpcpy\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .hy .ad .sp 1 .SH ESTÁNDARES This function was added to POSIX.1\-2008. Before that, it was not part of the C or POSIX.1 standards, nor customary on UNIX systems. It first appeared at least as early as 1986, in the Lattice C AmigaDOS compiler, then in the GNU fileutils and GNU textutils in 1989, and in the GNU C library by 1992. It is also present on the BSDs. .SH ERRORES This function may overrun the buffer \fIdest\fP. .SH EJEMPLOS Por ejemplo, este programa usa \fBstpcpy\fP() para concatenar \fBfoo\fP y \fBbar\fP para prodcir \fBfoobar\fP, que entonces se imprime. .PP .\" SRC BEGIN (stpcpy.c) .EX #define _GNU_SOURCE #include #include int main(void) { char buffer[20]; char *to = buffer; to = stpcpy(to, "foo"); to = stpcpy(to, "bar"); printf("%s\en", buffer); } .EE .\" SRC END .SH "VÉASE TAMBIÉN" \fBbcopy\fP(3), \fBmemccpy\fP(3), \fBmemcpy\fP(3), \fBmemmove\fP(3), \fBstpncpy\fP(3), \fBstrcpy\fP(3), \fBstring\fP(3), \fBwcpcpy\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .