.\" -*- 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 .\" ISO/IEC 9899:1999 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH wcsncpy 3 "20 июля 2023 г." "Linux man\-pages 6.05.01" .SH ИМЯ wcsncpy \- копирует широкосимвольную строку фиксированной длины .SH LIBRARY Standard C library (\fIlibc\fP, \fI\-lc\fP) .SH СИНТАКСИС .nf \fB#include \fP .PP \fBwchar_t *wcsncpy(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 .SH ОПИСАНИЕ The \fBwcsncpy\fP() function is the wide\-character equivalent of the \fBstrncpy\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 character (L\[aq]\e0\[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 null wide 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 terminated by a null wide character. .PP Строки не должны пересекаться. .PP Программист должен проверить, что в \fIdest\fP есть место по крайней мере для \fIn\fP широких символов. .SH "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" \fBwcsncpy\fP() возвращает \fIdest\fP. .SH АТРИБУТЫ Описание терминов данного раздела смотрите в \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Интерфейс Атрибут Значение T{ .na .nh \fBwcsncpy\fP() T} Безвредность в нитях MT\-Safe .TE .sp 1 .SH СТАНДАРТЫ C11, POSIX.1\-2008. .SH ИСТОРИЯ POSIX.1\-2001, C99. .SH "СМ. ТАКЖЕ" \fBstrncpy\fP(3) .PP .SH ПЕРЕВОД Русский перевод этой страницы руководства был сделан Azamat Hackimov и Yuri Kozlov . .PP Этот перевод является бесплатной документацией; прочитайте .UR https://www.gnu.org/licenses/gpl-3.0.html Стандартную общественную лицензию GNU версии 3 .UE или более позднюю, чтобы узнать об условиях авторского права. Мы не несем НИКАКОЙ ОТВЕТСТВЕННОСТИ. .PP Если вы обнаружите ошибки в переводе этой страницы руководства, пожалуйста, отправьте электронное письмо на .MT man-pages-ru-talks@lists.sourceforge.net .ME .