Debian Codegraph @

po/de/man3/getopt_long.3.po

raw
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 # Helge Kreutzmann <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.1\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 2026-05-11 13:27+0200\n"
10 "Last-Translator: Helge Kreutzmann <[email protected]>\n"
11 "Language-Team: German <[email protected]>\n"
12 "Language: de\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
18 #. type: TH
19 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
20 #: opensuse-tumbleweed
21 #, no-wrap
22 msgid "getopt_long"
23 msgstr "getopt_long"
24
25 #. type: TH
26 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
27 #, no-wrap
28 msgid "2026-02-14"
29 msgstr "14. Februar 2026"
30
31 #. type: TH
32 #: archlinux debian-unstable
33 #, no-wrap
34 msgid "Linux man-pages 6.18"
35 msgstr "Linux man-pages 6.18"
36
37 #. type: SH
38 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
39 #: opensuse-tumbleweed
40 #, no-wrap
41 msgid "NAME"
42 msgstr "BEZEICHNUNG"
43
44 #. type: Plain text
45 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
46 #: opensuse-tumbleweed
47 msgid "getopt_long - parse command-line options"
48 msgstr "getopt_long - Befehlszeilenoptionen auswerten"
49
50 #. type: SH
51 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
52 #: opensuse-tumbleweed
53 #, no-wrap
54 msgid "LIBRARY"
55 msgstr "BIBLIOTHEK"
56
57 #. type: Plain text
58 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
59 #: opensuse-tumbleweed
60 msgid "Standard C library (I<libc>,\\ I<-lc>)"
61 msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)"
62
63 #. type: SH
64 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
65 #: opensuse-tumbleweed
66 #, no-wrap
67 msgid "SYNOPSIS"
68 msgstr "ÜBERSICHT"
69
70 #. type: Plain text
71 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
72 #: opensuse-tumbleweed
73 #, no-wrap
74 msgid ""
75 "B<#define _GNU_SOURCE>\n"
76 "B<#include E<lt>getopt.hE<gt>>\n"
77 msgstr ""
78 "B<#define _GNU_SOURCE>\n"
79 "B<#include E<lt>getopt.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
83 #: opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<int getopt_long(int >I<argc>B<, char *>I<argv>B<[],>\n"
87 "B< const char *>I<optstring>B<,>\n"
88 "B< const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n"
89 msgstr ""
90 "B<int getopt_long(int >I<argc>B<, char *>I<argv>B<[],>\n"
91 "B< const char *>I<optzeichenkette>B<,>\n"
92 "B< const struct option *>I<langopt>B<, int *>I<langindex>B<);>\n"
93
94 #. type: SH
95 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
96 #: opensuse-tumbleweed
97 #, no-wrap
98 msgid "DESCRIPTION"
99 msgstr "BESCHREIBUNG"
100
101 #. type: Plain text
102 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
103 #: opensuse-tumbleweed
104 msgid ""
105 "The B<getopt_long>() function works like B<getopt>(3) except that it also "
106 "accepts long options, started with two dashes. (If the program accepts only "
107 "long options, then I<optstring> should be specified as an empty string "
108 "(\"\"), not NULL.) Long option names may be abbreviated if the abbreviation "
109 "is unique or is an exact match for some defined option. A long option may "
110 "take a parameter, of the form B<--arg=param> or B<--arg param>."
111 msgstr ""
112 "Die Funktion B<getopt_long>() funktioniert wie B<getopt>(3), außer dass sie "
113 "auch lange Optionen, die mit zwei Bindestrichen beginnen, akzeptiert. (Falls "
114 "das Programm nur lange Optionen akzeptiert, dann sollte I<optzeichenkette> "
115 "als leere Zeichenkette (\"\") und nicht NULL angegeben werden). Lange "
116 "Optionen dürfen abgekürzt werden, falls die Abkürzung eindeutig ist oder "
117 "genau mit einer definierten Option übereinstimmt. Eine lange Option darf "
118 "einen Parameter der Form B<--arg=param> oder B<--arg param> akzeptieren."
119
120 #. type: Plain text
121 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
122 #: opensuse-tumbleweed
123 msgid ""
124 "I<longopts> is a pointer to the first element of an array of I<struct "
125 "option> declared in I<E<lt>getopt.hE<gt>> as"
126 msgstr ""
127 "I<langopt> ist ein Zeiger auf das erste Element eines Feldes von Strukturen "
128 "B<struct option>, die in B<E<lt>getopt.hE<gt>> deklariert ist als"
129
130 #. type: Plain text
131 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
132 #: opensuse-tumbleweed
133 #, no-wrap
134 msgid ""
135 "struct option {\n"
136 " const char *name;\n"
137 " int has_arg;\n"
138 " int *flag;\n"
139 " int val;\n"
140 "};\n"
141 msgstr ""
142 "struct option {\n"
143 " const char *name;\n"
144 " int has_arg;\n"
145 " int *flag;\n"
146 " int val;\n"
147 "};\n"
148
149 # #-#-#-#-# min-003-occurences.po (manpages-l10n) #-#-#-#-#
150 # # Ende von Teil 1 der formatierten Ausgabe: Zeile 120
151 #. type: Plain text
152 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
153 #: opensuse-tumbleweed
154 msgid "The meanings of the different fields are:"
155 msgstr "Die Bedeutungen der einzelnen Felder sind:"
156
157 #. type: TP
158 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
159 #: opensuse-tumbleweed
160 #, no-wrap
161 msgid "I<name>"
162 msgstr "I<name>"
163
164 #. type: Plain text
165 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
166 #: opensuse-tumbleweed
167 msgid "is the name of the long option."
168 msgstr "ist der Name der langen Option."
169
170 #. type: TP
171 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
172 #: opensuse-tumbleweed
173 #, no-wrap
174 msgid "I<has_arg>"
175 msgstr "I<has_arg>"
176
177 #. type: Plain text
178 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
179 #: opensuse-tumbleweed
180 msgid ""
181 "is: B<no_argument> (or 0) if the option does not take an argument; "
182 "B<required_argument> (or 1) if the option requires an argument; or "
183 "B<optional_argument> (or 2) if the option takes an optional argument."
184 msgstr ""
185 "ist: B<no_argument> (oder 0), falls die Option kein Argument erwartet, "
186 "B<required_argument> (oder 1), falls die Option ein Argument benötigt oder "
187 "B<optional_argument> (oder 2), falls die Option ein optionales Argument "
188 "erwartet."
189
190 #. type: TP
191 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
192 #: opensuse-tumbleweed
193 #, no-wrap
194 msgid "I<flag>"
195 msgstr "I<flag>"
196
197 #. type: Plain text
198 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
199 #: opensuse-tumbleweed
200 msgid ""
201 "specifies how results are returned for a long option. If I<flag> is NULL, "
202 "then B<getopt_long>() returns I<val>. (For example, the calling program "
203 "may set I<val> to the equivalent short option character.) Otherwise, "
204 "B<getopt_long>() returns 0, and I<flag> points to a variable which is set "
205 "to I<val> if the option is found, but left unchanged if the option is not "
206 "found."
207 msgstr ""
208 "gibt an, wie für eine lange Option Ergebnisse zurückgegeben werden. Falls "
209 "I<flag> NULL ist, dann gibt B<getopt_long>() I<val> zurück. (Zum Beispiel "
210 "kann das aufrufende Programm I<val> auf das Zeichen der äquivalenten "
211 "Kurzoption setzen.) Anderenfalls gibt B<getopt_long>() 0 zurück und I<flag> "
212 "zeigt auf eine Variable, die auf I<val> gesetzt wird, falls die Option "
213 "gefunden wird, und die unverändert gelassen wird, falls die Option nicht "
214 "gefunden wird."
215
216 #. type: TP
217 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
218 #: opensuse-tumbleweed
219 #, no-wrap
220 msgid "I<val>"
221 msgstr "I<val> "
222
223 #. type: Plain text
224 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
225 #: opensuse-tumbleweed
226 msgid ""
227 "is the value to return, or to load into the variable pointed to by I<flag>."
228 msgstr ""
229 "ist der Wert, der zurückzugeben oder in die Variable zu laden ist, auf die "
230 "I<flag> zeigt."
231
232 #. type: Plain text
233 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
234 #: opensuse-tumbleweed
235 msgid "The last element of the array has to be filled with zeros."
236 msgstr "Das letzte Element des Feldes muss mit Nullen gefüllt werden."
237
238 # #-#-#-#-# min-003-occurences.po (manpages-l10n) #-#-#-#-#
239 # s/wird/ist/?
240 #. type: Plain text
241 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
242 #: opensuse-tumbleweed
243 msgid ""
244 "If I<longindex> is not NULL, it points to a variable which is set to the "
245 "index of the long option relative to I<longopts>."
246 msgstr ""
247 "Falls I<langindex> nicht B<NULL> ist, zeigt er auf eine Variable, welche auf "
248 "den Index der langen Option relativ zu I<langopt> gesetzt wird."
249
250 #. type: Plain text
251 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
252 #: opensuse-tumbleweed
253 msgid ""
254 "Its analogue to B<getopt>(3)'s I<optopt> is \\[lq]I<argv[(optind - 1)]>\\"
255 "[rq]."
256 msgstr ""
257 "Sie ist zu »I<argv[(optind - 1)]>« von B<getopt>(3)'s I<optopt> analog."
258
259 #. type: SH
260 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
261 #: opensuse-tumbleweed
262 #, no-wrap
263 msgid "RETURN VALUE"
264 msgstr "RÜCKGABEWERT"
265
266 #. type: Plain text
267 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
268 #: opensuse-tumbleweed
269 msgid "See B<getopt>(3)."
270 msgstr "Siehe B<getopt>(3)."
271
272 #. type: Plain text
273 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
274 #: opensuse-tumbleweed
275 msgid ""
276 "B<getopt_long>() also returns the option character when a short option is "
277 "recognized. For a long option, it returns I<val> if I<flag> is NULL, and 0 "
278 "otherwise. Error and -1 returns are the same as for B<getopt>(3), plus \\"
279 "[aq]?\\[aq] for an ambiguous match or an extraneous parameter."
280 msgstr ""
281 "B<getopt_long>() liefert auch das Optionszeichen zurück, wenn eine kurze "
282 "Option erkannt wird. Für eine lange Option liefert sie I<val> zurück, wenn "
283 "I<flag> NULL ist und ansonsten 0. Fehler und -1 werden wie bei B<getopt>(3) "
284 "zurückgegeben, sowie »?« für einen nicht eindeutigen Treffer oder einen "
285 "irrelevanten Parameter."
286
287 #. type: SH
288 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
289 #: opensuse-tumbleweed
290 #, no-wrap
291 msgid "ENVIRONMENT"
292 msgstr "UMGEBUNGSVARIABLEN"
293
294 #. type: SH
295 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
296 #: opensuse-tumbleweed
297 #, no-wrap
298 msgid "ATTRIBUTES"
299 msgstr "ATTRIBUTE"
300
301 #. type: Plain text
302 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
303 #: opensuse-tumbleweed
304 msgid ""
305 "For an explanation of the terms used in this section, see B<attributes>(7)."
306 msgstr ""
307 "Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt "
308 "verwandten Ausdrücke."
309
310 #. type: tbl table
311 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
312 #: opensuse-tumbleweed
313 #, no-wrap
314 msgid "Interface"
315 msgstr "Schnittstelle"
316
317 #. type: tbl table
318 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
319 #: opensuse-tumbleweed
320 #, no-wrap
321 msgid "Attribute"
322 msgstr "Attribut"
323
324 #. type: tbl table
325 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
326 #: opensuse-tumbleweed
327 #, no-wrap
328 msgid "Value"
329 msgstr "Wert"
330
331 #. type: tbl table
332 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
333 #: opensuse-tumbleweed
334 #, no-wrap
335 msgid ".na\n"
336 msgstr ".na\n"
337
338 #. type: tbl table
339 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
340 #: opensuse-tumbleweed
341 #, no-wrap
342 msgid ".nh\n"
343 msgstr ".nh\n"
344
345 #. type: tbl table
346 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
347 #: opensuse-tumbleweed
348 #, no-wrap
349 msgid "B<getopt_long>()"
350 msgstr "B<getopt_long>()"
351
352 #. type: tbl table
353 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
354 #: opensuse-tumbleweed
355 #, no-wrap
356 msgid "Thread safety"
357 msgstr "Multithread-Fähigkeit"
358
359 #. type: tbl table
360 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
361 #: opensuse-tumbleweed
362 #, no-wrap
363 msgid "MT-Unsafe race:getopt env"
364 msgstr "MT-Unsicher race:getopt env"
365
366 #. type: SH
367 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
368 #: opensuse-tumbleweed
369 #, no-wrap
370 msgid "STANDARDS"
371 msgstr "STANDARDS"
372
373 #. type: Plain text
374 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
375 #: opensuse-tumbleweed
376 msgid "GNU."
377 msgstr "GNU."
378
379 #. type: SH
380 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
381 #: opensuse-tumbleweed
382 #, no-wrap
383 msgid "EXAMPLES"
384 msgstr "BEISPIELE"
385
386 #. type: Plain text
387 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
388 #: opensuse-tumbleweed
389 msgid ""
390 "The following example program illustrates the use of B<getopt_long>() with "
391 "most of its features."
392 msgstr ""
393 "Das folgende Beispielprogramm veranschaulicht die Benutzung von "
394 "B<getopt_long>() mit der Mehrzahl ihrer Funktionalitäten."
395
396 #. type: Plain text
397 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid ""
400 "#include E<lt>getopt.hE<gt>\n"
401 "#include E<lt>stdio.hE<gt>\n"
402 "#include E<lt>stdlib.hE<gt>\n"
403 "#include E<lt>unistd.hE<gt>\n"
404 "\\&\n"
405 "int\n"
406 "main(int argc, char *argv[])\n"
407 "{\n"
408 " int c;\n"
409 " int digit_optind = 0;\n"
410 "\\&\n"
411 " for (;;) {\n"
412 " int this_option_optind = optind ? optind : 1;\n"
413 " int option_index = 0;\n"
414 " static struct option long_options[] = {\n"
415 " {\"add\", required_argument, 0, 0 },\n"
416 " {\"append\", no_argument, 0, 0 },\n"
417 " {\"delete\", required_argument, 0, 0 },\n"
418 " {\"verbose\", no_argument, 0, 0 },\n"
419 " {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n"
420 " {\"file\", required_argument, 0, 0 },\n"
421 " {0, 0, 0, 0 }\n"
422 " };\n"
423 "\\&\n"
424 " c = getopt_long(argc, argv, \"abc:d:012\",\n"
425 " long_options, &option_index);\n"
426 " if (c == -1)\n"
427 " break;\n"
428 "\\&\n"
429 " switch (c) {\n"
430 " case 0:\n"
431 " printf(\"option %s\", long_options[option_index].name);\n"
432 " if (optarg)\n"
433 " printf(\" with arg %s\", optarg);\n"
434 " printf(\"\\[rs]n\");\n"
435 " break;\n"
436 "\\&\n"
437 " case \\[aq]0\\[aq]:\n"
438 " case \\[aq]1\\[aq]:\n"
439 " case \\[aq]2\\[aq]:\n"
440 " if (digit_optind != 0 && digit_optind != this_option_optind)\n"
441 " printf(\"digits occur in two different argv-elements.\\[rs]n\");\n"
442 " digit_optind = this_option_optind;\n"
443 " printf(\"option %c\\[rs]n\", c);\n"
444 " break;\n"
445 "\\&\n"
446 " case \\[aq]a\\[aq]:\n"
447 " printf(\"option a\\[rs]n\");\n"
448 " break;\n"
449 "\\&\n"
450 " case \\[aq]b\\[aq]:\n"
451 " printf(\"option b\\[rs]n\");\n"
452 " break;\n"
453 "\\&\n"
454 " case \\[aq]c\\[aq]:\n"
455 " printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
456 " break;\n"
457 "\\&\n"
458 " case \\[aq]d\\[aq]:\n"
459 " printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
460 " break;\n"
461 "\\&\n"
462 " case \\[aq]?\\[aq]:\n"
463 " break;\n"
464 "\\&\n"
465 " default:\n"
466 " printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n"
467 " }\n"
468 " }\n"
469 "\\&\n"
470 " if (optind E<lt> argc) {\n"
471 " printf(\"non-option ARGV-elements: \");\n"
472 " while (optind E<lt> argc)\n"
473 " printf(\"%s \", argv[optind++]);\n"
474 " printf(\"\\[rs]n\");\n"
475 " }\n"
476 "\\&\n"
477 " exit(EXIT_SUCCESS);\n"
478 "}\n"
479 msgstr ""
480 "#include E<lt>getopt.hE<gt>\n"
481 "#include E<lt>stdio.hE<gt>\n"
482 "#include E<lt>stdlib.hE<gt>\n"
483 "#include E<lt>unistd.hE<gt>\n"
484 "\\&\n"
485 "int\n"
486 "main(int argc, char *argv[])\n"
487 "{\n"
488 " int c;\n"
489 " int digit_optind = 0;\n"
490 "\\&\n"
491 " for (;;) {\n"
492 " int this_option_optind = optind ? optind : 1;\n"
493 " int option_index = 0;\n"
494 " static struct option long_options[] = {\n"
495 " {\"add\", required_argument, 0, 0 },\n"
496 " {\"append\", no_argument, 0, 0 },\n"
497 " {\"delete\", required_argument, 0, 0 },\n"
498 " {\"verbose\", no_argument, 0, 0 },\n"
499 " {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n"
500 " {\"file\", required_argument, 0, 0 },\n"
501 " {0, 0, 0, 0 }\n"
502 " };\n"
503 "\\&\n"
504 " c = getopt_long(argc, argv, \"abc:d:012\",\n"
505 " long_options, &option_index);\n"
506 " if (c == -1)\n"
507 " break;\n"
508 "\\&\n"
509 " switch (c) {\n"
510 " case 0:\n"
511 " printf(\"Option %s\", long_options[option_index].name);\n"
512 " if (optarg)\n"
513 " printf(\" mit Arg %s\", optarg);\n"
514 " printf(\"\\[rs]n\");\n"
515 " break;\n"
516 "\\&\n"
517 " case \\[aq]0\\[aq]:\n"
518 " case \\[aq]1\\[aq]:\n"
519 " case \\[aq]2\\[aq]:\n"
520 " if (digit_optind != 0 && digit_optind != this_option_optind)\n"
521 " printf(\"Ziffern treten in zwei verschiedenen Argv-Elementen auf.\\[rs]n\");\n"
522 " digit_optind = this_option_optind;\n"
523 " printf(\"Option %c\\[rs]n\", c);\n"
524 " break;\n"
525 "\\&\n"
526 " case \\[aq]a\\[aq]:\n"
527 " printf(\"Option a\\[rs]n\");\n"
528 " break;\n"
529 "\\&\n"
530 " case \\[aq]b\\[aq]:\n"
531 " printf(\"Option b\\[rs]n\");\n"
532 " break;\n"
533 "\\&\n"
534 " case \\[aq]c\\[aq]:\n"
535 " printf(\"Option c mit Wert \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
536 " break;\n"
537 "\\&\n"
538 " case \\[aq]d\\[aq]:\n"
539 " printf(\"Option d mit Wert \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
540 " break;\n"
541 "\\&\n"
542 " case \\[aq]?\\[aq]:\n"
543 " break;\n"
544 "\\&\n"
545 " default:\n"
546 " printf(\"?? getopt lieferte Zeichen-Code 0%o ??\\[rs]n\", c);\n"
547 " }\n"
548 " }\n"
549 "\\&\n"
550 " if (optind E<lt> argc) {\n"
551 " printf(\"Nicht-Options-ARGV-Elemente: \");\n"
552 " while (optind E<lt> argc)\n"
553 " printf(\"%s \", argv[optind++]);\n"
554 " printf(\"\\[rs]n\");\n"
555 " }\n"
556 "\\&\n"
557 " exit(EXIT_SUCCESS);\n"
558 "}\n"
559
560 #. SRC END
561 #. type: SH
562 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
563 #: opensuse-tumbleweed
564 #, no-wrap
565 msgid "SEE ALSO"
566 msgstr "SIEHE AUCH"
567
568 #. type: Plain text
569 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
570 #: opensuse-tumbleweed
571 msgid "B<getopt>(1), B<getopt>(3), B<getopt_long_only>(3), B<getsubopt>(3)"
572 msgstr "B<getopt>(1), B<getopt>(3), B<getopt_long_only>(3), B<getsubopt>(3)"
573
574 #. type: TH
575 #: mageia-cauldron
576 #, no-wrap
577 msgid "2025-12-25"
578 msgstr "25. Dezember 2025"
579
580 #. type: TH
581 #: mageia-cauldron
582 #, no-wrap
583 msgid "Linux man-pages 6.17"
584 msgstr "Linux man-pages 6.17"
585
586 #. type: Plain text
587 #: mageia-cauldron
588 #, no-wrap
589 msgid ""
590 "#include E<lt>getopt.hE<gt>\n"
591 "#include E<lt>stdio.hE<gt>\n"
592 "#include E<lt>stdlib.hE<gt>\n"
593 "#include E<lt>unistd.hE<gt>\n"
594 "\\&\n"
595 "int\n"
596 "main(int argc, char *argv[])\n"
597 "{\n"
598 " int c;\n"
599 " int digit_optind = 0;\n"
600 "\\&\n"
601 " while (1) {\n"
602 " int this_option_optind = optind ? optind : 1;\n"
603 " int option_index = 0;\n"
604 " static struct option long_options[] = {\n"
605 " {\"add\", required_argument, 0, 0 },\n"
606 " {\"append\", no_argument, 0, 0 },\n"
607 " {\"delete\", required_argument, 0, 0 },\n"
608 " {\"verbose\", no_argument, 0, 0 },\n"
609 " {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n"
610 " {\"file\", required_argument, 0, 0 },\n"
611 " {0, 0, 0, 0 }\n"
612 " };\n"
613 "\\&\n"
614 " c = getopt_long(argc, argv, \"abc:d:012\",\n"
615 " long_options, &option_index);\n"
616 " if (c == -1)\n"
617 " break;\n"
618 "\\&\n"
619 " switch (c) {\n"
620 " case 0:\n"
621 " printf(\"option %s\", long_options[option_index].name);\n"
622 " if (optarg)\n"
623 " printf(\" with arg %s\", optarg);\n"
624 " printf(\"\\[rs]n\");\n"
625 " break;\n"
626 "\\&\n"
627 " case \\[aq]0\\[aq]:\n"
628 " case \\[aq]1\\[aq]:\n"
629 " case \\[aq]2\\[aq]:\n"
630 " if (digit_optind != 0 && digit_optind != this_option_optind)\n"
631 " printf(\"digits occur in two different argv-elements.\\[rs]n\");\n"
632 " digit_optind = this_option_optind;\n"
633 " printf(\"option %c\\[rs]n\", c);\n"
634 " break;\n"
635 "\\&\n"
636 " case \\[aq]a\\[aq]:\n"
637 " printf(\"option a\\[rs]n\");\n"
638 " break;\n"
639 "\\&\n"
640 " case \\[aq]b\\[aq]:\n"
641 " printf(\"option b\\[rs]n\");\n"
642 " break;\n"
643 "\\&\n"
644 " case \\[aq]c\\[aq]:\n"
645 " printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
646 " break;\n"
647 "\\&\n"
648 " case \\[aq]d\\[aq]:\n"
649 " printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
650 " break;\n"
651 "\\&\n"
652 " case \\[aq]?\\[aq]:\n"
653 " break;\n"
654 "\\&\n"
655 " default:\n"
656 " printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n"
657 " }\n"
658 " }\n"
659 "\\&\n"
660 " if (optind E<lt> argc) {\n"
661 " printf(\"non-option ARGV-elements: \");\n"
662 " while (optind E<lt> argc)\n"
663 " printf(\"%s \", argv[optind++]);\n"
664 " printf(\"\\[rs]n\");\n"
665 " }\n"
666 "\\&\n"
667 " exit(EXIT_SUCCESS);\n"
668 "}\n"
669 msgstr ""
670 "#include E<lt>getopt.hE<gt>\n"
671 "#include E<lt>stdio.hE<gt>\n"
672 "#include E<lt>stdlib.hE<gt>\n"
673 "#include E<lt>unistd.hE<gt>\n"
674 "\\&\n"
675 "int\n"
676 "main(int argc, char *argv[])\n"
677 "{\n"
678 " int c;\n"
679 " int digit_optind = 0;\n"
680 "\\&\n"
681 " while (1) {\n"
682 " int this_option_optind = optind ? optind : 1;\n"
683 " int option_index = 0;\n"
684 " static struct option long_options[] = {\n"
685 " {\"add\", required_argument, 0, 0 },\n"
686 " {\"append\", no_argument, 0, 0 },\n"
687 " {\"delete\", required_argument, 0, 0 },\n"
688 " {\"verbose\", no_argument, 0, 0 },\n"
689 " {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n"
690 " {\"file\", required_argument, 0, 0 },\n"
691 " {0, 0, 0, 0 }\n"
692 " };\n"
693 "\\&\n"
694 " c = getopt_long(argc, argv, \"abc:d:012\",\n"
695 " long_options, &option_index);\n"
696 " if (c == -1)\n"
697 " break;\n"
698 "\\&\n"
699 " switch (c) {\n"
700 " case 0:\n"
701 " printf(\"Option %s\", long_options[option_index].name);\n"
702 " if (optarg)\n"
703 " printf(\" mit Arg %s\", optarg);\n"
704 " printf(\"\\[rs]n\");\n"
705 " break;\n"
706 "\\&\n"
707 " case \\[aq]0\\[aq]:\n"
708 " case \\[aq]1\\[aq]:\n"
709 " case \\[aq]2\\[aq]:\n"
710 " if (digit_optind != 0 && digit_optind != this_option_optind)\n"
711 " printf(\"Ziffern treten in zwei verschiedenen Argv-Elementen auf.\\[rs]n\");\n"
712 " digit_optind = this_option_optind;\n"
713 " printf(\"Option %c\\[rs]n\", c);\n"
714 " break;\n"
715 "\\&\n"
716 " case \\[aq]a\\[aq]:\n"
717 " printf(\"Option a\\[rs]n\");\n"
718 " break;\n"
719 "\\&\n"
720 " case \\[aq]b\\[aq]:\n"
721 " printf(\"Option b\\[rs]n\");\n"
722 " break;\n"
723 "\\&\n"
724 " case \\[aq]c\\[aq]:\n"
725 " printf(\"Option c mit Wert \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
726 " break;\n"
727 "\\&\n"
728 " case \\[aq]d\\[aq]:\n"
729 " printf(\"Option d mit Wert \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
730 " break;\n"
731 "\\&\n"
732 " case \\[aq]?\\[aq]:\n"
733 " break;\n"
734 "\\&\n"
735 " default:\n"
736 " printf(\"?? getopt lieferte Zeichen-Code 0%o ??\\[rs]n\", c);\n"
737 " }\n"
738 " }\n"
739 "\\&\n"
740 " if (optind E<lt> argc) {\n"
741 " printf(\"Nicht-Options-ARGV-Elemente: \");\n"
742 " while (optind E<lt> argc)\n"
743 " printf(\"%s \", argv[optind++]);\n"
744 " printf(\"\\[rs]n\");\n"
745 " }\n"
746 "\\&\n"
747 " exit(EXIT_SUCCESS);\n"
748 "}\n"
749
750 #. type: TH
751 #: opensuse-leap-16-1 opensuse-tumbleweed
752 #, no-wrap
753 msgid "Linux man-pages (unreleased)"
754 msgstr "Linux man-pages (unveröffentlicht)"