# Romanian translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # Remus-Gabriel Chelu , 2025. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.26.2\n" "POT-Creation-Date: 2026-06-05 06:27+0200\n" "PO-Revision-Date: 2025-11-05 18:43+0100\n" "Last-Translator: Remus-Gabriel Chelu \n" "Language-Team: Romanian \n" "Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " "20)) ? 1 : 2;\n" "X-Generator: Poedit 3.6\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "insque" msgstr "insque" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 februarie 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "Pagini de manual de Linux 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "NUME" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "insque, remque - insert/remove an item from a queue" msgstr "insque, remque - inserează/elimină un element dintr-o coadă" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "BIBLIOTECA" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "Biblioteca C standard (I, I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "SINOPSIS" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Esearch.hE>\n" msgstr "B<#include Esearch.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "BIB<, void *>IB<);>\n" "BIB<);>\n" msgstr "" "BIB<, void *>IB<);>\n" "BIB<);>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" "Cerințe pentru macrocomenzi de testare a caracteristicilor pentru glibc " "(consultați B(7)):" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(), B():" msgstr "B(), B():" #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " _XOPEN_SOURCE E= 500\n" " || /* glibc E= 2.19: */ _DEFAULT_SOURCE\n" " || /* glibc E= 2.19: */ _SVID_SOURCE\n" msgstr "" " _XOPEN_SOURCE E= 500\n" " || /* glibc E= 2.19: */ _DEFAULT_SOURCE\n" " || /* glibc E= 2.19: */ _SVID_SOURCE\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "DESCRIERE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() and B() functions manipulate doubly linked lists. " "Each element in the list is a structure of which the first two elements are " "a forward and a backward pointer. The linked list may be linear (i.e., NULL " "forward pointer at the end of the list and NULL backward pointer at the " "start of the list) or circular." msgstr "" "Funcțiile B() și B() manipulează liste dublu legate. Fiecare " "element din listă este o structură ale cărei prime două elemente sunt un " "indicator înainte și un indicator înapoi. Lista legată poate fi liniară " "(adică, indicator înainte NULL la sfârșitul listei și indicator înapoi NULL " "la începutul listei) sau circulară." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function inserts the element pointed to by I " "immediately after the element pointed to by I." msgstr "" "Funcția B() inserează elementul indicat de I imediat după " "elementul indicat de I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the list is linear, then the call I can be used to " "insert the initial list element, and the call sets the forward and backward " "pointers of I to NULL." msgstr "" "Dacă lista este liniară, atunci apelul I poate fi " "utilizat pentru a introduce elementul inițial al listei, iar apelul " "stabilește indicatorii înainte și înapoi ai lui I la NULL." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the list is circular, the caller should ensure that the forward and " "backward pointers of the first element are initialized to point to that " "element, and the I argument of the B() call should also point " "to the element." msgstr "" "Dacă lista este circulară, apelantul trebuie să se asigure că indicatorii " "înainte și înapoi ai primului element sunt inițializați pentru a indica " "elementul respectiv, iar argumentul I al apelului B() trebuie " "să indice și el elementul." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function removes the element pointed to by I from the " "doubly linked list." msgstr "" "Funcția B() elimină elementul indicat de I din lista dublu " "legată." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "ATRIBUTE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea " "B(7)." #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "Interfață" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "Atribut" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "Valoare" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr ".na\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr ".nh\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B(),\n" "B()" msgstr "" "B(),\n" "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "Siguranța firelor" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Safe" msgstr "MT-Safe" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "VERSIONS" msgstr "VERSIUNI" #. e.g., SunOS, Linux libc4 and libc5 #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "On ancient systems, the arguments of these functions were of type I, defined as:" msgstr "" "În sistemele vechi, argumentele acestor funcții erau de tipul I, definite astfel:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct qelem {\n" " struct qelem *q_forw;\n" " struct qelem *q_back;\n" " char q_data[1];\n" "};\n" msgstr "" "struct qelem {\n" " struct qelem *q_forw;\n" " struct qelem *q_back;\n" " char q_data[1];\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is still what you will get if B<_GNU_SOURCE> is defined before " "including Isearch.hE>." msgstr "" "Aceasta este ceea ce veți obține dacă B<_GNU_SOURCE> este definit înainte de " "a include Isearch.hE>." #. #-#-#-#-# archlinux: insque.3.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc4 and libc 5 placed them in #. .IR . #. type: Plain text #. #-#-#-#-# debian-trixie: insque.3.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc4 and libc 5 placed them #. in \fI\fP. #. type: Plain text #. #-#-#-#-# debian-unstable: insque.3.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc4 and libc 5 placed them in #. .IR . #. type: Plain text #. #-#-#-#-# fedora-44: insque.3.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc4 and libc 5 placed them #. in \fI\fP. #. type: Plain text #. #-#-#-#-# fedora-rawhide: insque.3.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc4 and libc 5 placed them #. in \fI\fP. #. type: Plain text #. #-#-#-#-# mageia-cauldron: insque.3.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc4 and libc 5 placed them in #. .IR . #. type: Plain text #. #-#-#-#-# opensuse-leap-16-1: insque.3.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc4 and libc 5 placed them in #. .IR . #. type: Plain text #. #-#-#-#-# opensuse-tumbleweed: insque.3.pot (PACKAGE VERSION) #-#-#-#-# #. Linux libc4 and libc 5 placed them in #. .IR . #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The location of the prototypes for these functions differs among several " "versions of UNIX. The above is the POSIX version. Some systems place them " "in Istring.hE>." msgstr "" "Locația prototipurilor pentru aceste funcții diferă între mai multe versiuni " "ale UNIX. Cea de mai sus este versiunea POSIX. Unele sisteme le plasează în " "Istring.hE>." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "STANDARDE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2008." msgstr "POSIX.1-2008." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "ISTORIC" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2001." msgstr "POSIX.1-2001." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "ERORI" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In glibc 2.4 and earlier, it was not possible to specify I as NULL. " "Consequently, to build a linear list, the caller had to build a list using " "an initial call that contained the first two elements of the list, with the " "forward and backward pointers in each element suitably initialized." msgstr "" "În glibc 2.4 și anterior, nu era posibil să se specifice I ca NULL. În " "consecință, pentru a construi o listă liniară, apelantul trebuia să " "construiască o listă utilizând un apel inițial care conținea primele două " "elemente ale listei, cu indicatorii înainte și înapoi din fiecare element " "inițializați corespunzător." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "EXEMPLE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The program below demonstrates the use of B(). Here is an example " "run of the program:" msgstr "" "Programul de mai jos demonstrează utilizarea lui B(). Iată un " "exemplu de execuție a programului:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "$ B<./a.out -c a b c>\n" "Traversing completed list:\n" " a\n" " b\n" " c\n" "That was a circular list\n" msgstr "" "$ B<./a.out -c a b c>\n" "Parcurgerea listei completate:\n" " a\n" " b\n" " c\n" "Aceasta a fost o listă circulară\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "Sursa programului" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#include Esearch.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eunistd.hE\n" "\\&\n" "struct element {\n" " struct element *forward;\n" " struct element *backward;\n" " char *name;\n" "};\n" "\\&\n" "static struct element *\n" "new_element(void)\n" "{\n" " struct element *e;\n" "\\&\n" " e = malloc(sizeof(*e));\n" " if (e == NULL) {\n" " fprintf(stderr, \"malloc() failed\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " return e;\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " struct element *first, *elem, *prev;\n" " int circular, opt, errfnd;\n" "\\&\n" " /* The \"-c\" command-line option can be used to specify that the\n" " list is circular. */\n" "\\&\n" " errfnd = 0;\n" " circular = 0;\n" " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n" " switch (opt) {\n" " case \\[aq]c\\[aq]:\n" " circular = 1;\n" " break;\n" " default:\n" " errfnd = 1;\n" " break;\n" " }\n" " }\n" "\\&\n" " if (errfnd || optind E= argc) {\n" " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Create first element and place it in the linked list. */\n" "\\&\n" " elem = new_element();\n" " first = elem;\n" "\\&\n" " elem-Ename = argv[optind];\n" "\\&\n" " if (circular) {\n" " elem-Eforward = elem;\n" " elem-Ebackward = elem;\n" " insque(elem, elem);\n" " } else {\n" " insque(elem, NULL);\n" " }\n" "\\&\n" " /* Add remaining command-line arguments as list elements. */\n" "\\&\n" " while (++optind E argc) {\n" " prev = elem;\n" "\\&\n" " elem = new_element();\n" " elem-Ename = argv[optind];\n" " insque(elem, prev);\n" " }\n" "\\&\n" " /* Traverse the list from the start, printing element names. */\n" "\\&\n" " printf(\"Traversing completed list:\\[rs]n\");\n" " elem = first;\n" " do {\n" " printf(\" %s\\[rs]n\", elem-Ename);\n" " elem = elem-Eforward;\n" " } while (elem != NULL && elem != first);\n" "\\&\n" " if (elem == first)\n" " printf(\"That was a circular list\\[rs]n\");\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Esearch.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eunistd.hE\n" "\\&\n" "struct element {\n" " struct element *forward;\n" " struct element *backward;\n" " char *name;\n" "};\n" "\\&\n" "static struct element *\n" "new_element(void)\n" "{\n" " struct element *e;\n" "\\&\n" " e = malloc(sizeof(*e));\n" " if (e == NULL) {\n" " fprintf(stderr, \"malloc() failed\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " return e;\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " struct element *first, *elem, *prev;\n" " int circular, opt, errfnd;\n" "\\&\n" " /* Opțiunea de linie de comandă „-c” poate fi utilizată\n" " pentru a specifica faptul că lista este circulară. */\n" "\\&\n" " errfnd = 0;\n" " circular = 0;\n" " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n" " switch (opt) {\n" " case \\[aq]c\\[aq]:\n" " circular = 1;\n" " break;\n" " default:\n" " errfnd = 1;\n" " break;\n" " }\n" " }\n" "\\&\n" " if (errfnd || optind E= argc) {\n" " fprintf(stderr, \"Utilizare: %s [-c] șir...\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Creați primul element și plasați-l în lista legată. */\n" "\\&\n" " elem = new_element();\n" " first = elem;\n" "\\&\n" " elem-Ename = argv[optind];\n" "\\&\n" " if (circular) {\n" " elem-Eforward = elem;\n" " elem-Ebackward = elem;\n" " insque(elem, elem);\n" " } else {\n" " insque(elem, NULL);\n" " }\n" "\\&\n" " /* Adaugă argumentele de linie de comandă rămase ca elemente de listă. */\n" "\\&\n" " while (++optind E argc) {\n" " prev = elem;\n" "\\&\n" " elem = new_element();\n" " elem-Ename = argv[optind];\n" " insque(elem, prev);\n" " }\n" "\\&\n" " /* Parcurge lista de la început, imprimând numele elementelor. */\n" "\\&\n" " printf(\"Parcurgerea listei completate::\\[rs]n\");\n" " elem = first;\n" " do {\n" " printf(\" %s\\[rs]n\", elem-Ename);\n" " elem = elem-Eforward;\n" " } while (elem != NULL && elem != first);\n" "\\&\n" " if (elem == first)\n" " printf(\"Aceasta a fost o listă circulară\\[rs]n\");\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "CONSULTAȚI ȘI" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(7)" msgstr "B(7)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 iunie 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "Pagini de manual de Linux 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "Biblioteca C standard (I, I<-lc>)" #. e.g., SunOS, Linux libc4 and libc5 #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "On ancient systems, the arguments of these functions were of type I, defined as:" msgstr "" "În sistemele vechi, argumentele acestor funcții erau de tipul I, definite astfel:" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Esearch.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eunistd.hE\n" "\\&\n" "struct element {\n" " struct element *forward;\n" " struct element *backward;\n" " char *name;\n" "};\n" "\\&\n" "static struct element *\n" "new_element(void)\n" "{\n" " struct element *e;\n" "\\&\n" " e = malloc(sizeof(*e));\n" " if (e == NULL) {\n" " fprintf(stderr, \"malloc() failed\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " return e;\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " struct element *first, *elem, *prev;\n" " int circular, opt, errfnd;\n" "\\&\n" " /* The \"-c\" command-line option can be used to specify that the\n" " list is circular. */\n" "\\&\n" " errfnd = 0;\n" " circular = 0;\n" " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n" " switch (opt) {\n" " case \\[aq]c\\[aq]:\n" " circular = 1;\n" " break;\n" " default:\n" " errfnd = 1;\n" " break;\n" " }\n" " }\n" "\\&\n" " if (errfnd || optind E= argc) {\n" " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Create first element and place it in the linked list. */\n" "\\&\n" " elem = new_element();\n" " first = elem;\n" "\\&\n" " elem-Ename = argv[optind];\n" "\\&\n" " if (circular) {\n" " elem-Eforward = elem;\n" " elem-Ebackward = elem;\n" " insque(elem, elem);\n" " } else {\n" " insque(elem, NULL);\n" " }\n" "\\&\n" " /* Add remaining command-line arguments as list elements. */\n" "\\&\n" " while (++optind E argc) {\n" " prev = elem;\n" "\\&\n" " elem = new_element();\n" " elem-Ename = argv[optind];\n" " insque(elem, prev);\n" " }\n" "\\&\n" " /* Traverse the list from the start, printing element names. */\n" "\\&\n" " printf(\"Traversing completed list:\\[rs]n\");\n" " elem = first;\n" " do {\n" " printf(\" %s\\[rs]n\", elem-Ename);\n" " elem = elem-Eforward;\n" " } while (elem != NULL && elem != first);\n" "\\&\n" " if (elem == first)\n" " printf(\"That was a circular list\\[rs]n\");\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Esearch.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eunistd.hE\n" "\\&\n" "struct element {\n" " struct element *forward;\n" " struct element *backward;\n" " char *name;\n" "};\n" "\\&\n" "static struct element *\n" "new_element(void)\n" "{\n" " struct element *e;\n" "\\&\n" " e = malloc(sizeof(*e));\n" " if (e == NULL) {\n" " fprintf(stderr, \"malloc() failed\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " return e;\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " struct element *first, *elem, *prev;\n" " int circular, opt, errfnd;\n" "\\&\n" " /* Opțiunea de linie de comandă „-c” poate fi utilizată\n" " pentru a specifica faptul că lista este circulară.. */\n" "\\&\n" " errfnd = 0;\n" " circular = 0;\n" " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n" " switch (opt) {\n" " case \\[aq]c\\[aq]:\n" " circular = 1;\n" " break;\n" " default:\n" " errfnd = 1;\n" " break;\n" " }\n" " }\n" "\\&\n" " if (errfnd || optind E= argc) {\n" " fprintf(stderr, \"Utilizare: %s [-c] șir...\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Creați primul element și plasați-l în lista legată. */\n" "\\&\n" " elem = new_element();\n" " first = elem;\n" "\\&\n" " elem-Ename = argv[optind];\n" "\\&\n" " if (circular) {\n" " elem-Eforward = elem;\n" " elem-Ebackward = elem;\n" " insque(elem, elem);\n" " } else {\n" " insque(elem, NULL);\n" " }\n" "\\&\n" " /* Adaugă argumentele de linie de comandă rămase ca elemente de listă. */\n" "\\&\n" " while (++optind E argc) {\n" " prev = elem;\n" "\\&\n" " elem = new_element();\n" " elem-Ename = argv[optind];\n" " insque(elem, prev);\n" " }\n" "\\&\n" " /* Parcurge lista de la început, imprimând numele elementelor. */\n" "\\&\n" " printf(\"Parcurgerea listei completate::\\[rs]n\");\n" " elem = first;\n" " do {\n" " printf(\" %s\\[rs]n\", elem-Ename);\n" " elem = elem-Eforward;\n" " } while (elem != NULL && elem != first);\n" "\\&\n" " if (elem == first)\n" " printf(\"Aceasta a fost o listă circulară\\[rs]n\");\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "23 iulie 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "Pagini de manual de Linux 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "Pagini de manual de Linux 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "Pagini de manual Linux (nepublicate)"