Debian Codegraph @

po/es/man3/insque.3.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Gerardo Aburruzaga García <[email protected]>, 1998.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
9 "PO-Revision-Date: 1998-02-27 19:53+0200\n"
10 "Last-Translator: Gerardo Aburruzaga García <[email protected]>\n"
11 "Language-Team: Spanish <[email protected]>\n"
12 "Language: es\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 "X-Generator: Lokalize 20.04.1\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 "insque"
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-08"
31 msgstr "8 Febrero 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, fuzzy, no-wrap
36 #| msgid "Linux man-pages 6.17"
37 msgid "Linux man-pages 6.18"
38 msgstr "Páginas de Manual de Linux 6.17"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NOMBRE"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "insque, remque - insert/remove an item from a queue"
51 msgstr "insque, remque - inserta/quita un elemento de una cola"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "BIBLIOTECA"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "SINOPSIS"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>search.hE<gt>>\n"
78 msgstr "B<#include E<lt>search.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, fuzzy, no-wrap
84 #| msgid "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
85 msgid ""
86 "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
87 "B<void remque(void *>I<elem>B<);>\n"
88 msgstr "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 msgid ""
94 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
95 msgstr ""
96 "Requisitos de Macros de Prueba de Características para glibc (véase "
97 "B<feature_test_macros>(7)):"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid "B<insque>(), B<remque>():"
103 msgstr "B<insque>(), B<remque>():"
104
105 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid ""
111 " _XOPEN_SOURCE E<gt>= 500\n"
112 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
113 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE\n"
114 msgstr ""
115 " _XOPEN_SOURCE E<gt>= 500\n"
116 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
117 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE\n"
118
119 #. type: SH
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 #, no-wrap
123 msgid "DESCRIPTION"
124 msgstr "DESCRIPCIÓN"
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 msgid ""
130 "The B<insque>() and B<remque>() functions manipulate doubly linked lists. "
131 "Each element in the list is a structure of which the first two elements are "
132 "a forward and a backward pointer. The linked list may be linear (i.e., NULL "
133 "forward pointer at the end of the list and NULL backward pointer at the "
134 "start of the list) or circular."
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, fuzzy
141 #| msgid ""
142 #| "B<insque()> inserts the element pointed to by I<elem> immediately after "
143 #| "the element pointed to by I<prev>, which must B< NOT> be NULL."
144 msgid ""
145 "The B<insque>() function inserts the element pointed to by I<elem> "
146 "immediately after the element pointed to by I<prev>."
147 msgstr ""
148 "B<insque()> inserta el elemento apuntado por I<elem> inmediatamente detrás "
149 "del elemento apuntado por I<prev>, que B<NO> debe ser NULL."
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "If the list is linear, then the call I<insque(elem, NULL)> can be used to "
156 "insert the initial list element, and the call sets the forward and backward "
157 "pointers of I<elem> to NULL."
158 msgstr ""
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "If the list is circular, the caller should ensure that the forward and "
165 "backward pointers of the first element are initialized to point to that "
166 "element, and the I<prev> argument of the B<insque>() call should also point "
167 "to the element."
168 msgstr ""
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, fuzzy
174 #| msgid ""
175 #| "B<remque()> removes the element pointed to by I<elem> from the doubly-"
176 #| "linked list."
177 msgid ""
178 "The B<remque>() function removes the element pointed to by I<elem> from the "
179 "doubly linked list."
180 msgstr ""
181 "B<remque()> quita el elemento apuntado por I<elem> de la lista doblemente "
182 "enlazada."
183
184 #. type: SH
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "ATTRIBUTES"
189 msgstr "ATRIBUTOS"
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "For an explanation of the terms used in this section, see B<attributes>(7)."
196 msgstr ""
197 "Para obtener una explicación de los términos usados en esta sección, véase "
198 "B<attributes>(7)."
199
200 #. type: tbl table
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "Interface"
205 msgstr "Interfaz"
206
207 #. type: tbl table
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "Attribute"
212 msgstr "Atributo"
213
214 #. type: tbl table
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, no-wrap
218 msgid "Value"
219 msgstr "Valor"
220
221 #. type: tbl table
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid ".na\n"
226 msgstr ".na\n"
227
228 #. type: tbl table
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid ".nh\n"
233 msgstr ".nh\n"
234
235 #. type: tbl table
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid ""
240 "B<insque>(),\n"
241 "B<remque>()"
242 msgstr ""
243 "B<insque>(),\n"
244 "B<remque>()"
245
246 #. type: tbl table
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, no-wrap
250 msgid "Thread safety"
251 msgstr "Seguridad del hilo"
252
253 #. type: tbl table
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "MT-Safe"
258 msgstr "Multi-hilo seguro"
259
260 #. type: SH
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "VERSIONS"
265 msgstr "VERSIONES"
266
267 #. e.g., SunOS, Linux libc4 and libc5
268 #. type: Plain text
269 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
270 #: opensuse-tumbleweed
271 msgid ""
272 "On ancient systems, the arguments of these functions were of type I<struct\\ "
273 "qelem\\ *>, defined as:"
274 msgstr ""
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid ""
281 "struct qelem {\n"
282 " struct qelem *q_forw;\n"
283 " struct qelem *q_back;\n"
284 " char q_data[1];\n"
285 "};\n"
286 msgstr ""
287 "struct qelem {\n"
288 " struct qelem *q_forw;\n"
289 " struct qelem *q_back;\n"
290 " char q_data[1];\n"
291 "};\n"
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid ""
297 "This is still what you will get if B<_GNU_SOURCE> is defined before "
298 "including I<E<lt>search.hE<gt>>."
299 msgstr ""
300
301 #. #-#-#-#-# archlinux: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
302 #. Linux libc4 and libc 5 placed them in
303 #. .IR <stdlib.h> .
304 #. type: Plain text
305 #. #-#-#-#-# debian-trixie: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
306 #. Linux libc4 and libc 5 placed them
307 #. in \fI<stdlib.h>\fP.
308 #. type: Plain text
309 #. #-#-#-#-# debian-unstable: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
310 #. Linux libc4 and libc 5 placed them in
311 #. .IR <stdlib.h> .
312 #. type: Plain text
313 #. #-#-#-#-# fedora-44: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
314 #. Linux libc4 and libc 5 placed them
315 #. in \fI<stdlib.h>\fP.
316 #. type: Plain text
317 #. #-#-#-#-# fedora-rawhide: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
318 #. Linux libc4 and libc 5 placed them
319 #. in \fI<stdlib.h>\fP.
320 #. type: Plain text
321 #. #-#-#-#-# mageia-cauldron: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
322 #. Linux libc4 and libc 5 placed them in
323 #. .IR <stdlib.h> .
324 #. type: Plain text
325 #. #-#-#-#-# opensuse-leap-16-1: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
326 #. Linux libc4 and libc 5 placed them in
327 #. .IR <stdlib.h> .
328 #. type: Plain text
329 #. #-#-#-#-# opensuse-tumbleweed: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
330 #. Linux libc4 and libc 5 placed them in
331 #. .IR <stdlib.h> .
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, fuzzy
336 #| msgid ""
337 #| "The location of the prototypes for these functions differ among several "
338 #| "versions of UNIX. Some systems place them in E<lt>search.hE<gt>, others "
339 #| "in E<lt>string.hE<gt>. Linux places them in E<lt>stdlib.hE<gt> since "
340 #| "that seems to make the most sense."
341 msgid ""
342 "The location of the prototypes for these functions differs among several "
343 "versions of UNIX. The above is the POSIX version. Some systems place them "
344 "in I<E<lt>string.hE<gt>>."
345 msgstr ""
346 "La localización de los prototipos de estas funciones difiere según las "
347 "diversas versiones de UNIX. Algunos sistemas las ponen en "
348 "E<lt>search.hE<gt>, otros en E<lt>string.hE<gt>. Linux las pone en "
349 "E<lt>stdlib.hE<gt> puesto que es el sitio donde parecen tener mayor sentido."
350
351 #. type: SH
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 #, no-wrap
355 msgid "STANDARDS"
356 msgstr "ESTÁNDARES"
357
358 #. type: Plain text
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 msgid "POSIX.1-2008."
362 msgstr "POSIX.1-2008."
363
364 #. type: SH
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "HISTORY"
369 msgstr "HISTORIAL"
370
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid "POSIX.1-2001."
375 msgstr "POSIX.1-2001."
376
377 #. type: SH
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "BUGS"
382 msgstr "ERRORES"
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid ""
388 "In glibc 2.4 and earlier, it was not possible to specify I<prev> as NULL. "
389 "Consequently, to build a linear list, the caller had to build a list using "
390 "an initial call that contained the first two elements of the list, with the "
391 "forward and backward pointers in each element suitably initialized."
392 msgstr ""
393
394 #. type: SH
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "EXAMPLES"
399 msgstr "EJEMPLOS"
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid ""
405 "The program below demonstrates the use of B<insque>(). Here is an example "
406 "run of the program:"
407 msgstr ""
408
409 #. type: Plain text
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid ""
414 "$ B<./a.out -c a b c>\n"
415 "Traversing completed list:\n"
416 " a\n"
417 " b\n"
418 " c\n"
419 "That was a circular list\n"
420 msgstr ""
421
422 #. type: SS
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "Program source"
427 msgstr "Código fuente"
428
429 #. type: Plain text
430 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
431 #: opensuse-tumbleweed
432 #, no-wrap
433 msgid ""
434 "#include E<lt>search.hE<gt>\n"
435 "#include E<lt>stdio.hE<gt>\n"
436 "#include E<lt>stdlib.hE<gt>\n"
437 "#include E<lt>unistd.hE<gt>\n"
438 "\\&\n"
439 "struct element {\n"
440 " struct element *forward;\n"
441 " struct element *backward;\n"
442 " char *name;\n"
443 "};\n"
444 "\\&\n"
445 "static struct element *\n"
446 "new_element(void)\n"
447 "{\n"
448 " struct element *e;\n"
449 "\\&\n"
450 " e = malloc(sizeof(*e));\n"
451 " if (e == NULL) {\n"
452 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
453 " exit(EXIT_FAILURE);\n"
454 " }\n"
455 "\\&\n"
456 " return e;\n"
457 "}\n"
458 "\\&\n"
459 "int\n"
460 "main(int argc, char *argv[])\n"
461 "{\n"
462 " struct element *first, *elem, *prev;\n"
463 " int circular, opt, errfnd;\n"
464 "\\&\n"
465 " /* The \"-c\" command-line option can be used to specify that the\n"
466 " list is circular. */\n"
467 "\\&\n"
468 " errfnd = 0;\n"
469 " circular = 0;\n"
470 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
471 " switch (opt) {\n"
472 " case \\[aq]c\\[aq]:\n"
473 " circular = 1;\n"
474 " break;\n"
475 " default:\n"
476 " errfnd = 1;\n"
477 " break;\n"
478 " }\n"
479 " }\n"
480 "\\&\n"
481 " if (errfnd || optind E<gt>= argc) {\n"
482 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
483 " exit(EXIT_FAILURE);\n"
484 " }\n"
485 "\\&\n"
486 " /* Create first element and place it in the linked list. */\n"
487 "\\&\n"
488 " elem = new_element();\n"
489 " first = elem;\n"
490 "\\&\n"
491 " elem-E<gt>name = argv[optind];\n"
492 "\\&\n"
493 " if (circular) {\n"
494 " elem-E<gt>forward = elem;\n"
495 " elem-E<gt>backward = elem;\n"
496 " insque(elem, elem);\n"
497 " } else {\n"
498 " insque(elem, NULL);\n"
499 " }\n"
500 "\\&\n"
501 " /* Add remaining command-line arguments as list elements. */\n"
502 "\\&\n"
503 " while (++optind E<lt> argc) {\n"
504 " prev = elem;\n"
505 "\\&\n"
506 " elem = new_element();\n"
507 " elem-E<gt>name = argv[optind];\n"
508 " insque(elem, prev);\n"
509 " }\n"
510 "\\&\n"
511 " /* Traverse the list from the start, printing element names. */\n"
512 "\\&\n"
513 " printf(\"Traversing completed list:\\[rs]n\");\n"
514 " elem = first;\n"
515 " do {\n"
516 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
517 " elem = elem-E<gt>forward;\n"
518 " } while (elem != NULL && elem != first);\n"
519 "\\&\n"
520 " if (elem == first)\n"
521 " printf(\"That was a circular list\\[rs]n\");\n"
522 "\\&\n"
523 " exit(EXIT_SUCCESS);\n"
524 "}\n"
525 msgstr ""
526
527 #. SRC END
528 #. type: SH
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 #, no-wrap
532 msgid "SEE ALSO"
533 msgstr "VÉASE TAMBIÉN"
534
535 #. type: Plain text
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 #, fuzzy
539 #| msgid "B<queue>(3)"
540 msgid "B<queue>(7)"
541 msgstr "B<queue>(3)"
542
543 #. type: TH
544 #: debian-trixie
545 #, no-wrap
546 msgid "2024-06-15"
547 msgstr "15 Junio 2024"
548
549 #. type: TH
550 #: debian-trixie
551 #, no-wrap
552 msgid "Linux man-pages 6.9.1"
553 msgstr "Páginas de Manual de Linux 6.9.1"
554
555 #. type: Plain text
556 #: debian-trixie
557 msgid "Standard C library (I<libc>, I<-lc>)"
558 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
559
560 #. e.g., SunOS, Linux libc4 and libc5
561 #. type: Plain text
562 #: debian-trixie fedora-44 fedora-rawhide
563 msgid ""
564 "On ancient systems, the arguments of these functions were of type I<struct "
565 "qelem *>, defined as:"
566 msgstr ""
567
568 #. type: Plain text
569 #: debian-trixie fedora-44 fedora-rawhide
570 #, no-wrap
571 msgid ""
572 "#include E<lt>search.hE<gt>\n"
573 "#include E<lt>stdio.hE<gt>\n"
574 "#include E<lt>stdlib.hE<gt>\n"
575 "#include E<lt>unistd.hE<gt>\n"
576 "\\&\n"
577 "struct element {\n"
578 " struct element *forward;\n"
579 " struct element *backward;\n"
580 " char *name;\n"
581 "};\n"
582 "\\&\n"
583 "static struct element *\n"
584 "new_element(void)\n"
585 "{\n"
586 " struct element *e;\n"
587 "\\&\n"
588 " e = malloc(sizeof(*e));\n"
589 " if (e == NULL) {\n"
590 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
591 " exit(EXIT_FAILURE);\n"
592 " }\n"
593 "\\&\n"
594 " return e;\n"
595 "}\n"
596 "\\&\n"
597 "int\n"
598 "main(int argc, char *argv[])\n"
599 "{\n"
600 " struct element *first, *elem, *prev;\n"
601 " int circular, opt, errfnd;\n"
602 "\\&\n"
603 " /* The \"-c\" command-line option can be used to specify that the\n"
604 " list is circular. */\n"
605 "\\&\n"
606 " errfnd = 0;\n"
607 " circular = 0;\n"
608 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
609 " switch (opt) {\n"
610 " case \\[aq]c\\[aq]:\n"
611 " circular = 1;\n"
612 " break;\n"
613 " default:\n"
614 " errfnd = 1;\n"
615 " break;\n"
616 " }\n"
617 " }\n"
618 "\\&\n"
619 " if (errfnd || optind E<gt>= argc) {\n"
620 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
621 " exit(EXIT_FAILURE);\n"
622 " }\n"
623 "\\&\n"
624 " /* Create first element and place it in the linked list. */\n"
625 "\\&\n"
626 " elem = new_element();\n"
627 " first = elem;\n"
628 "\\&\n"
629 " elem-E<gt>name = argv[optind];\n"
630 "\\&\n"
631 " if (circular) {\n"
632 " elem-E<gt>forward = elem;\n"
633 " elem-E<gt>backward = elem;\n"
634 " insque(elem, elem);\n"
635 " } else {\n"
636 " insque(elem, NULL);\n"
637 " }\n"
638 "\\&\n"
639 " /* Add remaining command-line arguments as list elements. */\n"
640 "\\&\n"
641 " while (++optind E<lt> argc) {\n"
642 " prev = elem;\n"
643 "\\&\n"
644 " elem = new_element();\n"
645 " elem-E<gt>name = argv[optind];\n"
646 " insque(elem, prev);\n"
647 " }\n"
648 "\\&\n"
649 " /* Traverse the list from the start, printing element names. */\n"
650 "\\&\n"
651 " printf(\"Traversing completed list:\\[rs]n\");\n"
652 " elem = first;\n"
653 " do {\n"
654 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
655 " elem = elem-E<gt>forward;\n"
656 " } while (elem != NULL && elem != first);\n"
657 "\\&\n"
658 " if (elem == first)\n"
659 " printf(\"That was a circular list\\[rs]n\");\n"
660 "\\&\n"
661 " exit(EXIT_SUCCESS);\n"
662 "}\n"
663 msgstr ""
664
665 #. type: TH
666 #: fedora-44 fedora-rawhide
667 #, no-wrap
668 msgid "2024-07-23"
669 msgstr "23 ​​Julio 2024"
670
671 #. type: TH
672 #: fedora-44 fedora-rawhide
673 #, no-wrap
674 msgid "Linux man-pages 6.13"
675 msgstr "Páginas de Manual de Linux 6.13"
676
677 #. type: TH
678 #: mageia-cauldron
679 #, no-wrap
680 msgid "Linux man-pages 6.17"
681 msgstr "Páginas de Manual de Linux 6.17"
682
683 #. type: TH
684 #: opensuse-leap-16-1 opensuse-tumbleweed
685 #, no-wrap
686 msgid "Linux man-pages (unreleased)"
687 msgstr "Páginas de Manual de Linux (no publicadas)"