| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Artyom Kunyov <[email protected]>, 2012. |
| 5 |
# Azamat Hackimov <[email protected]>, 2012. |
| 6 |
# Dmitriy Ovchinnikov <[email protected]>, 2012. |
| 7 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 8 |
# ITriskTI <[email protected]>, 2012. |
| 9 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 10 |
# Иван Павлов <[email protected]>, 2017. |
| 11 |
msgid "" |
| 12 |
msgstr "" |
| 13 |
"Project-Id-Version: manpages-l10n\n" |
| 14 |
"POT-Creation-Date: 2026-06-05 06:19+0200\n" |
| 15 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 16 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 17 |
"Language-Team: Russian <[email protected]>\n" |
| 18 |
"Language: ru\n" |
| 19 |
"MIME-Version: 1.0\n" |
| 20 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 21 |
"Content-Transfer-Encoding: 8bit\n" |
| 22 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 23 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 24 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 28 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 29 |
#, fuzzy, no-wrap |
| 30 |
#| msgid "I<search>" |
| 31 |
msgid "bsearch" |
| 32 |
msgstr "I<поиск>" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 36 |
#: opensuse-tumbleweed |
| 37 |
#, no-wrap |
| 38 |
msgid "2026-02-10" |
| 39 |
msgstr "10 февраля 2026 г." |
| 40 |
|
| 41 |
#. type: TH |
| 42 |
#: archlinux debian-unstable |
| 43 |
#, fuzzy, no-wrap |
| 44 |
#| msgid "Linux man-pages 6.17" |
| 45 |
msgid "Linux man-pages 6.18" |
| 46 |
msgstr "Справочные страницы Linux 6.17" |
| 47 |
|
| 48 |
#. type: SH |
| 49 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 50 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 51 |
#, no-wrap |
| 52 |
msgid "NAME" |
| 53 |
msgstr "НАИМЕНОВАНИЕ" |
| 54 |
|
| 55 |
#. type: Plain text |
| 56 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 57 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 58 |
msgid "bsearch - binary search of a sorted array" |
| 59 |
msgstr "bsearch - выполняет двоичный поиск в упорядоченном массиве" |
| 60 |
|
| 61 |
#. type: SH |
| 62 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 63 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
#, no-wrap |
| 65 |
msgid "LIBRARY" |
| 66 |
msgstr "БИБЛИОТЕКА" |
| 67 |
|
| 68 |
#. type: Plain text |
| 69 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 70 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 71 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 72 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 73 |
|
| 74 |
#. type: SH |
| 75 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 76 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
#, no-wrap |
| 78 |
msgid "SYNOPSIS" |
| 79 |
msgstr "СИНТАКСИС" |
| 80 |
|
| 81 |
#. type: Plain text |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "B<#include E<lt>stdlib.hE<gt>>\n" |
| 86 |
msgstr "B<#include E<lt>stdlib.hE<gt>>\n" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 90 |
#: opensuse-tumbleweed |
| 91 |
#, fuzzy, no-wrap |
| 92 |
#| msgid "" |
| 93 |
#| "B<void *bsearch(const void *>I<key>B<, const void *>I<base>B<,>\n" |
| 94 |
#| "B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n" |
| 95 |
#| "B< int (*>I<compar>B<)(const void *, const void *));>\n" |
| 96 |
msgid "" |
| 97 |
"B<void *bsearch(>size_t n, size_t size;\n" |
| 98 |
"B< const void >I<key>B<[>I<size>B<], const void >I<base>B<[>I<size>B< * >I<n>B<],>\n" |
| 99 |
"B< size_t >I<n>B<, size_t >I<size>B<,>\n" |
| 100 |
"B< typeof(int (const void [>I<size>B<], const void [>I<size>B<]))>\n" |
| 101 |
"B< *>I<compar>B<);>\n" |
| 102 |
msgstr "" |
| 103 |
"B<void *bsearch(const void *>I<key>B<, const void *>I<base>B<,>\n" |
| 104 |
"B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n" |
| 105 |
"B< int (*>I<compar>B<)(const void *, const void *));>\n" |
| 106 |
|
| 107 |
#. type: SH |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
#, no-wrap |
| 111 |
msgid "DESCRIPTION" |
| 112 |
msgstr "ОПИСАНИЕ" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 116 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
#, fuzzy |
| 118 |
#| msgid "" |
| 119 |
#| "The B<bsearch>() function searches an array of I<nmemb> objects, the " |
| 120 |
#| "initial member of which is pointed to by I<base>, for a member that " |
| 121 |
#| "matches the object pointed to by I<key>. The size of each member of the " |
| 122 |
#| "array is specified by I<size>." |
| 123 |
msgid "" |
| 124 |
"The B<bsearch>() function searches an array of I<n> objects, the initial " |
| 125 |
"member of which is pointed to by I<base>, for a member that matches the " |
| 126 |
"object pointed to by I<key>. The size of each member of the array is " |
| 127 |
"specified by I<size>." |
| 128 |
msgstr "" |
| 129 |
"Функция B<bsearch>() ищет в массиве размером I<nmemb> ( I<base> указывает на " |
| 130 |
"начальный элемент) элемент, который совпадает с элементом, указываемым в " |
| 131 |
"I<key>. Размер каждого элемента массива задаётся в I<size>." |
| 132 |
|
| 133 |
#. type: Plain text |
| 134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 136 |
msgid "" |
| 137 |
"The contents of the array should be in ascending sorted order according to " |
| 138 |
"the comparison function referenced by I<compar>. The I<compar> routine is " |
| 139 |
"expected to have two arguments which point to the I<key> object and to an " |
| 140 |
"array member, in that order, and should return an integer less than, equal " |
| 141 |
"to, or greater than zero if the I<key> object is found, respectively, to be " |
| 142 |
"less than, to match, or be greater than the array member." |
| 143 |
msgstr "" |
| 144 |
"Содержимое массива должно быть отсортировано по возрастанию с помощью " |
| 145 |
"функции сравнения, на которую ссылается I<compar>. Функция I<compar> " |
| 146 |
"принимает два аргумента, один указывает на элемент I<key>, а другой на " |
| 147 |
"элемент массива (в таком порядке), и должна возвращать целое, которое " |
| 148 |
"меньше, равно или больше нуля, если найденный элемент I<key> меньше, " |
| 149 |
"совпадает или больше элемента массива, соответственно." |
| 150 |
|
| 151 |
#. type: SH |
| 152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
#, no-wrap |
| 155 |
msgid "RETURN VALUE" |
| 156 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"The B<bsearch>() function returns a pointer to a matching member of the " |
| 163 |
"array, or NULL if no match is found. If there are multiple elements that " |
| 164 |
"match the key, the element returned is unspecified." |
| 165 |
msgstr "" |
| 166 |
"Функция B<bsearch>() возвращает указатель на совпадающий элемент массива или " |
| 167 |
"NULL, если ничего не найдено. Если с ключом совпадает несколько элементов, " |
| 168 |
"то какой из них будет возвращён стандартом не определено." |
| 169 |
|
| 170 |
#. type: SH |
| 171 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 172 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 173 |
#, no-wrap |
| 174 |
msgid "ATTRIBUTES" |
| 175 |
msgstr "АТРИБУТЫ" |
| 176 |
|
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 179 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
msgid "" |
| 181 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 182 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 183 |
|
| 184 |
#. type: tbl table |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
#, no-wrap |
| 188 |
msgid "Interface" |
| 189 |
msgstr "Интерфейс" |
| 190 |
|
| 191 |
#. type: tbl table |
| 192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 193 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
#, no-wrap |
| 195 |
msgid "Attribute" |
| 196 |
msgstr "Атрибут" |
| 197 |
|
| 198 |
#. type: tbl table |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
#, no-wrap |
| 202 |
msgid "Value" |
| 203 |
msgstr "Значение" |
| 204 |
|
| 205 |
#. type: tbl table |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
#, no-wrap |
| 209 |
msgid ".na\n" |
| 210 |
msgstr ".na\n" |
| 211 |
|
| 212 |
#. type: tbl table |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
#, no-wrap |
| 216 |
msgid ".nh\n" |
| 217 |
msgstr ".nh\n" |
| 218 |
|
| 219 |
#. type: tbl table |
| 220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 222 |
#, no-wrap |
| 223 |
msgid "B<bsearch>()" |
| 224 |
msgstr "B<bsearch>()" |
| 225 |
|
| 226 |
#. type: tbl table |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
#, no-wrap |
| 230 |
msgid "Thread safety" |
| 231 |
msgstr "Безвредность в нитях" |
| 232 |
|
| 233 |
#. type: tbl table |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
#, no-wrap |
| 237 |
msgid "MT-Safe" |
| 238 |
msgstr "MT-Safe" |
| 239 |
|
| 240 |
#. type: SH |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
#, no-wrap |
| 244 |
msgid "STANDARDS" |
| 245 |
msgstr "СТАНДАРТЫ" |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "C11, POSIX.1-2008." |
| 251 |
msgstr "C11, POSIX.1-2008." |
| 252 |
|
| 253 |
#. type: SH |
| 254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 255 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 256 |
#, no-wrap |
| 257 |
msgid "HISTORY" |
| 258 |
msgstr "ИСТОРИЯ" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
msgid "POSIX.1-2001, C89, C99, SVr4, 4.3BSD." |
| 264 |
msgstr "POSIX.1-2001, C89, C99, SVr4, 4.3BSD." |
| 265 |
|
| 266 |
#. type: SH |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
#, no-wrap |
| 270 |
msgid "EXAMPLES" |
| 271 |
msgstr "ПРИМЕРЫ" |
| 272 |
|
| 273 |
#. type: Plain text |
| 274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 275 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 276 |
msgid "" |
| 277 |
"The example below first sorts an array of structures using B<qsort>(3), then " |
| 278 |
"retrieves desired elements using B<bsearch>()." |
| 279 |
msgstr "" |
| 280 |
"В этом примере сначала выполняется сортировка массива структур с помощью " |
| 281 |
"B<qsort>(3), а затем возвращается желаемый элемент с помощью B<bsearch>()." |
| 282 |
|
| 283 |
#. type: Plain text |
| 284 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 285 |
#: opensuse-tumbleweed |
| 286 |
#, no-wrap |
| 287 |
msgid "" |
| 288 |
"#include E<lt>stdcountof.hE<gt>\n" |
| 289 |
"#include E<lt>stdio.hE<gt>\n" |
| 290 |
"#include E<lt>stdlib.hE<gt>\n" |
| 291 |
"#include E<lt>string.hE<gt>\n" |
| 292 |
"\\&\n" |
| 293 |
"struct mi {\n" |
| 294 |
" int nr;\n" |
| 295 |
" const char *name;\n" |
| 296 |
"};\n" |
| 297 |
"\\&\n" |
| 298 |
"static struct mi months[] = {\n" |
| 299 |
" { 1, \"jan\" }, { 2, \"feb\" }, { 3, \"mar\" }, { 4, \"apr\" },\n" |
| 300 |
" { 5, \"may\" }, { 6, \"jun\" }, { 7, \"jul\" }, { 8, \"aug\" },\n" |
| 301 |
" { 9, \"sep\" }, {10, \"oct\" }, {11, \"nov\" }, {12, \"dec\" }\n" |
| 302 |
"};\n" |
| 303 |
"\\&\n" |
| 304 |
"static int\n" |
| 305 |
"compmi(const void *m1, const void *m2)\n" |
| 306 |
"{\n" |
| 307 |
" const struct mi *mi1 = m1;\n" |
| 308 |
" const struct mi *mi2 = m2;\n" |
| 309 |
"\\&\n" |
| 310 |
" return strcmp(mi1-E<gt>name, mi2-E<gt>name);\n" |
| 311 |
"}\n" |
| 312 |
"\\&\n" |
| 313 |
"int\n" |
| 314 |
"main(int argc, char *argv[])\n" |
| 315 |
"{\n" |
| 316 |
" qsort(months, countof(months), sizeof(months[0]), compmi);\n" |
| 317 |
" for (size_t i = 1; i E<lt> argc; i++) {\n" |
| 318 |
" struct mi key;\n" |
| 319 |
" struct mi *res;\n" |
| 320 |
"\\&\n" |
| 321 |
" key.name = argv[i];\n" |
| 322 |
" res = bsearch(&key, months, countof(months),\n" |
| 323 |
" sizeof(months[0]), compmi);\n" |
| 324 |
" if (res == NULL)\n" |
| 325 |
" printf(\"\\[aq]%s\\[aq]: unknown month\\[rs]n\", argv[i]);\n" |
| 326 |
" else\n" |
| 327 |
" printf(\"%s: month #%d\\[rs]n\", res-E<gt>name, res-E<gt>nr);\n" |
| 328 |
" }\n" |
| 329 |
" exit(EXIT_SUCCESS);\n" |
| 330 |
"}\n" |
| 331 |
msgstr "" |
| 332 |
|
| 333 |
#. SRC END |
| 334 |
#. type: SH |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
#, no-wrap |
| 338 |
msgid "SEE ALSO" |
| 339 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 340 |
|
| 341 |
#. type: Plain text |
| 342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 343 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 344 |
msgid "B<hsearch>(3), B<lsearch>(3), B<qsort>(3), B<tsearch>(3)" |
| 345 |
msgstr "B<hsearch>(3), B<lsearch>(3), B<qsort>(3), B<tsearch>(3)" |
| 346 |
|
| 347 |
#. type: TH |
| 348 |
#: debian-trixie |
| 349 |
#, no-wrap |
| 350 |
msgid "2024-06-15" |
| 351 |
msgstr "15 июня 2024 г." |
| 352 |
|
| 353 |
#. type: TH |
| 354 |
#: debian-trixie |
| 355 |
#, no-wrap |
| 356 |
msgid "Linux man-pages 6.9.1" |
| 357 |
msgstr "Страницы руководства Linux 6.9.1" |
| 358 |
|
| 359 |
#. type: Plain text |
| 360 |
#: debian-trixie |
| 361 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 362 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 363 |
|
| 364 |
#. type: Plain text |
| 365 |
#: debian-trixie |
| 366 |
#, fuzzy, no-wrap |
| 367 |
#| msgid "" |
| 368 |
#| "B<void *bsearch(const void *>I<key>B<, const void *>I<base>B<,>\n" |
| 369 |
#| "B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n" |
| 370 |
#| "B< int (*>I<compar>B<)(const void *, const void *));>\n" |
| 371 |
msgid "" |
| 372 |
"B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<nmemb>B<],>\n" |
| 373 |
"B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n" |
| 374 |
"B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n" |
| 375 |
msgstr "" |
| 376 |
"B<void *bsearch(const void *>I<key>B<, const void *>I<base>B<,>\n" |
| 377 |
"B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n" |
| 378 |
"B< int (*>I<compar>B<)(const void *, const void *));>\n" |
| 379 |
|
| 380 |
#. type: Plain text |
| 381 |
#: debian-trixie |
| 382 |
msgid "" |
| 383 |
"The B<bsearch>() function searches an array of I<nmemb> objects, the " |
| 384 |
"initial member of which is pointed to by I<base>, for a member that matches " |
| 385 |
"the object pointed to by I<key>. The size of each member of the array is " |
| 386 |
"specified by I<size>." |
| 387 |
msgstr "" |
| 388 |
"Функция B<bsearch>() ищет в массиве размером I<nmemb> ( I<base> указывает на " |
| 389 |
"начальный элемент) элемент, который совпадает с элементом, указываемым в " |
| 390 |
"I<key>. Размер каждого элемента массива задаётся в I<size>." |
| 391 |
|
| 392 |
#. type: Plain text |
| 393 |
#: debian-trixie fedora-44 fedora-rawhide |
| 394 |
#, no-wrap |
| 395 |
msgid "" |
| 396 |
"#include E<lt>stdio.hE<gt>\n" |
| 397 |
"#include E<lt>stdlib.hE<gt>\n" |
| 398 |
"#include E<lt>string.hE<gt>\n" |
| 399 |
"\\&\n" |
| 400 |
"#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n" |
| 401 |
"\\&\n" |
| 402 |
"struct mi {\n" |
| 403 |
" int nr;\n" |
| 404 |
" const char *name;\n" |
| 405 |
"};\n" |
| 406 |
"\\&\n" |
| 407 |
"static struct mi months[] = {\n" |
| 408 |
" { 1, \"jan\" }, { 2, \"feb\" }, { 3, \"mar\" }, { 4, \"apr\" },\n" |
| 409 |
" { 5, \"may\" }, { 6, \"jun\" }, { 7, \"jul\" }, { 8, \"aug\" },\n" |
| 410 |
" { 9, \"sep\" }, {10, \"oct\" }, {11, \"nov\" }, {12, \"dec\" }\n" |
| 411 |
"};\n" |
| 412 |
"\\&\n" |
| 413 |
"static int\n" |
| 414 |
"compmi(const void *m1, const void *m2)\n" |
| 415 |
"{\n" |
| 416 |
" const struct mi *mi1 = m1;\n" |
| 417 |
" const struct mi *mi2 = m2;\n" |
| 418 |
"\\&\n" |
| 419 |
" return strcmp(mi1-E<gt>name, mi2-E<gt>name);\n" |
| 420 |
"}\n" |
| 421 |
"\\&\n" |
| 422 |
"int\n" |
| 423 |
"main(int argc, char *argv[])\n" |
| 424 |
"{\n" |
| 425 |
" qsort(months, ARRAY_SIZE(months), sizeof(months[0]), compmi);\n" |
| 426 |
" for (size_t i = 1; i E<lt> argc; i++) {\n" |
| 427 |
" struct mi key;\n" |
| 428 |
" struct mi *res;\n" |
| 429 |
"\\&\n" |
| 430 |
" key.name = argv[i];\n" |
| 431 |
" res = bsearch(&key, months, ARRAY_SIZE(months),\n" |
| 432 |
" sizeof(months[0]), compmi);\n" |
| 433 |
" if (res == NULL)\n" |
| 434 |
" printf(\"\\[aq]%s\\[aq]: unknown month\\[rs]n\", argv[i]);\n" |
| 435 |
" else\n" |
| 436 |
" printf(\"%s: month #%d\\[rs]n\", res-E<gt>name, res-E<gt>nr);\n" |
| 437 |
" }\n" |
| 438 |
" exit(EXIT_SUCCESS);\n" |
| 439 |
"}\n" |
| 440 |
msgstr "" |
| 441 |
|
| 442 |
#. type: TH |
| 443 |
#: fedora-44 fedora-rawhide |
| 444 |
#, no-wrap |
| 445 |
msgid "2024-12-13" |
| 446 |
msgstr "13 декабря 2024 г." |
| 447 |
|
| 448 |
#. type: TH |
| 449 |
#: fedora-44 fedora-rawhide |
| 450 |
#, no-wrap |
| 451 |
msgid "Linux man-pages 6.13" |
| 452 |
msgstr "Страницы руководства Linux 6.13" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: fedora-44 fedora-rawhide |
| 456 |
#, fuzzy, no-wrap |
| 457 |
#| msgid "" |
| 458 |
#| "B<void *bsearch(const void *>I<key>B<, const void *>I<base>B<,>\n" |
| 459 |
#| "B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n" |
| 460 |
#| "B< int (*>I<compar>B<)(const void *, const void *));>\n" |
| 461 |
msgid "" |
| 462 |
"B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<n>B<],>\n" |
| 463 |
"B< size_t >I<n>B<, size_t >I<size>B<,>\n" |
| 464 |
"B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n" |
| 465 |
"B< *>I<compar>B<);>\n" |
| 466 |
msgstr "" |
| 467 |
"B<void *bsearch(const void *>I<key>B<, const void *>I<base>B<,>\n" |
| 468 |
"B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n" |
| 469 |
"B< int (*>I<compar>B<)(const void *, const void *));>\n" |
| 470 |
|
| 471 |
#. type: TH |
| 472 |
#: mageia-cauldron |
| 473 |
#, no-wrap |
| 474 |
msgid "Linux man-pages 6.17" |
| 475 |
msgstr "Страницы руководства Linux 6.17" |
| 476 |
|
| 477 |
#. type: TH |
| 478 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
#, no-wrap |
| 480 |
msgid "Linux man-pages (unreleased)" |
| 481 |
msgstr "Страницы руководства Linux (не выпущены)" |