Debian Codegraph @

templates/man3/circleq.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:20+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \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 "CIRCLEQ"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-05-17"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
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 ""
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 ""
50 "CIRCLEQ_EMPTY, CIRCLEQ_ENTRY, CIRCLEQ_FIRST, CIRCLEQ_FOREACH, "
51 "CIRCLEQ_FOREACH_REVERSE, CIRCLEQ_HEAD, CIRCLEQ_HEAD_INITIALIZER, "
52 "CIRCLEQ_INIT, CIRCLEQ_INSERT_AFTER, CIRCLEQ_INSERT_BEFORE, "
53 "CIRCLEQ_INSERT_HEAD, CIRCLEQ_INSERT_TAIL, CIRCLEQ_LAST, CIRCLEQ_LOOP_NEXT, "
54 "CIRCLEQ_LOOP_PREV, CIRCLEQ_NEXT, CIRCLEQ_PREV, CIRCLEQ_REMOVE - "
55 "implementation of a doubly linked circular queue"
56 msgstr ""
57
58 #. type: SH
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 #, no-wrap
62 msgid "LIBRARY"
63 msgstr ""
64
65 #. type: Plain text
66 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
67 #: opensuse-leap-16-1 opensuse-tumbleweed
68 msgid "Standard C library (I<libc>,\\ I<-lc>)"
69 msgstr ""
70
71 #. type: SH
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "SYNOPSIS"
76 msgstr ""
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "B<#include E<lt>sys/queue.hE<gt>>\n"
83 msgstr ""
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "B<CIRCLEQ_ENTRY(TYPE);>\n"
90 msgstr ""
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid ""
97 "B<CIRCLEQ_HEAD(HEADNAME, TYPE);>\n"
98 "B<CIRCLEQ_HEAD CIRCLEQ_HEAD_INITIALIZER(CIRCLEQ_HEAD >I<head>B<);>\n"
99 "B<void CIRCLEQ_INIT(CIRCLEQ_HEAD *>I<head>B<);>\n"
100 msgstr ""
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "B<int CIRCLEQ_EMPTY(CIRCLEQ_HEAD *>I<head>B<);>\n"
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, no-wrap
113 msgid ""
114 "B<void CIRCLEQ_INSERT_HEAD(CIRCLEQ_HEAD *>I<head>B<,>\n"
115 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
116 "B<void CIRCLEQ_INSERT_TAIL(CIRCLEQ_HEAD *>I<head>B<,>\n"
117 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
118 "B<void CIRCLEQ_INSERT_BEFORE(CIRCLEQ_HEAD *>I<head>B<, struct TYPE *>I<listelm>B<,>\n"
119 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
120 "B<void CIRCLEQ_INSERT_AFTER(CIRCLEQ_HEAD *>I<head>B<, struct TYPE *>I<listelm>B<,>\n"
121 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid ""
129 "B<struct TYPE *CIRCLEQ_FIRST(CIRCLEQ_HEAD *>I<head>B<);>\n"
130 "B<struct TYPE *CIRCLEQ_LAST(CIRCLEQ_HEAD *>I<head>B<);>\n"
131 "B<struct TYPE *CIRCLEQ_PREV(struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
132 "B<struct TYPE *CIRCLEQ_NEXT(struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
133 "B<struct TYPE *CIRCLEQ_LOOP_PREV(CIRCLEQ_HEAD *>I<head>B<,>\n"
134 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
135 "B<struct TYPE *CIRCLEQ_LOOP_NEXT(CIRCLEQ_HEAD *>I<head>B<,>\n"
136 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
137 msgstr ""
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid ""
144 "B<CIRCLEQ_FOREACH(struct TYPE *>I<var>B<, CIRCLEQ_HEAD *>I<head>B<,>\n"
145 "B< CIRCLEQ_ENTRY >I<NAME>B<);>\n"
146 "B<CIRCLEQ_FOREACH_REVERSE(struct TYPE *>I<var>B<, CIRCLEQ_HEAD *>I<head>B<,>\n"
147 "B< CIRCLEQ_ENTRY >I<NAME>B<);>\n"
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid ""
155 "B<void CIRCLEQ_REMOVE(CIRCLEQ_HEAD *>I<head>B<, struct TYPE *>I<elm>B<,>\n"
156 "B< CIRCLEQ_ENTRY >I<NAME>B<);>\n"
157 msgstr ""
158
159 #. type: SH
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "DESCRIPTION"
164 msgstr ""
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid "These macros define and operate on doubly linked circular queues."
170 msgstr ""
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "In the macro definitions, I<TYPE> is the name of a user-defined structure, "
177 "that must contain a field of type I<CIRCLEQ_ENTRY>, named I<NAME>. The "
178 "argument I<HEADNAME> is the name of a user-defined structure that must be "
179 "declared using the macro B<CIRCLEQ_HEAD>()."
180 msgstr ""
181
182 #. type: SS
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, no-wrap
186 msgid "Creation"
187 msgstr ""
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid ""
193 "A circular queue is headed by a structure defined by the B<CIRCLEQ_HEAD>() "
194 "macro. This structure contains a pair of pointers, one to the first element "
195 "in the queue and the other to the last element in the queue. The elements "
196 "are doubly linked so that an arbitrary element can be removed without "
197 "traversing the queue. New elements can be added to the queue after an "
198 "existing element, before an existing element, at the head of the queue, or "
199 "at the end of the queue. A I<CIRCLEQ_HEAD> structure is declared as follows:"
200 msgstr ""
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "CIRCLEQ_HEAD(HEADNAME, TYPE) head;\n"
207 msgstr ""
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "where I<struct HEADNAME> is the structure to be defined, and I<struct TYPE> "
214 "is the type of the elements to be linked into the queue. A pointer to the "
215 "head of the queue can later be declared as:"
216 msgstr ""
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid "struct HEADNAME *headp;\n"
223 msgstr ""
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid "(The names I<head> and I<headp> are user selectable.)"
229 msgstr ""
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "B<CIRCLEQ_ENTRY>() declares a structure that connects the elements in the "
236 "queue."
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "B<CIRCLEQ_HEAD_INITIALIZER>() evaluates to an initializer for the queue "
244 "I<head>."
245 msgstr ""
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid "B<CIRCLEQ_INIT>() initializes the queue referenced by I<head>."
251 msgstr ""
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 msgid ""
257 "B<CIRCLEQ_EMPTY>() evaluates to true if there are no items on the queue."
258 msgstr ""
259
260 #. type: SS
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "Insertion"
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "B<CIRCLEQ_INSERT_HEAD>() inserts the new element I<elm> at the head of the "
272 "queue."
273 msgstr ""
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid ""
279 "B<CIRCLEQ_INSERT_TAIL>() inserts the new element I<elm> at the end of the "
280 "queue."
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "B<CIRCLEQ_INSERT_BEFORE>() inserts the new element I<elm> before the "
288 "element I<listelm>."
289 msgstr ""
290
291 #. type: Plain text
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 msgid ""
295 "B<CIRCLEQ_INSERT_AFTER>() inserts the new element I<elm> after the element "
296 "I<listelm>."
297 msgstr ""
298
299 #. type: SS
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "Traversal"
304 msgstr ""
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid "B<CIRCLEQ_FIRST>() returns the first item on the queue."
310 msgstr ""
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 msgid "B<CIRCLEQ_LAST>() returns the last item on the queue."
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "B<CIRCLEQ_PREV>() returns the previous item on the queue, or I<&head> if "
323 "this item is the first one."
324 msgstr ""
325
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 msgid ""
330 "B<CIRCLEQ_NEXT>() returns the next item on the queue, or I<&head> if this "
331 "item is the last one."
332 msgstr ""
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 msgid ""
338 "B<CIRCLEQ_LOOP_PREV>() returns the previous item on the queue. If I<elm> "
339 "is the first element on the queue, the last element is returned."
340 msgstr ""
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "B<CIRCLEQ_LOOP_NEXT>() returns the next item on the queue. If I<elm> is "
347 "the last element on the queue, the first element is returned."
348 msgstr ""
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "B<CIRCLEQ_FOREACH>() traverses the queue referenced by I<head> in the "
355 "forward direction, assigning each element in turn to I<var>. I<var> is set "
356 "to I<&head> if the loop completes normally, or if there were no elements."
357 msgstr ""
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid ""
363 "B<CIRCLEQ_FOREACH_REVERSE>() traverses the queue referenced by I<head> in "
364 "the reverse direction, assigning each element in turn to I<var>."
365 msgstr ""
366
367 #. type: SS
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "Removal"
372 msgstr ""
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid "B<CIRCLEQ_REMOVE>() removes the element I<elm> from the queue."
378 msgstr ""
379
380 #. type: SH
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "RETURN VALUE"
385 msgstr ""
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 msgid ""
391 "B<CIRCLEQ_EMPTY>() returns nonzero if the queue is empty, and zero if the "
392 "queue contains at least one entry."
393 msgstr ""
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid ""
399 "B<CIRCLEQ_FIRST>(), B<CIRCLEQ_LAST>(), B<CIRCLEQ_LOOP_PREV>(), and "
400 "B<CIRCLEQ_LOOP_NEXT>() return a pointer to the first, last, previous, or "
401 "next I<TYPE> structure, respectively."
402 msgstr ""
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid ""
408 "B<CIRCLEQ_PREV>(), and B<CIRCLEQ_NEXT>() are similar to their "
409 "B<CIRCLEQ_LOOP_*>() counterparts, except that if the argument is the first "
410 "or last element, respectively, they return I<&head>."
411 msgstr ""
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid ""
417 "B<CIRCLEQ_HEAD_INITIALIZER>() returns an initializer that can be assigned "
418 "to the queue I<head>."
419 msgstr ""
420
421 #. type: SH
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid "STANDARDS"
426 msgstr ""
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid "BSD."
432 msgstr ""
433
434 #. type: SH
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, no-wrap
438 msgid "BUGS"
439 msgstr ""
440
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 msgid ""
445 "B<CIRCLEQ_FOREACH>() and B<CIRCLEQ_FOREACH_REVERSE>() don't allow I<var> "
446 "to be removed or freed within the loop, as it would interfere with the "
447 "traversal. B<CIRCLEQ_FOREACH_SAFE>() and "
448 "B<CIRCLEQ_FOREACH_REVERSE_SAFE>(), which are present on the BSDs but are not "
449 "present in glibc, fix this limitation by allowing I<var> to safely be "
450 "removed from the list and freed from within the loop without interfering "
451 "with the traversal."
452 msgstr ""
453
454 #. type: SH
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 #, no-wrap
458 msgid "EXAMPLES"
459 msgstr ""
460
461 #. type: Plain text
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 #, no-wrap
465 msgid ""
466 "#include E<lt>stddef.hE<gt>\n"
467 "#include E<lt>stdio.hE<gt>\n"
468 "#include E<lt>stdlib.hE<gt>\n"
469 "#include E<lt>sys/queue.hE<gt>\n"
470 "\\&\n"
471 "struct entry {\n"
472 " int data;\n"
473 " CIRCLEQ_ENTRY(entry) entries; /* Queue */\n"
474 "};\n"
475 "\\&\n"
476 "CIRCLEQ_HEAD(circlehead, entry);\n"
477 "\\&\n"
478 "int\n"
479 "main(void)\n"
480 "{\n"
481 " struct entry *n1, *n2, *n3, *np;\n"
482 " struct circlehead head; /* Queue head */\n"
483 " int i;\n"
484 "\\&\n"
485 " CIRCLEQ_INIT(&head); /* Initialize the queue */\n"
486 "\\&\n"
487 " n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n"
488 " CIRCLEQ_INSERT_HEAD(&head, n1, entries);\n"
489 "\\&\n"
490 " n1 = malloc(sizeof(struct entry)); /* Insert at the tail */\n"
491 " CIRCLEQ_INSERT_TAIL(&head, n1, entries);\n"
492 "\\&\n"
493 " n2 = malloc(sizeof(struct entry)); /* Insert after */\n"
494 " CIRCLEQ_INSERT_AFTER(&head, n1, n2, entries);\n"
495 "\\&\n"
496 " n3 = malloc(sizeof(struct entry)); /* Insert before */\n"
497 " CIRCLEQ_INSERT_BEFORE(&head, n2, n3, entries);\n"
498 "\\&\n"
499 " CIRCLEQ_REMOVE(&head, n2, entries); /* Deletion */\n"
500 " free(n2);\n"
501 " /* Forward traversal */\n"
502 " i = 0;\n"
503 " CIRCLEQ_FOREACH(np, &head, entries)\n"
504 " np-E<gt>data = i++;\n"
505 " /* Reverse traversal */\n"
506 " CIRCLEQ_FOREACH_REVERSE(np, &head, entries)\n"
507 " printf(\"%i\\[rs]n\", np-E<gt>data);\n"
508 " /* Queue deletion */\n"
509 " n1 = CIRCLEQ_FIRST(&head);\n"
510 " while (n1 != (void *)&head) {\n"
511 " n2 = CIRCLEQ_NEXT(n1, entries);\n"
512 " free(n1);\n"
513 " n1 = n2;\n"
514 " }\n"
515 " CIRCLEQ_INIT(&head);\n"
516 "\\&\n"
517 " exit(EXIT_SUCCESS);\n"
518 "}\n"
519 msgstr ""
520
521 #. SRC END
522 #. type: SH
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 #, no-wrap
526 msgid "SEE ALSO"
527 msgstr ""
528
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid "B<insque>(3), B<queue>(7)"
533 msgstr ""
534
535 #. type: TH
536 #: debian-trixie
537 #, no-wrap
538 msgid "2024-06-15"
539 msgstr ""
540
541 #. type: TH
542 #: debian-trixie
543 #, no-wrap
544 msgid "Linux man-pages 6.9.1"
545 msgstr ""
546
547 #. type: Plain text
548 #: debian-trixie
549 msgid "Standard C library (I<libc>, I<-lc>)"
550 msgstr ""
551
552 #. type: TH
553 #: fedora-44 fedora-rawhide
554 #, no-wrap
555 msgid "2024-07-23"
556 msgstr ""
557
558 #. type: TH
559 #: fedora-44 fedora-rawhide
560 #, no-wrap
561 msgid "Linux man-pages 6.13"
562 msgstr ""
563
564 #. type: TH
565 #: mageia-cauldron
566 #, no-wrap
567 msgid "Linux man-pages 6.17"
568 msgstr ""
569
570 #. type: TH
571 #: opensuse-leap-16-1 opensuse-tumbleweed
572 #, no-wrap
573 msgid "Linux man-pages (unreleased)"
574 msgstr ""