.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (c) Bruno Haible .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" .\" References consulted: .\" GNU glibc-2 source code and manual .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH wcpncpy 3 "15 juin 2024" "Pages du manuel de Linux 6.9.1" .SH NOM wcpncpy \- Copier une chaîne de caractères larges et indiquer sa fin .SH BIBLIOTHÈQUE Bibliothèque C standard (\fIlibc\fP, \fI\-lc\fP) .SH SYNOPSIS .nf \fB#include \fP .P \fBwchar_t *wcpncpy(wchar_t \fP\fIdest\fP\fB[restrict .\fP\fIn\fP\fB],\fP \fB const wchar_t \fP\fIsrc\fP\fB[restrict .\fP\fIn\fP\fB],\fP \fB size_t \fP\fIn\fP\fB);\fP .fi .P .RS -4 Exigences de macros de test de fonctionnalités pour la glibc (consulter \fBfeature_test_macros\fP(7)) : .RE .P \fBwcpncpy\fP() : .nf Depuis la glibc 2.10 : _POSIX_C_SOURCE >= 200809L Avant la glibc 2.10 : _GNU_SOURCE .fi .SH DESCRIPTION The \fBwcpncpy\fP() function is the wide\-character equivalent of the \fBstpncpy\fP(3) function. It copies at most \fIn\fP wide characters from the wide\-character string pointed to by \fIsrc\fP, including the terminating null wide (L\[aq]\[rs]0\[aq]), to the array pointed to by \fIdest\fP. Exactly \fIn\fP wide characters are written at \fIdest\fP. If the length \fIwcslen(src)\fP is smaller than \fIn\fP, the remaining wide characters in the array pointed to by \fIdest\fP are filled with L\[aq]\[rs]0\[aq] characters. If the length \fIwcslen(src)\fP is greater than or equal to \fIn\fP, the string pointed to by \fIdest\fP will not be L\[aq]\[rs]0\[aq] terminated. .P Les chaînes ne doivent pas se chevaucher. .P Le programmeur doit s'assurer qu'il y a assez de place pour au moins \fIn\fP caractères larges dans \fIdest\fP. .SH "VALEUR RENVOYÉE" \fBwcpncpy\fP() renvoie un pointeur sur le dernier caractère écrit, c'est\-à\-dire \fIdest\fP+\fIn\fP\-1. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Attribut Valeur T{ .na .nh \fBwcpncpy\fP() T} Sécurité des threads MT\-Safe .TE .SH STANDARDS POSIX.1\-2008. .SH "VOIR AUSSI" \fBstpncpy\fP(3), \fBwcsncpy\fP(3) .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot , Jean-Baptiste Holcroft et Grégoire Scano . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .