Provided by: manpages-es-dev_4.13-4_all bug

NOMBRE

       stpcpy - copia una cadena devolviendo un apuntador a su final

SINOPSIS

       #include <string.h>

       char *stpcpy(char *dest, const char *src);

   Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

       stpcpy():
           Desde glibc 2.10:
               _POSIX_C_SOURCE >= 200809L
           Antes de glibc 2.10:
               _GNU_SOURCE

DESCRIPCIÓN

       The  stpcpy()   function copies the string pointed to by src (including the terminating null byte ('\0'))
       to the array pointed to by dest.  The strings may not overlap, and the destination string  dest  must  be
       large enough to receive the copy.

VALOR DEVUELTO

       stpcpy()   returns  a pointer to the end of the string dest (that is, the address of the terminating null
       byte)  rather than the beginning.

ATRIBUTOS

       Para obtener una explicación de los términos usados en esta sección, véase attributes(7).
       ┌──────────┬────────────────────┬───────────────────┐
       │ InterfazAtributoValor             │
       ├──────────┼────────────────────┼───────────────────┤
       │ stpcpy() │ Seguridad del hilo │ Multi-hilo seguro │
       └──────────┴────────────────────┴───────────────────┘

CONFORME A

       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.

ERRORES

       This function may overrun the buffer dest.

EJEMPLOS

       Por ejemplo, este programa usa stpcpy() para concatenar foo y bar para prodcir foobar,  que  entonces  se
       imprime.

       #define _GNU_SOURCE
       #include <string.h>
       #include <stdio.h>

       int
       main(void)
       {
           char buffer[20];
           char *to = buffer;

           to = stpcpy(to, "foo");
           to = stpcpy(to, "bar");
           printf("%s\n", buffer);
       }

VÉASE TAMBIÉN

       bcopy(3), memccpy(3), memcpy(3), memmove(3), stpncpy(3), strcpy(3), string(3), wcpcpy(3)

COLOFÓN

       Esta página es parte de la versión 5.10 del proyecto Linux man-pages. Puede encontrar una descripción del
       proyecto,   información   sobre   cómo   informar   errores  y  la  última  versión  de  esta  página  en
       https://www.kernel.org/doc/man-pages/.

TRADUCCIÓN

       La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars <mpi79470@alu.um.es>

       Esta traducción es documentación libre;  lea  la  GNU General Public License Version 3  o  posterior  con
       respecto a las condiciones de copyright.  No existe NINGUNA RESPONSABILIDAD.

       Si  encuentra  algún  error  en  la  traducción  de esta página del manual, envíe un correo electrónico a
       debian-l10n-spanish@lists.debian.org.

GNU                                               9 Junio 2020                                         STPCPY(3)