.\" -*- coding: UTF-8 -*- '\" t .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH wcpncpy 3 "11 июля 2025 г." "Справочные страницы Linux 6.15" .SH НАИМЕНОВАНИЕ wcpncpy \- копирует широкосимвольную строку фиксированной длины и возвращает указатель на её конец .SH БИБЛИОТЕКА Стандартная библиотека языка C (\fIlibc\fP,\ \fI\-lc\fP) .SH ОБЗОР .nf \fB#include \fP .P \fBwchar_t *wcpncpy(\fPsize_t n; \fB wchar_t \fP\fIdest\fP\fB[restrict \fP\fIn\fP\fB],\fP \fB const wchar_t *restrict \fP\fIsrc\fP\fB,\fP \fB size_t \fP\fIn\fP\fB);\fP .fi .P .RS -4 Требования макроса тестирования свойств для glibc (см. \fBfeature_test_macros\fP(7)): .RE .P \fBwcpncpy\fP(): .nf Начиная с glibc 2.10: _POSIX_C_SOURCE >= 200809L До glibc 2.10: _BSD_SOURCE .fi .SH ОПИСАНИЕ 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 Строки не должны пересекаться. .P Программист должен проверить, что в \fIdest\fP есть место по крайней мере для \fIn\fP широких символов. .SH "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" \fBwcpncpy\fP() returns a pointer to one past the last non\-null wide character written, that is, \fIdest\ +\ wcsnlen(src,\ n)\fP. .SH АТРИБУТЫ Описание терминов данного раздела смотрите в \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Интерфейс Атрибут Значение T{ .na .nh \fBwcpncpy\fP() T} Безвредность в нитях MT\-Safe .TE .SH СТАНДАРТЫ POSIX.1\-2008. .SH "СМОТРИТЕ ТАКЖЕ" \fBstpncpy\fP(3), \fBwcsncpy\fP(3) .PP .SH ПЕРЕВОД Русский перевод этой страницы руководства разработал(и) Azamat Hackimov , Yuri Kozlov и Kirill Rekhov . .PP Этот перевод является свободной программной документацией; он распространяется на условиях общедоступной лицензии GNU (GNU General Public License - GPL, .UR https://www.gnu.org/licenses/gpl-3.0.html .UE версии 3 или более поздней) в отношении авторского права, но БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ. .PP Если вы обнаружите какие-либо ошибки в переводе этой страницы руководства, пожалуйста, сообщите об этом разработчику(ам) по его(их) адресу(ам) электронной почты или по адресу .MT списка рассылки русских переводчиков .ME .