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