.\" -*- coding: UTF-8 -*- .\" Copyright (c) Bruno Haible .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" .\" References consulted: .\" GNU glibc-2 source code and manual .\" .\" Corrected, aeb, 990824 .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH STPNCPY 3 "9 Octubre 2022" "Páginas de manual de Linux 6.01" .SH NOMBRE stpncpy \- copia una cadena de tamaño fijo, devolviendo un puntero a su final .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBchar *stpncpy(char *restrict \fP\fIdest\fP\fB, const char *restrict \fP\fIsrc\fP\fB, size_t \fP\fIn\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 \fBstpncpy\fP(): .nf Since glibc 2.10: _POSIX_C_SOURCE >= 200809L Before glibc 2.10: _GNU_SOURCE .fi .SH DESCRIPCIÓN The \fBstpncpy\fP() function copies at most \fIn\fP characters from the string pointed to by \fIsrc\fP, including the terminating null byte (\(aq\e0\(aq), to the array pointed to by \fIdest\fP. Exactly \fIn\fP characters are written at \fIdest\fP. If the length \fIstrlen(src)\fP is smaller than \fIn\fP, the remaining characters in the array pointed to by \fIdest\fP are filled with null bytes (\(aq\e0\(aq), If the length \fIstrlen(src)\fP is greater than or equal to \fIn\fP, the string pointed to by \fIdest\fP will not be null\-terminated. .PP Las cadenas no deberían solaparse. .PP El programador debe garantizar que haya espacio para, al menos, \fIn\fP caracteres en \fIdest\fP. .SH "VALOR DEVUELTO" \fBstpncpy\fP() returns a pointer to the terminating null byte in \fIdest\fP, or, if \fIdest\fP is not null\-terminated, \fIdest\fP+\fIn\fP. .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{ \fBstpncpy\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 a GNU extension. It first appeared in version 1.07 of the GNU C library in 1993. .SH "VÉASE TAMBIÉN" \fBstrncpy\fP(3), \fBwcpncpy\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Juan Piernas . .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 .