wcpncpy(3) Library Functions Manual wcpncpy(3) NOM wcpncpy - Copier une chaine de caracteres larges et indiquer sa fin BIBLIOTHEQUE Bibliotheque C standard (libc, -lc) SYNOPSIS #include wchar_t *wcpncpy(wchar_t dest[restrict .n], const wchar_t src[restrict .n], size_t n); Exigences de macros de test de fonctionnalites pour la glibc (consulter feature_test_macros(7)) : wcpncpy() : Depuis la glibc 2.10 : _POSIX_C_SOURCE >= 200809L Avant la glibc 2.10 : _GNU_SOURCE DESCRIPTION The wcpncpy() function is the wide-character equivalent of the stpncpy(3) function. It copies at most n wide characters from the wide-character string pointed to by src, including the terminating null wide (L'\0'), to the array pointed to by dest. Exactly n wide characters are written at dest. If the length wcslen(src) is smaller than n, the remaining wide characters in the array pointed to by dest are filled with L'\0' characters. If the length wcslen(src) is greater than or equal to n, the string pointed to by dest will not be L'\0' terminated. Les chaines ne doivent pas se chevaucher. Le programmeur doit s'assurer qu'il y a assez de place pour au moins n caracteres larges dans dest. VALEUR RENVOYEE wcpncpy() renvoie un pointeur sur le dernier caractere ecrit, c'est-a-dire dest+n-1. ATTRIBUTS Pour une explication des termes utilises dans cette section, consulter attributes(7). +---------------------------------+--------------------------+---------+ |Interface | Attribut | Valeur | +---------------------------------+--------------------------+---------+ |wcpncpy() | Securite des threads | MT-Safe | +---------------------------------+--------------------------+---------+ STANDARDS POSIX.1-2008. VOIR AUSSI stpncpy(3), wcsncpy(3) TRADUCTION La traduction francaise de cette page de manuel a ete creee par Christophe Blaess , Stephan Rafin , Thierry Vignaud , Francois Micaux, Alain Portal , Jean-Philippe Guerard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas Francois , Florentin Duneau , Simon Paillard , Denis Barbier , David Prevot , Jean-Baptiste Holcroft et Gregoire Scano Cette traduction est une documentation libre ; veuillez vous reporter a la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITE LEGALE. Si vous decouvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message a . Pages du manuel de Linux 6.9.1 15 juin 2024 wcpncpy(3)