| 1 |
# German translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Jens Rohler <[email protected]> |
| 5 |
# Martin Eberhard Schauer <[email protected]>, 2010. |
| 6 |
# Helge Kreutzmann <[email protected]>, 2023. |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: manpages-l10n 4.29.1\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:19+0200\n" |
| 11 |
"PO-Revision-Date: 2026-02-28 13:41+0100\n" |
| 12 |
"Last-Translator: Helge Kreutzmann <[email protected]>\n" |
| 13 |
"Language-Team: German <[email protected]>\n" |
| 14 |
"Language: de\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 "bsearch" |
| 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 "10. Februar 2026" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "Linux man-pages 6.18" |
| 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 "BEZEICHNUNG" |
| 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 "bsearch - binäre Suche in einem sortierten Feld (Array)" |
| 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 "BIBLIOTHEK" |
| 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 "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)" |
| 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 "ÜBERSICHT" |
| 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 "B<#include E<lt>stdlib.hE<gt>>\n" |
| 78 |
|
| 79 |
# WONTFIX B<…>size_t n, size_t size → B<…size_t> I<n>, B<size_t> I<size> // forward declaration |
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 82 |
#: opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "" |
| 85 |
"B<void *bsearch(>size_t n, size_t size;\n" |
| 86 |
"B< const void >I<key>B<[>I<size>B<], const void >I<base>B<[>I<size>B< * >I<n>B<],>\n" |
| 87 |
"B< size_t >I<n>B<, size_t >I<size>B<,>\n" |
| 88 |
"B< typeof(int (const void [>I<size>B<], const void [>I<size>B<]))>\n" |
| 89 |
"B< *>I<compar>B<);>\n" |
| 90 |
msgstr "" |
| 91 |
"B<void *bsearch(>size_t n, size_t groesse;\n" |
| 92 |
"B< const void >I<Schlüssel>B<[>I<groesse>B<], const void >I<Basis>B<[>I<groesse>B< * >I<n>B<],>\n" |
| 93 |
"B< size_t >I<n>B<, size_t >I<groesse>B<,>\n" |
| 94 |
"B< typeof(int (const void [>I<groesse>B<], const void [>I<groesse>B<]))>\n" |
| 95 |
"B< *>I<vergl>B<);>\n" |
| 96 |
|
| 97 |
#. type: SH |
| 98 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 99 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 100 |
#, no-wrap |
| 101 |
msgid "DESCRIPTION" |
| 102 |
msgstr "BESCHREIBUNG" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 106 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
msgid "" |
| 108 |
"The B<bsearch>() function searches an array of I<n> objects, the initial " |
| 109 |
"member of which is pointed to by I<base>, for a member that matches the " |
| 110 |
"object pointed to by I<key>. The size of each member of the array is " |
| 111 |
"specified by I<size>." |
| 112 |
msgstr "" |
| 113 |
"Die Funktion B<bsearch>() durchsucht ein Feld von I<n> Objekten nach " |
| 114 |
"Übereinstimmung mit dem Objekt, auf das I<Schlüssel> zeigt. I<Basis> zeigt " |
| 115 |
"auf das erste Objekt des Felds; I<groesse> legt die Größe der einzelnen im " |
| 116 |
"Feld enthaltenen Objekte fest." |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
msgid "" |
| 122 |
"The contents of the array should be in ascending sorted order according to " |
| 123 |
"the comparison function referenced by I<compar>. The I<compar> routine is " |
| 124 |
"expected to have two arguments which point to the I<key> object and to an " |
| 125 |
"array member, in that order, and should return an integer less than, equal " |
| 126 |
"to, or greater than zero if the I<key> object is found, respectively, to be " |
| 127 |
"less than, to match, or be greater than the array member." |
| 128 |
msgstr "" |
| 129 |
"Der Inhalt des Felds sollte gemäß der Vergleichsfunktion I<vergl> " |
| 130 |
"aufsteigend sortiert sein. Von I<vergl> wird erwartet, dass sie zwei " |
| 131 |
"Argumente verarbeitet. Das erste Argument verweist auf das I<Schlüssel>-" |
| 132 |
"Objekt; das zweite auf ein Element des Arrays. Der Rückgabewert sollte eine " |
| 133 |
"Ganzzahl kleiner, gleich oder größer Null sein, je nachdem, ob das " |
| 134 |
"I<Schlüssel>-Objekt kleiner, gleich oder größer als das Element des Felds " |
| 135 |
"ist." |
| 136 |
|
| 137 |
#. type: SH |
| 138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 140 |
#, no-wrap |
| 141 |
msgid "RETURN VALUE" |
| 142 |
msgstr "RÜCKGABEWERT" |
| 143 |
|
| 144 |
#. type: Plain text |
| 145 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 146 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 147 |
msgid "" |
| 148 |
"The B<bsearch>() function returns a pointer to a matching member of the " |
| 149 |
"array, or NULL if no match is found. If there are multiple elements that " |
| 150 |
"match the key, the element returned is unspecified." |
| 151 |
msgstr "" |
| 152 |
"Die Funktion B<bsearch>() gibt einen Zeiger auf ein passendes Feldelement " |
| 153 |
"zurück oder NULL, wenn keine Übereinstimmung gefunden wurde. Gibt es mehrere " |
| 154 |
"Treffer für I<Schlüssel>, ist nicht definiert, auf welches Element der " |
| 155 |
"Zeiger weist." |
| 156 |
|
| 157 |
#. type: SH |
| 158 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 159 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 160 |
#, no-wrap |
| 161 |
msgid "ATTRIBUTES" |
| 162 |
msgstr "ATTRIBUTE" |
| 163 |
|
| 164 |
#. type: Plain text |
| 165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 167 |
msgid "" |
| 168 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 169 |
msgstr "" |
| 170 |
"Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt " |
| 171 |
"verwandten Ausdrücke." |
| 172 |
|
| 173 |
#. type: tbl table |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
#, no-wrap |
| 177 |
msgid "Interface" |
| 178 |
msgstr "Schnittstelle" |
| 179 |
|
| 180 |
#. type: tbl table |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
#, no-wrap |
| 184 |
msgid "Attribute" |
| 185 |
msgstr "Attribut" |
| 186 |
|
| 187 |
#. type: tbl table |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
#, no-wrap |
| 191 |
msgid "Value" |
| 192 |
msgstr "Wert" |
| 193 |
|
| 194 |
#. type: tbl table |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
#, no-wrap |
| 198 |
msgid ".na\n" |
| 199 |
msgstr ".na\n" |
| 200 |
|
| 201 |
#. type: tbl table |
| 202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 203 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 204 |
#, no-wrap |
| 205 |
msgid ".nh\n" |
| 206 |
msgstr ".nh\n" |
| 207 |
|
| 208 |
#. type: tbl table |
| 209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 210 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 211 |
#, no-wrap |
| 212 |
msgid "B<bsearch>()" |
| 213 |
msgstr "B<bsearch>()" |
| 214 |
|
| 215 |
#. type: tbl table |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
#, no-wrap |
| 219 |
msgid "Thread safety" |
| 220 |
msgstr "Multithread-Fähigkeit" |
| 221 |
|
| 222 |
#. type: tbl table |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
#, no-wrap |
| 226 |
msgid "MT-Safe" |
| 227 |
msgstr "MT-Sicher" |
| 228 |
|
| 229 |
#. type: SH |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
#, no-wrap |
| 233 |
msgid "STANDARDS" |
| 234 |
msgstr "STANDARDS" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 239 |
msgid "C11, POSIX.1-2008." |
| 240 |
msgstr "C11, POSIX.1-2008." |
| 241 |
|
| 242 |
#. type: SH |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
#, no-wrap |
| 246 |
msgid "HISTORY" |
| 247 |
msgstr "GESCHICHTE" |
| 248 |
|
| 249 |
#. type: Plain text |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
msgid "POSIX.1-2001, C89, C99, SVr4, 4.3BSD." |
| 253 |
msgstr "POSIX.1-2001, C89, C99, SVr4, 4.3BSD." |
| 254 |
|
| 255 |
#. type: SH |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
#, no-wrap |
| 259 |
msgid "EXAMPLES" |
| 260 |
msgstr "BEISPIELE" |
| 261 |
|
| 262 |
#. type: Plain text |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
msgid "" |
| 266 |
"The example below first sorts an array of structures using B<qsort>(3), then " |
| 267 |
"retrieves desired elements using B<bsearch>()." |
| 268 |
msgstr "" |
| 269 |
"Das folgende Beispiel sortiert zuerst mittels B<qsort>(3) ein Feld von " |
| 270 |
"Strukturen und sucht dann mit B<bsearch>() nach dem gewünschten Element." |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 274 |
#: opensuse-tumbleweed |
| 275 |
#, no-wrap |
| 276 |
msgid "" |
| 277 |
"#include E<lt>stdcountof.hE<gt>\n" |
| 278 |
"#include E<lt>stdio.hE<gt>\n" |
| 279 |
"#include E<lt>stdlib.hE<gt>\n" |
| 280 |
"#include E<lt>string.hE<gt>\n" |
| 281 |
"\\&\n" |
| 282 |
"struct mi {\n" |
| 283 |
" int nr;\n" |
| 284 |
" const char *name;\n" |
| 285 |
"};\n" |
| 286 |
"\\&\n" |
| 287 |
"static struct mi months[] = {\n" |
| 288 |
" { 1, \"jan\" }, { 2, \"feb\" }, { 3, \"mar\" }, { 4, \"apr\" },\n" |
| 289 |
" { 5, \"may\" }, { 6, \"jun\" }, { 7, \"jul\" }, { 8, \"aug\" },\n" |
| 290 |
" { 9, \"sep\" }, {10, \"oct\" }, {11, \"nov\" }, {12, \"dec\" }\n" |
| 291 |
"};\n" |
| 292 |
"\\&\n" |
| 293 |
"static int\n" |
| 294 |
"compmi(const void *m1, const void *m2)\n" |
| 295 |
"{\n" |
| 296 |
" const struct mi *mi1 = m1;\n" |
| 297 |
" const struct mi *mi2 = m2;\n" |
| 298 |
"\\&\n" |
| 299 |
" return strcmp(mi1-E<gt>name, mi2-E<gt>name);\n" |
| 300 |
"}\n" |
| 301 |
"\\&\n" |
| 302 |
"int\n" |
| 303 |
"main(int argc, char *argv[])\n" |
| 304 |
"{\n" |
| 305 |
" qsort(months, countof(months), sizeof(months[0]), compmi);\n" |
| 306 |
" for (size_t i = 1; i E<lt> argc; i++) {\n" |
| 307 |
" struct mi key;\n" |
| 308 |
" struct mi *res;\n" |
| 309 |
"\\&\n" |
| 310 |
" key.name = argv[i];\n" |
| 311 |
" res = bsearch(&key, months, countof(months),\n" |
| 312 |
" sizeof(months[0]), compmi);\n" |
| 313 |
" if (res == NULL)\n" |
| 314 |
" printf(\"\\[aq]%s\\[aq]: unknown month\\[rs]n\", argv[i]);\n" |
| 315 |
" else\n" |
| 316 |
" printf(\"%s: month #%d\\[rs]n\", res-E<gt>name, res-E<gt>nr);\n" |
| 317 |
" }\n" |
| 318 |
" exit(EXIT_SUCCESS);\n" |
| 319 |
"}\n" |
| 320 |
msgstr "" |
| 321 |
"#include E<lt>stdcountof.hE<gt>\n" |
| 322 |
"#include E<lt>stdio.hE<gt>\n" |
| 323 |
"#include E<lt>stdlib.hE<gt>\n" |
| 324 |
"#include E<lt>string.hE<gt>\n" |
| 325 |
"\\&\n" |
| 326 |
"struct mi {\n" |
| 327 |
" int nr;\n" |
| 328 |
" const char *name;\n" |
| 329 |
"};\n" |
| 330 |
"\\&\n" |
| 331 |
"static struct mi months[] = {\n" |
| 332 |
" { 1, \"jan\" }, { 2, \"feb\" }, { 3, \"mär\" }, { 4, \"apr\" },\n" |
| 333 |
" { 5, \"mai\" }, { 6, \"jun\" }, { 7, \"jul\" }, { 8, \"aug\" },\n" |
| 334 |
" { 9, \"sep\" }, {10, \"okt\" }, {11, \"nov\" }, {12, \"dez\" }\n" |
| 335 |
"};\n" |
| 336 |
"\\&\n" |
| 337 |
"static int\n" |
| 338 |
"compmi(const void *m1, const void *m2)\n" |
| 339 |
"{\n" |
| 340 |
" const struct mi *mi1 = m1;\n" |
| 341 |
" const struct mi *mi2 = m2;\n" |
| 342 |
"\\&\n" |
| 343 |
" return strcmp(mi1-E<gt>name, mi2-E<gt>name);\n" |
| 344 |
"}\n" |
| 345 |
"\\&\n" |
| 346 |
"int\n" |
| 347 |
"main(int argc, char *argv[])\n" |
| 348 |
"{\n" |
| 349 |
" qsort(months, countof(months), sizeof(months[0]), compmi);\n" |
| 350 |
" for (size_t i = 1; i E<lt> argc; i++) {\n" |
| 351 |
" struct mi key;\n" |
| 352 |
" struct mi *res;\n" |
| 353 |
"\\&\n" |
| 354 |
" key.name = argv[i];\n" |
| 355 |
" res = bsearch(&key, months, countof(months),\n" |
| 356 |
" sizeof(months[0]), compmi);\n" |
| 357 |
" if (res == NULL)\n" |
| 358 |
" printf(\"\\[aq]%s\\[aq]: unbekannter Monat\\[rs]n\", argv[i]);\n" |
| 359 |
" else\n" |
| 360 |
" printf(\"%s: Monat #%d\\[rs]n\", res-E<gt>name, res-E<gt>nr);\n" |
| 361 |
" }\n" |
| 362 |
" exit(EXIT_SUCCESS);\n" |
| 363 |
"}\n" |
| 364 |
|
| 365 |
#. SRC END |
| 366 |
#. type: SH |
| 367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 368 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 369 |
#, no-wrap |
| 370 |
msgid "SEE ALSO" |
| 371 |
msgstr "SIEHE AUCH" |
| 372 |
|
| 373 |
#. type: Plain text |
| 374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 375 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 376 |
msgid "B<hsearch>(3), B<lsearch>(3), B<qsort>(3), B<tsearch>(3)" |
| 377 |
msgstr "B<hsearch>(3), B<lsearch>(3), B<qsort>(3), B<tsearch>(3)" |
| 378 |
|
| 379 |
#. type: TH |
| 380 |
#: debian-trixie |
| 381 |
#, no-wrap |
| 382 |
msgid "2024-06-15" |
| 383 |
msgstr "15. Juni 2024" |
| 384 |
|
| 385 |
#. type: TH |
| 386 |
#: debian-trixie |
| 387 |
#, no-wrap |
| 388 |
msgid "Linux man-pages 6.9.1" |
| 389 |
msgstr "Linux man-pages 6.9.1" |
| 390 |
|
| 391 |
#. type: Plain text |
| 392 |
#: debian-trixie |
| 393 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 394 |
msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)" |
| 395 |
|
| 396 |
#. type: Plain text |
| 397 |
#: debian-trixie |
| 398 |
#, no-wrap |
| 399 |
msgid "" |
| 400 |
"B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<nmemb>B<],>\n" |
| 401 |
"B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n" |
| 402 |
"B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n" |
| 403 |
msgstr "" |
| 404 |
"B<void *bsearch(const void >I<Schlüssel>B<[.>I<groesse>B<], const void >I<Basis>B<[.>I<groesse>B< * .>I<nmemb>B<],>\n" |
| 405 |
"B< size_t >I<nmemb>B<, size_t >I<groesse>B<,>\n" |
| 406 |
"B< int (*>I<vergl>B<)(const void [.>I<groesse>B<], const void [.>I<groesse>B<]));>\n" |
| 407 |
|
| 408 |
#. type: Plain text |
| 409 |
#: debian-trixie |
| 410 |
msgid "" |
| 411 |
"The B<bsearch>() function searches an array of I<nmemb> objects, the " |
| 412 |
"initial member of which is pointed to by I<base>, for a member that matches " |
| 413 |
"the object pointed to by I<key>. The size of each member of the array is " |
| 414 |
"specified by I<size>." |
| 415 |
msgstr "" |
| 416 |
"Die Funktion B<bsearch>() durchsucht ein Feld von I<nmemb> Objekten nach " |
| 417 |
"Übereinstimmung mit dem Objekt, auf das I<Schlüssel> zeigt. I<Basis> zeigt " |
| 418 |
"auf das erste Objekt des Felds; I<groesse> legt die Größe der einzelnen im " |
| 419 |
"Feld enthaltenen Objekte fest." |
| 420 |
|
| 421 |
#. type: Plain text |
| 422 |
#: debian-trixie fedora-44 fedora-rawhide |
| 423 |
#, no-wrap |
| 424 |
msgid "" |
| 425 |
"#include E<lt>stdio.hE<gt>\n" |
| 426 |
"#include E<lt>stdlib.hE<gt>\n" |
| 427 |
"#include E<lt>string.hE<gt>\n" |
| 428 |
"\\&\n" |
| 429 |
"#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n" |
| 430 |
"\\&\n" |
| 431 |
"struct mi {\n" |
| 432 |
" int nr;\n" |
| 433 |
" const char *name;\n" |
| 434 |
"};\n" |
| 435 |
"\\&\n" |
| 436 |
"static struct mi months[] = {\n" |
| 437 |
" { 1, \"jan\" }, { 2, \"feb\" }, { 3, \"mar\" }, { 4, \"apr\" },\n" |
| 438 |
" { 5, \"may\" }, { 6, \"jun\" }, { 7, \"jul\" }, { 8, \"aug\" },\n" |
| 439 |
" { 9, \"sep\" }, {10, \"oct\" }, {11, \"nov\" }, {12, \"dec\" }\n" |
| 440 |
"};\n" |
| 441 |
"\\&\n" |
| 442 |
"static int\n" |
| 443 |
"compmi(const void *m1, const void *m2)\n" |
| 444 |
"{\n" |
| 445 |
" const struct mi *mi1 = m1;\n" |
| 446 |
" const struct mi *mi2 = m2;\n" |
| 447 |
"\\&\n" |
| 448 |
" return strcmp(mi1-E<gt>name, mi2-E<gt>name);\n" |
| 449 |
"}\n" |
| 450 |
"\\&\n" |
| 451 |
"int\n" |
| 452 |
"main(int argc, char *argv[])\n" |
| 453 |
"{\n" |
| 454 |
" qsort(months, ARRAY_SIZE(months), sizeof(months[0]), compmi);\n" |
| 455 |
" for (size_t i = 1; i E<lt> argc; i++) {\n" |
| 456 |
" struct mi key;\n" |
| 457 |
" struct mi *res;\n" |
| 458 |
"\\&\n" |
| 459 |
" key.name = argv[i];\n" |
| 460 |
" res = bsearch(&key, months, ARRAY_SIZE(months),\n" |
| 461 |
" sizeof(months[0]), compmi);\n" |
| 462 |
" if (res == NULL)\n" |
| 463 |
" printf(\"\\[aq]%s\\[aq]: unknown month\\[rs]n\", argv[i]);\n" |
| 464 |
" else\n" |
| 465 |
" printf(\"%s: month #%d\\[rs]n\", res-E<gt>name, res-E<gt>nr);\n" |
| 466 |
" }\n" |
| 467 |
" exit(EXIT_SUCCESS);\n" |
| 468 |
"}\n" |
| 469 |
msgstr "" |
| 470 |
"#include E<lt>stdio.hE<gt>\n" |
| 471 |
"#include E<lt>stdlib.hE<gt>\n" |
| 472 |
"#include E<lt>string.hE<gt>\n" |
| 473 |
"\\&\n" |
| 474 |
"#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n" |
| 475 |
"\\&\n" |
| 476 |
"struct mi {\n" |
| 477 |
" int nr;\n" |
| 478 |
" const char *name;\n" |
| 479 |
"};\n" |
| 480 |
"\\&\n" |
| 481 |
"static struct mi months[] = {\n" |
| 482 |
" { 1, \"jan\" }, { 2, \"feb\" }, { 3, \"mär\" }, { 4, \"apr\" },\n" |
| 483 |
" { 5, \"mai\" }, { 6, \"jun\" }, { 7, \"jul\" }, { 8, \"aug\" },\n" |
| 484 |
" { 9, \"sep\" }, {10, \"okt\" }, {11, \"nov\" }, {12, \"dez\" }\n" |
| 485 |
"};\n" |
| 486 |
"\\&\n" |
| 487 |
"static int\n" |
| 488 |
"compmi(const void *m1, const void *m2)\n" |
| 489 |
"{\n" |
| 490 |
" const struct mi *mi1 = m1;\n" |
| 491 |
" const struct mi *mi2 = m2;\n" |
| 492 |
"\\&\n" |
| 493 |
" return strcmp(mi1-E<gt>name, mi2-E<gt>name);\n" |
| 494 |
"}\n" |
| 495 |
"\\&\n" |
| 496 |
"int\n" |
| 497 |
"main(int argc, char *argv[])\n" |
| 498 |
"{\n" |
| 499 |
" qsort(months, ARRAY_SIZE(months), sizeof(months[0]), compmi);\n" |
| 500 |
" for (size_t i = 1; i E<lt> argc; i++) {\n" |
| 501 |
" struct mi key;\n" |
| 502 |
" struct mi *res;\n" |
| 503 |
"\\&\n" |
| 504 |
" key.name = argv[i];\n" |
| 505 |
" res = bsearch(&key, months, ARRAY_SIZE(months),\n" |
| 506 |
" sizeof(months[0]), compmi);\n" |
| 507 |
" if (res == NULL)\n" |
| 508 |
" printf(\"\\[aq]%s\\[aq]: unbekannter Monat\\[rs]n\", argv[i]);\n" |
| 509 |
" else\n" |
| 510 |
" printf(\"%s: Monat #%d\\[rs]n\", res-E<gt>name, res-E<gt>nr);\n" |
| 511 |
" }\n" |
| 512 |
" exit(EXIT_SUCCESS);\n" |
| 513 |
"}\n" |
| 514 |
|
| 515 |
#. type: TH |
| 516 |
#: fedora-44 fedora-rawhide |
| 517 |
#, no-wrap |
| 518 |
msgid "2024-12-13" |
| 519 |
msgstr "13. Dezember 2024" |
| 520 |
|
| 521 |
#. type: TH |
| 522 |
#: fedora-44 fedora-rawhide |
| 523 |
#, no-wrap |
| 524 |
msgid "Linux man-pages 6.13" |
| 525 |
msgstr "Linux man-pages 6.13" |
| 526 |
|
| 527 |
#. type: Plain text |
| 528 |
#: fedora-44 fedora-rawhide |
| 529 |
#, no-wrap |
| 530 |
msgid "" |
| 531 |
"B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<n>B<],>\n" |
| 532 |
"B< size_t >I<n>B<, size_t >I<size>B<,>\n" |
| 533 |
"B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n" |
| 534 |
"B< *>I<compar>B<);>\n" |
| 535 |
msgstr "" |
| 536 |
"B<void *bsearch(const void >I<Schlüssel>B<[.>I<groesse>B<], const void >I<Basis>B<[.>I<groesse>B< * .>I<n>B<],>\n" |
| 537 |
"B< size_t >I<n>B<, size_t >I<groesse>B<,>\n" |
| 538 |
"B< typeof(int (const void [.>I<groesse>B<], const void [.>I<groesse>B<]))>\n" |
| 539 |
"B< *>I<vergl>B<);>\n" |
| 540 |
|
| 541 |
#. type: TH |
| 542 |
#: mageia-cauldron |
| 543 |
#, no-wrap |
| 544 |
msgid "Linux man-pages 6.17" |
| 545 |
msgstr "Linux man-pages 6.17" |
| 546 |
|
| 547 |
#. type: TH |
| 548 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 549 |
#, no-wrap |
| 550 |
msgid "Linux man-pages (unreleased)" |
| 551 |
msgstr "Linux man-pages (unveröffentlicht)" |