.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 Mitchum DSouza .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Updated, aeb, 980809 .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH catgets 3 "20 июля 2023 г." "Linux man\-pages 6.05.01" .SH ИМЯ catgets \- получает сообщение из каталога сообщений .SH LIBRARY Standard C library (\fIlibc\fP, \fI\-lc\fP) .SH СИНТАКСИС .nf \fB#include \fP .PP \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]\e0\[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 .sp 1 .SH СТАНДАРТЫ POSIX.1\-2008. .SH ИСТОРИЯ POSIX.1\-2001. .PP The \fBcatgets\fP() function is available only in libc.so.4.4.4c and above. .PP 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 Этот перевод является бесплатной документацией; прочитайте .UR https://www.gnu.org/licenses/gpl-3.0.html Стандартную общественную лицензию GNU версии 3 .UE или более позднюю, чтобы узнать об условиях авторского права. Мы не несем НИКАКОЙ ОТВЕТСТВЕННОСТИ. .PP Если вы обнаружите ошибки в переводе этой страницы руководства, пожалуйста, отправьте электронное письмо на .MT man-pages-ru-talks@lists.sourceforge.net .ME .