.\" -*- coding: UTF-8 -*- .\" Copyright (c) Bruno Haible .\" .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA) .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" %%%LICENSE_END .\" .\" 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 "6 Marzo 2019" GNU "Manual del Programador de Linux" .SH NOMBRE stpncpy \- copia una cadena de tamaño fijo, devolviendo un puntero a su final .SH SINOPSIS .nf \fB#include \fP .PP \fBchar *stpncpy(char *\fP\fIdest\fP\fB, const char *\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(): .PD 0 .ad l .RS 4 .TP 4 Desde glibc 2.10: _POSIX_C_SOURCE\ >=\ 200809L .TP Antes de glibc 2.10: _GNU_SOURCE .RE .ad .PD .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). .TS allbox; lb lb lb l l l. Interfaz Atributo Valor T{ \fBstpncpy\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .SH "CONFORME A" 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) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. 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/. .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Juan Piernas . 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. 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 .