Moin Mitübersetzer,
ich habe heute eine Handbuchseite aus Abschnitt 3 fertig übersetzt.

Es sind insgesamt 51 Zeichenketten, ca. 25 pro Teil.

Für konstruktives Korrekturlesen wäre ich sehr dankbar.

Viele Grüße

           Helge

-- 
      Dr. Helge Kreutzmann                     [email protected]
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/
# s/wird/ist/?
#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
msgid ""
"If I<longindex> is not NULL, it points to a variable which is set to the "
"index of the long option relative to I<longopts>."
msgstr ""
"Falls I<langindex> nicht B<NULL> ist, zeigt er auf eine Variable, welche auf "
"den Index der langen Option relativ zu I<langopt> gesetzt wird."

#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
msgid ""
"Its analogue to B<getopt>(3)'s I<optopt> is \\[lq]I<argv[(optind - 1)]>\\"
"[rq]."
msgstr ""
"Sie ist zu »I<argv[(optind - 1)]>« von B<getopt>(3)'s I<optopt> analog."

#. type: SH
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "RETURN VALUE"
msgstr "RÜCKGABEWERT"

#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
msgid "See B<getopt>(3)."
msgstr "Siehe B<getopt>(3)."

#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
msgid ""
"B<getopt_long>()  also returns the option character when a short option is "
"recognized.  For a long option, it returns I<val> if I<flag> is NULL, and 0 "
"otherwise.  Error and -1 returns are the same as for B<getopt>(3), plus \\"
"[aq]?\\[aq] for an ambiguous match or an extraneous parameter."
msgstr ""
"B<getopt_long>() liefert auch das Optionszeichen zurück, wenn eine kurze "
"Option erkannt wird. Für eine lange Option liefert sie I<val> zurück, wenn "
"I<flag> NULL ist und ansonsten 0. Fehler und -1 werden wie bei B<getopt>(3) "
"zurückgegeben, sowie »?« für einen nicht eindeutigen Treffer oder einen "
"zusätzlichen Parameter."

#. type: SH
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "ENVIRONMENT"
msgstr "UMGEBUNGSVARIABLEN"

#. type: SH
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "ATTRIBUTES"
msgstr "ATTRIBUTE"

#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
msgid ""
"For an explanation of the terms used in this section, see B<attributes>(7)."
msgstr ""
"Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt "
"verwandten Ausdrücke."

#. type: tbl table
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "Interface"
msgstr "Schnittstelle"

#. type: tbl table
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "Attribute"
msgstr "Attribut"

#. type: tbl table
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "Value"
msgstr "Wert"

#. type: tbl table
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid ".na\n"
msgstr ".na\n"

#. type: tbl table
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid ".nh\n"
msgstr ".nh\n"

#. type: tbl table
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "B<getopt_long>()"
msgstr "B<getopt_long>()"

#. type: tbl table
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "Thread safety"
msgstr "Multithread-Fähigkeit"

#. type: tbl table
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "MT-Unsafe race:getopt env"
msgstr "MT-Unsicher race:getopt env"

#. type: SH
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "STANDARDS"
msgstr "STANDARDS"

#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
msgid "GNU."
msgstr "GNU."

#. type: SH
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "EXAMPLES"
msgstr "BEISPIELE"

#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
msgid ""
"The following example program illustrates the use of B<getopt_long>()  with "
"most of its features."
msgstr ""
"Das folgende Beispielprogramm veranschaulicht die Benutzung von "
"B<getopt_long>() mit der Mehrzahl ihrer Funktionalitäten."

#. type: Plain text
#: archlinux debian-unstable opensuse-tumbleweed
#, no-wrap
msgid ""
"#include E<lt>getopt.hE<gt>\n"
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
"int\n"
"main(int argc, char *argv[])\n"
"{\n"
"    int c;\n"
"    int digit_optind = 0;\n"
"\\&\n"
"    for (;;) {\n"
"        int this_option_optind = optind ? optind : 1;\n"
"        int option_index = 0;\n"
"        static struct option long_options[] = {\n"
"            {\"add\",     required_argument, 0,  0 },\n"
"            {\"append\",  no_argument,       0,  0 },\n"
"            {\"delete\",  required_argument, 0,  0 },\n"
"            {\"verbose\", no_argument,       0,  0 },\n"
"            {\"create\",  required_argument, 0, \\[aq]c\\[aq]},\n"
"            {\"file\",    required_argument, 0,  0 },\n"
"            {0,         0,                 0,  0 }\n"
"        };\n"
"\\&\n"
"        c = getopt_long(argc, argv, \"abc:d:012\",\n"
"                        long_options, &option_index);\n"
"        if (c == -1)\n"
"            break;\n"
"\\&\n"
"        switch (c) {\n"
"        case 0:\n"
"            printf(\"option %s\", long_options[option_index].name);\n"
"            if (optarg)\n"
"                printf(\" with arg %s\", optarg);\n"
"            printf(\"\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]0\\[aq]:\n"
"        case \\[aq]1\\[aq]:\n"
"        case \\[aq]2\\[aq]:\n"
"            if (digit_optind != 0 && digit_optind != this_option_optind)\n"
"              printf(\"digits occur in two different 
argv-elements.\\[rs]n\");\n"
"            digit_optind = this_option_optind;\n"
"            printf(\"option %c\\[rs]n\", c);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]a\\[aq]:\n"
"            printf(\"option a\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]b\\[aq]:\n"
"            printf(\"option b\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]c\\[aq]:\n"
"            printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]d\\[aq]:\n"
"            printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]?\\[aq]:\n"
"            break;\n"
"\\&\n"
"        default:\n"
"            printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n"
"        }\n"
"    }\n"
"\\&\n"
"    if (optind E<lt> argc) {\n"
"        printf(\"non-option ARGV-elements: \");\n"
"        while (optind E<lt> argc)\n"
"            printf(\"%s \", argv[optind++]);\n"
"        printf(\"\\[rs]n\");\n"
"    }\n"
"\\&\n"
"    exit(EXIT_SUCCESS);\n"
"}\n"
msgstr ""
"#include E<lt>getopt.hE<gt>\n"
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
"int\n"
"main(int argc, char *argv[])\n"
"{\n"
"    int c;\n"
"    int digit_optind = 0;\n"
"\\&\n"
"    for (;;) {\n"
"        int this_option_optind = optind ? optind : 1;\n"
"        int option_index = 0;\n"
"        static struct option long_options[] = {\n"
"            {\"add\",     required_argument, 0,  0 },\n"
"            {\"append\",  no_argument,       0,  0 },\n"
"            {\"delete\",  required_argument, 0,  0 },\n"
"            {\"verbose\", no_argument,       0,  0 },\n"
"            {\"create\",  required_argument, 0, \\[aq]c\\[aq]},\n"
"            {\"file\",    required_argument, 0,  0 },\n"
"            {0,         0,                 0,  0 }\n"
"        };\n"
"\\&\n"
"        c = getopt_long(argc, argv, \"abc:d:012\",\n"
"                        long_options, &option_index);\n"
"        if (c == -1)\n"
"            break;\n"
"\\&\n"
"        switch (c) {\n"
"        case 0:\n"
"            printf(\"Option %s\", long_options[option_index].name);\n"
"            if (optarg)\n"
"                printf(\" mit Arg %s\", optarg);\n"
"            printf(\"\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]0\\[aq]:\n"
"        case \\[aq]1\\[aq]:\n"
"        case \\[aq]2\\[aq]:\n"
"            if (digit_optind != 0 && digit_optind != this_option_optind)\n"
"              printf(\"Ziffern treten in zwei verschiedenen Argv-Elementen 
auf.\\[rs]n\");\n"
"            digit_optind = this_option_optind;\n"
"            printf(\"Option %c\\[rs]n\", c);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]a\\[aq]:\n"
"            printf(\"Option a\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]b\\[aq]:\n"
"            printf(\"Option b\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]c\\[aq]:\n"
"            printf(\"Option c mit Wert \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]d\\[aq]:\n"
"            printf(\"Option d mit Wert \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]?\\[aq]:\n"
"            break;\n"
"\\&\n"
"        default:\n"
"            printf(\"?? getopt lieferte Zeichen-Code 0%o ??\\[rs]n\", c);\n"
"        }\n"
"    }\n"
"\\&\n"
"    if (optind E<lt> argc) {\n"
"        printf(\"Nicht-Options-ARGV-Elemente: \");\n"
"        while (optind E<lt> argc)\n"
"            printf(\"%s \", argv[optind++]);\n"
"        printf(\"\\[rs]n\");\n"
"    }\n"
"\\&\n"
"    exit(EXIT_SUCCESS);\n"
"}\n"

#.  SRC END
#. type: SH
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "SEE ALSO"
msgstr "SIEHE AUCH"

#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-tumbleweed
msgid "B<getopt>(1), B<getopt>(3), B<getopt_long_only>(3), B<getsubopt>(3)"
msgstr "B<getopt>(1), B<getopt>(3), B<getopt_long_only>(3), B<getsubopt>(3)"

#. type: TH
#: mageia-cauldron
#, no-wrap
msgid "2025-12-25"
msgstr "25. Dezember 2025"

#. type: TH
#: mageia-cauldron
#, no-wrap
msgid "Linux man-pages 6.17"
msgstr "Linux man-pages 6.17"

#. type: Plain text
#: mageia-cauldron
#, no-wrap
msgid ""
"#include E<lt>getopt.hE<gt>\n"
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
"int\n"
"main(int argc, char *argv[])\n"
"{\n"
"    int c;\n"
"    int digit_optind = 0;\n"
"\\&\n"
"    while (1) {\n"
"        int this_option_optind = optind ? optind : 1;\n"
"        int option_index = 0;\n"
"        static struct option long_options[] = {\n"
"            {\"add\",     required_argument, 0,  0 },\n"
"            {\"append\",  no_argument,       0,  0 },\n"
"            {\"delete\",  required_argument, 0,  0 },\n"
"            {\"verbose\", no_argument,       0,  0 },\n"
"            {\"create\",  required_argument, 0, \\[aq]c\\[aq]},\n"
"            {\"file\",    required_argument, 0,  0 },\n"
"            {0,         0,                 0,  0 }\n"
"        };\n"
"\\&\n"
"        c = getopt_long(argc, argv, \"abc:d:012\",\n"
"                        long_options, &option_index);\n"
"        if (c == -1)\n"
"            break;\n"
"\\&\n"
"        switch (c) {\n"
"        case 0:\n"
"            printf(\"option %s\", long_options[option_index].name);\n"
"            if (optarg)\n"
"                printf(\" with arg %s\", optarg);\n"
"            printf(\"\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]0\\[aq]:\n"
"        case \\[aq]1\\[aq]:\n"
"        case \\[aq]2\\[aq]:\n"
"            if (digit_optind != 0 && digit_optind != this_option_optind)\n"
"              printf(\"digits occur in two different 
argv-elements.\\[rs]n\");\n"
"            digit_optind = this_option_optind;\n"
"            printf(\"option %c\\[rs]n\", c);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]a\\[aq]:\n"
"            printf(\"option a\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]b\\[aq]:\n"
"            printf(\"option b\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]c\\[aq]:\n"
"            printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]d\\[aq]:\n"
"            printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]?\\[aq]:\n"
"            break;\n"
"\\&\n"
"        default:\n"
"            printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n"
"        }\n"
"    }\n"
"\\&\n"
"    if (optind E<lt> argc) {\n"
"        printf(\"non-option ARGV-elements: \");\n"
"        while (optind E<lt> argc)\n"
"            printf(\"%s \", argv[optind++]);\n"
"        printf(\"\\[rs]n\");\n"
"    }\n"
"\\&\n"
"    exit(EXIT_SUCCESS);\n"
"}\n"
msgstr ""
"#include E<lt>getopt.hE<gt>\n"
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
"int\n"
"main(int argc, char *argv[])\n"
"{\n"
"    int c;\n"
"    int digit_optind = 0;\n"
"\\&\n"
"    while (1) {\n"
"        int this_option_optind = optind ? optind : 1;\n"
"        int option_index = 0;\n"
"        static struct option long_options[] = {\n"
"            {\"add\",     required_argument, 0,  0 },\n"
"            {\"append\",  no_argument,       0,  0 },\n"
"            {\"delete\",  required_argument, 0,  0 },\n"
"            {\"verbose\", no_argument,       0,  0 },\n"
"            {\"create\",  required_argument, 0, \\[aq]c\\[aq]},\n"
"            {\"file\",    required_argument, 0,  0 },\n"
"            {0,         0,                 0,  0 }\n"
"        };\n"
"\\&\n"
"        c = getopt_long(argc, argv, \"abc:d:012\",\n"
"                        long_options, &option_index);\n"
"        if (c == -1)\n"
"            break;\n"
"\\&\n"
"        switch (c) {\n"
"        case 0:\n"
"            printf(\"Option %s\", long_options[option_index].name);\n"
"            if (optarg)\n"
"                printf(\" mit Arg %s\", optarg);\n"
"            printf(\"\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]0\\[aq]:\n"
"        case \\[aq]1\\[aq]:\n"
"        case \\[aq]2\\[aq]:\n"
"            if (digit_optind != 0 && digit_optind != this_option_optind)\n"
"              printf(\"Ziffern treten in zwei verschiedenen Argv-Elementen 
auf.\\[rs]n\");\n"
"            digit_optind = this_option_optind;\n"
"            printf(\"Option %c\\[rs]n\", c);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]a\\[aq]:\n"
"            printf(\"Option a\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]b\\[aq]:\n"
"            printf(\"Option b\\[rs]n\");\n"
"            break;\n"
"\\&\n"
"        case \\[aq]c\\[aq]:\n"
"            printf(\"Option c mit Wert \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]d\\[aq]:\n"
"            printf(\"Option d mit Wert \\[aq]%s\\[aq]\\[rs]n\", optarg);\n"
"            break;\n"
"\\&\n"
"        case \\[aq]?\\[aq]:\n"
"            break;\n"
"\\&\n"
"        default:\n"
"            printf(\"?? getopt lieferte Zeichen-Code 0%o ??\\[rs]n\", c);\n"
"        }\n"
"    }\n"
"\\&\n"
"    if (optind E<lt> argc) {\n"
"        printf(\"Nicht-Options-ARGV-Elemente: \");\n"
"        while (optind E<lt> argc)\n"
"            printf(\"%s \", argv[optind++]);\n"
"        printf(\"\\[rs]n\");\n"
"    }\n"
"\\&\n"
"    exit(EXIT_SUCCESS);\n"
"}\n"

#. type: TH
#: opensuse-tumbleweed
#, no-wrap
msgid "Linux man-pages (unreleased)"
msgstr "Linux man-pages (unveröffentlicht)"

Attachment: signature.asc
Description: PGP signature

Antwort per Email an