.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993, Mitchum DSouza .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH catgets 3 "8 февраля 2026 г." "Linux man\-pages 6.18" .SH НАИМЕНОВАНИЕ catgets \- получает сообщение из каталога сообщений .SH БИБЛИОТЕКА Стандартная библиотека языка C (\fIlibc\fP,\ \fI\-lc\fP) .SH СИНТАКСИС .nf \fB#include \fP .P \fBchar *catgets(nl_catd \fP\fIcatalog\fP\fB, int \fP\fIset_number\fP\fB, int \fP\fImessage_number\fP\fB,\fP \fB const char *\fP\fImessage\fP\fB);\fP .fi .SH ОПИСАНИЕ \fBcatgets\fP() reads the message \fImessage_number\fP, in set \fIset_number\fP, from the message catalog identified by \fIcatalog\fP, where \fIcatalog\fP is a catalog descriptor returned from an earlier call to \fBcatopen\fP(3). The fourth argument, \fImessage\fP, points to a default message string which will be returned by \fBcatgets\fP() if the identified message catalog is not currently available. The message\-text is contained in an internal buffer area and should be copied by the application if it is to be saved or modified. The return string is always terminated with a null byte (\[aq]\[rs]0\[aq]). .SH "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" При успешном выполнении \fBcatgets\fP() возвращает указатель на внутренний буфер, содержащий заканчивающуюся null строку с сообщением. Если сообщение не найдено, то \fBcatgets\fP() возвращает значение \fImessage\fP. .SH АТРИБУТЫ Описание терминов данного раздела смотрите в \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Интерфейс Атрибут Значение T{ .na .nh \fBcatgets\fP() T} Безвредность в нитях MT\-Safe .TE .SH СТАНДАРТЫ POSIX.1\-2008. .SH ИСТОРИЯ POSIX.1\-2001. .P The \fBcatgets\fP() function is available only in libc.so.4.4.4c and above. .P The Jan 1987 X/Open Portability Guide specifies a more subtle error return: \fImessage\fP is returned if the message catalog specified by \fIcatalog\fP is not available, while an empty string is returned when the message catalog is available but does not contain the specified message. These two possible error returns seem to be discarded in SUSv2 in favor of always returning \fImessage\fP. .SH "СМОТРИТЕ ТАКЖЕ" \fBcatopen\fP(3), \fBsetlocale\fP(3) .PP .SH ПЕРЕВОД Русский перевод этой страницы руководства разработал(и) Azamat Hackimov , Dmitriy S. Seregin , Dmitry Bolkhovskikh , Katrin Kutepova , Yuri Kozlov и Иван Павлов . .PP Этот перевод является свободной программной документацией; он распространяется на условиях общедоступной лицензии GNU (GNU General Public License - GPL, .UR https://www.gnu.org/licenses/gpl-3.0.html .UE версии 3 или более поздней) в отношении авторского права, но БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ. .PP Если вы обнаружите какие-либо ошибки в переводе этой страницы руководства, пожалуйста, сообщите об этом разработчику(ам) по его(их) адресу(ам) электронной почты или по адресу .MT debian-l10n-russian@lists.debian.org списка рассылки русских переводчиков .ME .