Debian Codegraph @

po/fr/man3/tsearch.3.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010, 2012.
18 # Jean-Baptiste Holcroft <[email protected]>, 2018.
19 # Grégoire Scano <[email protected]>, 2019-2021.
20 msgid ""
21 msgstr ""
22 "Project-Id-Version: manpages-l10n 4.25.0\n"
23 "POT-Creation-Date: 2026-06-05 06:49+0200\n"
24 "PO-Revision-Date: 2025-01-22 14:19+0100\n"
25 "Last-Translator: Grégoire Scano <[email protected]>\n"
26 "Language-Team: French <[email protected]>\n"
27 "Language: fr\n"
28 "MIME-Version: 1.0\n"
29 "Content-Type: text/plain; charset=UTF-8\n"
30 "Content-Transfer-Encoding: 8bit\n"
31 "Plural-Forms: nplurals=2; plural=n > 1;\n"
32 "X-Generator: Lokalize 22.12.3\n"
33
34 #. type: TH
35 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
36 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
37 #, no-wrap
38 msgid "tsearch"
39 msgstr "tsearch"
40
41 #. type: TH
42 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
43 #: opensuse-tumbleweed
44 #, no-wrap
45 msgid "2026-02-08"
46 msgstr "8 février 2026"
47
48 #. type: TH
49 #: archlinux debian-unstable
50 #, no-wrap
51 msgid "Linux man-pages 6.18"
52 msgstr "Pages du manuel de Linux 6.18"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "NAME"
59 msgstr "NOM"
60
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 msgid ""
65 "tsearch, tfind, tdelete, twalk, twalk_r, tdestroy - manage a binary search "
66 "tree"
67 msgstr ""
68 "tsearch, tfind, tdelete, twalk, twalk_r, tdestroy - Manipuler un arbre "
69 "binaire de recherche"
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 "LIBRARY"
76 msgstr "BIBLIOTHÈQUE"
77
78 #. type: Plain text
79 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
80 #: opensuse-leap-16-1 opensuse-tumbleweed
81 msgid "Standard C library (I<libc>,\\ I<-lc>)"
82 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
83
84 #. type: SH
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "SYNOPSIS"
89 msgstr "SYNOPSIS"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "B<#include E<lt>search.hE<gt>>\n"
96 msgstr "B<#include E<lt>search.hE<gt>>\n"
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "B<typedef enum { preorder, postorder, endorder, leaf } VISIT;>\n"
103 msgstr "B<typedef enum { preorder, postorder, endorder, leaf } VISIT;>\n"
104
105 #. type: Plain text
106 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
107 #: opensuse-leap-16-1 opensuse-tumbleweed
108 #, no-wrap
109 msgid ""
110 "B<void *tfind(const void *>I<key>B<, void *const *>I<rootp>B<,>\n"
111 "B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n"
112 "B<void *tsearch(const void *>I<key>B<, void **>I<rootp>B<,>\n"
113 "B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n"
114 "B<void *tdelete(const void *restrict >I<key>B<, void **restrict >I<rootp>B<,>\n"
115 "B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n"
116 "B<void twalk(const void *>I<root>B<,>\n"
117 "B< typeof(void (const void *>I<nodep>B<, VISIT >I<which>B<, int >I<depth>B<))>\n"
118 "B< *>I<action>B<);>\n"
119 msgstr ""
120 "B<void *tfind(const void *>I<key>B<, void *const *>I<rootp>B<,>\n"
121 "B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n"
122 "B<void *tsearch(const void *>I<key>B<, void **>I<rootp>B<,>\n"
123 "B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n"
124 "B<void *tdelete(const void *restrict >I<key>B<, void **restrict >I<rootp>B<,>\n"
125 "B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n"
126 "B<void twalk(const void *>I<root>B<,>\n"
127 "B< typeof(void (const void *>I<nodep>B<, VISIT >I<which>B<, int >I<depth>B<))>\n"
128 "B< *>I<action>B<);>\n"
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid ""
135 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
136 "B<#include E<lt>search.hE<gt>>\n"
137 msgstr ""
138 "B<#define _GNU_SOURCE> /* Consultez feature_test_macros(7) */\n"
139 "B<#include E<lt>search.hE<gt>>\n"
140
141 #. type: Plain text
142 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
143 #: opensuse-leap-16-1 opensuse-tumbleweed
144 #, no-wrap
145 msgid ""
146 "B<void twalk_r(const void *>I<root>B<,>\n"
147 "B< typeof(void (const void *>I<nodep>B<, VISIT >I<which>B<, void *>I<closure>B<))>\n"
148 "B< *>I<action>B<,>\n"
149 "B< void *>I<closure>B<);>\n"
150 "B<void tdestroy(void *>I<root>B<,>\n"
151 "B< typeof(void (void *>I<nodep>B<)) *>I<free_node>B<);>\n"
152 msgstr ""
153 "B<void twalk_r(const void *>I<root>B<,>\n"
154 "B< typeof(void (const void *>I<nodep>B<, VISIT >I<which>B<, void *>I<closure>B<))>\n"
155 "B< *>I<action>B<,>\n"
156 "B< void *>I<closure>B<);>\n"
157 "B<void tdestroy(void *>I<root>B<,>\n"
158 "B< typeof(void (void *>I<nodep>B<)) *>I<free_node>B<);>\n"
159
160 #. type: SH
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid "DESCRIPTION"
165 msgstr "DESCRIPTION"
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "B<tsearch>(), B<tfind>(), B<twalk>(), and B<tdelete>() manage a binary "
172 "search tree. They are generalized from Knuth (6.2.2) Algorithm T. The "
173 "first field in each node of the tree is a pointer to the corresponding data "
174 "item. (The calling program must store the actual data.) I<compar> points "
175 "to a comparison routine, which takes pointers to two items. It should "
176 "return an integer which is negative, zero, or positive, depending on whether "
177 "the first item is less than, equal to, or greater than the second."
178 msgstr ""
179 "B<tsearch>(), B<tfind>(), B<twalk>() et B<tdelete>() permettent de manipuler "
180 "un arbre binaire de recherche. Ces fonctions implémentent une généralisation "
181 "de l'algorithme T de Knuth (6.2.2). Le premier membre de chaque nœud de "
182 "l'arbre est un pointeur vers la donnée elle-même (le programme appelant doit "
183 "prendre en charge le stockage de ces données). I<compar> pointe sur une "
184 "routine de comparaison prenant en argument deux pointeurs sur ces données. "
185 "Elle doit renvoyer un entier négatif, nul, ou positif suivant que le premier "
186 "élément est inférieur, égal ou supérieur au second."
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "B<tsearch>() searches the tree for an item. I<key> points to the item to "
193 "be searched for. I<rootp> points to a variable which points to the root of "
194 "the tree. If the tree is empty, then the variable that I<rootp> points to "
195 "should be set to NULL. If the item is found in the tree, then B<tsearch>() "
196 "returns a pointer to the corresponding tree node. (In other words, "
197 "B<tsearch>() returns a pointer to a pointer to the data item.) If the item "
198 "is not found, then B<tsearch>() adds it, and returns a pointer to the "
199 "corresponding tree node."
200 msgstr ""
201 "B<tsearch>() recherche un élément dans l'arbre. I<key> pointe sur l'élément "
202 "à chercher. I<rootp> pointe vers une variable qui pointe vers la racine de "
203 "l'arbre. Si l'arbre est vide, alors I<rootp> doit pointer sur une variable "
204 "devant être réglée à B<NULL>. Si l'élément est trouvé dans l'arbre, "
205 "B<tsearch>() renvoie un pointeur sur le nœud de l'arbre correspondant. (En "
206 "d'autres termes, B<tsearch>() retourne un pointeur sur un pointeur sur "
207 "l'élément.) Si l'élément n'est pas trouvé, B<tsearch>() l'ajoute dans "
208 "l'arbre et renvoie un pointeur sur le nœud de l'arbre correspondant."
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "B<tfind>() is like B<tsearch>(), except that if the item is not found, then "
215 "B<tfind>() returns NULL."
216 msgstr ""
217 "B<tfind>() fonctionne comme B<tsearch>(), sauf que si l'élément n'est pas "
218 "trouvé, la fonction B<tfind>() renvoie B<NULL>."
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid ""
224 "B<tdelete>() deletes an item from the tree. Its arguments are the same as "
225 "for B<tsearch>()."
226 msgstr ""
227 "B<tdelete>() supprime un élément de l'arbre. Ses arguments sont les mêmes "
228 "que ceux de B<tsearch>()."
229
230 #. type: Plain text
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 msgid ""
234 "B<twalk>() performs depth-first, left-to-right traversal of a binary tree. "
235 "I<root> points to the starting node for the traversal. If that node is not "
236 "the root, then only part of the tree will be visited. B<twalk>() calls the "
237 "user function I<action> each time a node is visited (that is, three times "
238 "for an internal node, and once for a leaf). I<action>, in turn, takes three "
239 "arguments. The first argument is a pointer to the node being visited. The "
240 "structure of the node is unspecified, but it is possible to cast the pointer "
241 "to a pointer-to-pointer-to-element in order to access the element stored "
242 "within the node. The application must not modify the structure pointed to "
243 "by this argument. The second argument is an integer which takes one of the "
244 "values B<preorder>, B<postorder>, or B<endorder> depending on whether this "
245 "is the first, second, or third visit to the internal node, or the value "
246 "B<leaf> if this is the single visit to a leaf node. (These symbols are "
247 "defined in I<E<lt>search.hE<gt>>.) The third argument is the depth of the "
248 "node; the root node has depth zero."
249 msgstr ""
250 "B<twalk>() exécute un parcours en profondeur d'abord, de gauche à droite "
251 "ensuite, de l'arbre binaire. I<root> pointe sur le nœud de départ du "
252 "parcours. S'il ne s'agit pas de la vraie racine de l'arbre, seule une partie "
253 "de celui-ci sera balayé. B<twalk>() appelle la fonction I<action> chaque "
254 "fois qu'un nœud est rencontré (c'est-à-dire trois fois pour un nœud interne "
255 "et une seule fois pour une feuille de l'arbre). I<action> doit accepter "
256 "trois arguments. Le premier argument est un pointeur sur le nœud rencontré. "
257 "La structure du nœud n'est pas spécifiée, mais il est possible de "
258 "transformer le pointeur sous forme de pointeur-vers-pointeur-vers-élément "
259 "afin d'accéder à l'élément enregistré dans le nœud. L'application ne doit "
260 "pas modifier la structure pointée par cet argument. Le deuxième argument est "
261 "un entier prenant l'une des valeurs suivantes\\ : B<preorder>, B<postorder> "
262 "ou B<endorder> suivant qu'il s'agisse de la première, deuxième ou troisième "
263 "rencontre du nœud, ou la valeur B<leaf> s'il s'agit d'un nœud feuille (ces "
264 "symboles sont définis dans I<E<lt>search.hE<gt>>). Le troisième argument est "
265 "la profondeur du nœud dans l'arbre, le nœud racine ayant la profondeur zéro."
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 "(More commonly, B<preorder>, B<postorder>, and B<endorder> are known as "
272 "B<preorder>, B<inorder>, and B<postorder>: before visiting the children, "
273 "after the first and before the second, and after visiting the children. "
274 "Thus, the choice of name B<post\\%order> is rather confusing.)"
275 msgstr ""
276 "Ordinairement, B<preorder>, B<postorder> et B<endorder> sont connus sous le "
277 "nom B<preorder> (préfixe), B<inorder> (infixe), et B<postorder> (postfixe)"
278 "\\ : avant de visiter le nœud fils, après le premier et avant le second, "
279 "après avoir visité les enfants. Ainsi, le choix du nom B<post\\%order> est "
280 "un peu déroutant."
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid ""
286 "B<twalk_r>() is similar to B<twalk>(), but instead of the I<depth> "
287 "argument, the I<closure> argument pointer is passed to each invocation of "
288 "the action callback, unchanged. This pointer can be used to pass "
289 "information to and from the callback function in a thread-safe fashion, "
290 "without resorting to global variables."
291 msgstr ""
292 "B<twalk_r>() est similaire à B<twalk>(), mais à la place de l'argument "
293 "I<depth>, le pointeur argument I<closure> est passé à chaque invocation de "
294 "la fonction de rappel d'action, inchangé. Ce pointeur peut être utilisé pour "
295 "passer de l'information vers et depuis la fonction de rappel de façon sûre "
296 "pour les threads, sans utiliser de variables globales."
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "B<tdestroy>() removes the whole tree pointed to by I<root>, freeing all "
303 "resources allocated by the B<tsearch>() function. For the data in each "
304 "tree node the function I<free_node> is called. The pointer to the data is "
305 "passed as the argument to the function. If no such work is necessary, "
306 "I<free_node> must point to a function doing nothing."
307 msgstr ""
308 "B<tdestroy>() supprime tout l'arbre pointé par I<root>, libérant toutes les "
309 "ressources allouées par la fonction B<tsearch>(). Pour libérer les données "
310 "de chaque nœud, la fonction I<free_node> est invoquée. Le pointeur sur les "
311 "données est passé en argument à cette fonction. Si aucune libération n'est "
312 "nécessaire, I<free_node> doit pointer vers une fonction ne faisant rien."
313
314 #. type: SH
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 #, no-wrap
318 msgid "RETURN VALUE"
319 msgstr "VALEUR RENVOYÉE"
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "B<tsearch>() returns a pointer to a matching node in the tree, or to the "
326 "newly added node, or NULL if there was insufficient memory to add the item. "
327 "B<tfind>() returns a pointer to the node, or NULL if no match is found. If "
328 "there are multiple items that match the key, the item whose node is returned "
329 "is unspecified."
330 msgstr ""
331 "B<tsearch>() renvoie un pointeur sur un nœud correspondant de l'arbre, ou "
332 "sur le nœud nouvellement ajouté, ou B<NULL> s'il n'y avait pas assez de "
333 "mémoire pour ajouter le nœud. B<tfind>() renvoie un pointeur sur le nœud "
334 "recherché, ou B<NULL> si aucune correspondance n'a été trouvée. Si plusieurs "
335 "éléments correspondent à la clé, l’élément dont le nœud est renvoyé n'est "
336 "pas spécifié."
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "B<tdelete>() returns a pointer to the parent of the node deleted, or NULL "
343 "if the item was not found. If the deleted node was the root node, "
344 "B<tdelete>() returns a dangling pointer that must not be accessed."
345 msgstr ""
346 "B<tdelete>() renvoie un pointeur sur le nœud père de celui détruit, ou "
347 "B<NULL> si l'élément n'a pas été trouvé. Si le nœud détruit était le nœud "
348 "racine, B<tdelete>() renvoie un pointer ne pointant sur aucun objet valable "
349 "et auquel il ne faut pas accéder."
350
351 #. type: Plain text
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 msgid ""
355 "B<tsearch>(), B<tfind>(), and B<tdelete>() also return NULL if I<rootp> was "
356 "NULL on entry."
357 msgstr ""
358 "B<tsearch>(), B<tfind>() et B<tdelete>() renvoient également B<NULL> si "
359 "I<rootp> valait B<NULL>."
360
361 #. type: SH
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 #, no-wrap
365 msgid "ATTRIBUTES"
366 msgstr "ATTRIBUTS"
367
368 #. type: Plain text
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 msgid ""
372 "For an explanation of the terms used in this section, see B<attributes>(7)."
373 msgstr ""
374 "Pour une explication des termes utilisés dans cette section, consulter "
375 "B<attributes>(7)."
376
377 #. type: tbl table
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "Interface"
382 msgstr "Interface"
383
384 #. type: tbl table
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "Attribute"
389 msgstr "Attribut"
390
391 #. type: tbl table
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "Value"
396 msgstr "Valeur"
397
398 #. type: tbl table
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid ".na\n"
403 msgstr ".na\n"
404
405 #. type: tbl table
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid ".nh\n"
410 msgstr ".nh\n"
411
412 #. type: tbl table
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid ""
417 "B<tsearch>(),\n"
418 "B<tfind>(),\n"
419 "B<tdelete>()"
420 msgstr ""
421 "B<tsearch>(),\n"
422 "B<tfind>(),\n"
423 "B<tdelete>()"
424
425 #. type: tbl table
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, no-wrap
429 msgid "Thread safety"
430 msgstr "Sécurité des threads"
431
432 #. type: tbl table
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "MT-Safe race:rootp"
437 msgstr "MT-Safe race:rootp"
438
439 #. type: TQ
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, no-wrap
443 msgid "B<twalk>()"
444 msgstr "B<twalk>()"
445
446 #. type: tbl table
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, no-wrap
450 msgid "MT-Safe race:root"
451 msgstr "MT-Safe race:root"
452
453 #. type: TP
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "B<twalk_r>()"
458 msgstr "B<twalk_r>()"
459
460 #. type: TP
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, no-wrap
464 msgid "B<tdestroy>()"
465 msgstr "B<tdestroy>()"
466
467 #. type: tbl table
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 #, no-wrap
471 msgid "MT-Safe"
472 msgstr "MT-Safe"
473
474 #. type: SH
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 #, no-wrap
478 msgid "STANDARDS"
479 msgstr "NORMES"
480
481 #. type: TP
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, no-wrap
485 msgid "B<tsearch>()"
486 msgstr "B<tsearch>()"
487
488 #. type: TQ
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "B<tfind>()"
493 msgstr "B<tfind>()"
494
495 #. type: TQ
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 #, no-wrap
499 msgid "B<tdelete>()"
500 msgstr "B<tdelete>()"
501
502 #. type: Plain text
503 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
504 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
505 msgid "POSIX.1-2008."
506 msgstr "POSIX.1-2008."
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid "GNU."
512 msgstr "GNU."
513
514 #. type: SH
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 #, no-wrap
518 msgid "HISTORY"
519 msgstr "HISTORIQUE"
520
521 #. type: Plain text
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 msgid "POSIX.1-2001, POSIX.1-2008, SVr4."
525 msgstr "POSIX.1-2001, POSIX.1-2008, SVr4."
526
527 #. type: Plain text
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 msgid "glibc 2.30."
531 msgstr "glibc 2.30."
532
533 #. type: SH
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "NOTES"
538 msgstr "NOTES"
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid ""
544 "B<twalk>() takes a pointer to the root, while the other functions take a "
545 "pointer to a variable which points to the root."
546 msgstr ""
547 "B<twalk>() utilise un pointeur sur la racine, alors que les autres fonctions "
548 "utilisent un pointeur sur une variable pointant sur la racine."
549
550 #. type: Plain text
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 msgid ""
554 "B<tdelete>() frees the memory required for the node in the tree. The user "
555 "is responsible for freeing the memory for the corresponding data."
556 msgstr ""
557 "B<tdelete>() libère la mémoire nécessaire au stockage du nœud dans l'arbre. "
558 "Le programme appelant est responsable de la libération de la mémoire occupée "
559 "par l'élément de données correspondant."
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 msgid ""
565 "The example program depends on the fact that B<twalk>() makes no further "
566 "reference to a node after calling the user function with argument "
567 "\"endorder\" or \"leaf\". This works with the GNU library implementation, "
568 "but is not in the System V documentation."
569 msgstr ""
570 "Le programme d'exemple s'appuie sur le fait que B<twalk>() ne fait plus "
571 "jamais référence à un nœud après avoir appelé la fonction utilisateur avec "
572 "l'argument «\\ endorder\\ » ou «\\ leaf\\ ». Ceci fonctionne avec "
573 "l'implémentation de la bibliothèque GNU, mais n'est pas spécifié sous "
574 "System V."
575
576 #. type: SH
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 #, no-wrap
580 msgid "EXAMPLES"
581 msgstr "EXEMPLES"
582
583 #. type: Plain text
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 msgid ""
587 "The following program inserts twelve random numbers into a binary tree, "
588 "where duplicate numbers are collapsed, then prints the numbers in order."
589 msgstr ""
590 "Le programme suivant insère douze nombres aléatoires dans un arbre binaire, "
591 "où les doublons sont supprimés, puis affiche les nombres classés."
592
593 #. type: Plain text
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid ""
598 "#define _GNU_SOURCE /* Expose declaration of tdestroy() */\n"
599 "#include E<lt>search.hE<gt>\n"
600 "#include E<lt>stddef.hE<gt>\n"
601 "#include E<lt>stdio.hE<gt>\n"
602 "#include E<lt>stdlib.hE<gt>\n"
603 "#include E<lt>time.hE<gt>\n"
604 "\\&\n"
605 "static void *root = NULL;\n"
606 "\\&\n"
607 "static void *\n"
608 "xmalloc(size_t n)\n"
609 "{\n"
610 " void *p;\n"
611 "\\&\n"
612 " p = malloc(n);\n"
613 " if (p)\n"
614 " return p;\n"
615 " fprintf(stderr, \"insufficient memory\\[rs]n\");\n"
616 " exit(EXIT_FAILURE);\n"
617 "}\n"
618 "\\&\n"
619 "static int\n"
620 "compare(const void *pa, const void *pb)\n"
621 "{\n"
622 " if (*(int *) pa E<lt> *(int *) pb)\n"
623 " return -1;\n"
624 " if (*(int *) pa E<gt> *(int *) pb)\n"
625 " return 1;\n"
626 " return 0;\n"
627 "}\n"
628 "\\&\n"
629 "static void\n"
630 "action(const void *nodep, VISIT which, int depth)\n"
631 "{\n"
632 " int *datap;\n"
633 "\\&\n"
634 " switch (which) {\n"
635 " case preorder:\n"
636 " break;\n"
637 " case postorder:\n"
638 " datap = *(int **) nodep;\n"
639 " printf(\"%6d\\[rs]n\", *datap);\n"
640 " break;\n"
641 " case endorder:\n"
642 " break;\n"
643 " case leaf:\n"
644 " datap = *(int **) nodep;\n"
645 " printf(\"%6d\\[rs]n\", *datap);\n"
646 " break;\n"
647 " }\n"
648 "}\n"
649 "\\&\n"
650 "int\n"
651 "main(void)\n"
652 "{\n"
653 " int *ptr;\n"
654 " int **val;\n"
655 "\\&\n"
656 " srand(time(NULL));\n"
657 " for (unsigned int i = 0; i E<lt> 12; i++) {\n"
658 " ptr = xmalloc(sizeof(*ptr));\n"
659 " *ptr = rand() & 0xff;\n"
660 " val = tsearch(ptr, &root, compare);\n"
661 " if (val == NULL)\n"
662 " exit(EXIT_FAILURE);\n"
663 " if (*val != ptr)\n"
664 " free(ptr);\n"
665 " }\n"
666 " twalk(root, action);\n"
667 " tdestroy(root, free);\n"
668 " exit(EXIT_SUCCESS);\n"
669 "}\n"
670 msgstr ""
671 "#define _GNU_SOURCE /* Expose la déclaration de tdestroy() */\n"
672 "#include E<lt>search.hE<gt>\n"
673 "#include E<lt>stddef.hE<gt>\n"
674 "#include E<lt>stdio.hE<gt>\n"
675 "#include E<lt>stdlib.hE<gt>\n"
676 "#include E<lt>time.hE<gt>\n"
677 "\\&\n"
678 "static void *root = NULL;\n"
679 "\\&\n"
680 "static void *\n"
681 "xmalloc(size_t n)\n"
682 "{\n"
683 " void *p;\n"
684 "\\&\n"
685 " p = malloc(n);\n"
686 " if (p)\n"
687 " return p;\n"
688 " fprintf(stderr, \"mémoire insuffisante\\[rs]n\");\n"
689 " exit(EXIT_FAILURE);\n"
690 "}\n"
691 "\\&\n"
692 "static int\n"
693 "compare(const void *pa, const void *pb)\n"
694 "{\n"
695 " if (*(int *) pa E<lt> *(int *) pb)\n"
696 " return -1;\n"
697 " if (*(int *) pa E<gt> *(int *) pb)\n"
698 " return 1;\n"
699 " return 0;\n"
700 "}\n"
701 "\\&\n"
702 "static void\n"
703 "action(const void *nodep, VISIT which, int depth)\n"
704 "{\n"
705 " int *datap;\n"
706 "\\&\n"
707 " switch (which) {\n"
708 " case preorder:\n"
709 " break;\n"
710 " case postorder:\n"
711 " datap = *(int **) nodep;\n"
712 " printf(\"%6d\\[rs]n\", *datap);\n"
713 " break;\n"
714 " case endorder:\n"
715 " break;\n"
716 " case leaf:\n"
717 " datap = *(int **) nodep;\n"
718 " printf(\"%6d\\[rs]n\", *datap);\n"
719 " break;\n"
720 " }\n"
721 "}\n"
722 "\\&\n"
723 "int\n"
724 "main(void)\n"
725 "{\n"
726 " int *ptr;\n"
727 " int **val;\n"
728 "\\&\n"
729 " srand(time(NULL));\n"
730 " for (unsigned int i = 0; i E<lt> 12; i++) {\n"
731 " ptr = xmalloc(sizeof(*ptr));\n"
732 " *ptr = rand() & 0xff;\n"
733 " val = tsearch(ptr, &root, compare);\n"
734 " if (val == NULL)\n"
735 " exit(EXIT_FAILURE);\n"
736 " if (*val != ptr)\n"
737 " free(ptr);\n"
738 " }\n"
739 " twalk(root, action);\n"
740 " tdestroy(root, free);\n"
741 " exit(EXIT_SUCCESS);\n"
742 "}\n"
743
744 #. SRC END
745 #. type: SH
746 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
747 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
748 #, no-wrap
749 msgid "SEE ALSO"
750 msgstr "VOIR AUSSI"
751
752 #. type: Plain text
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 msgid "B<bsearch>(3), B<hsearch>(3), B<lsearch>(3), B<qsort>(3)"
756 msgstr "B<bsearch>(3), B<hsearch>(3), B<lsearch>(3), B<qsort>(3)"
757
758 #. type: TH
759 #: debian-trixie
760 #, no-wrap
761 msgid "2024-06-15"
762 msgstr "15 juin 2024"
763
764 #. type: TH
765 #: debian-trixie
766 #, no-wrap
767 msgid "Linux man-pages 6.9.1"
768 msgstr "Pages du manuel de Linux 6.9.1"
769
770 #. type: Plain text
771 #: debian-trixie
772 msgid "Standard C library (I<libc>, I<-lc>)"
773 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
774
775 #. type: Plain text
776 #: debian-trixie
777 #, no-wrap
778 msgid ""
779 "B<void *tsearch(const void *>I<key>B<, void **>I<rootp>B<,>\n"
780 "B< int (*>I<compar>B<)(const void *, const void *));>\n"
781 "B<void *tfind(const void *>I<key>B<, void *const *>I<rootp>B<,>\n"
782 "B< int (*>I<compar>B<)(const void *, const void *));>\n"
783 "B<void *tdelete(const void *restrict >I<key>B<, void **restrict >I<rootp>B<,>\n"
784 "B< int (*>I<compar>B<)(const void *, const void *));>\n"
785 "B<void twalk(const void *>I<root>B<,>\n"
786 "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n"
787 "B< int >I<depth>B<));>\n"
788 msgstr ""
789 "B<void *tsearch(const void *>I<key>B<, void **>I<rootp>B<,>\n"
790 "B< int (*>I<compar>B<)(const void *, const void *));>\n"
791 "B<void *tfind(const void *>I<key>B<, void *const *>I<rootp>B<,>\n"
792 "B< int (*>I<compar>B<)(const void *, const void *));>\n"
793 "B<void *tdelete(const void *restrict >I<key>B<, void **restrict >I<rootp>B<,>\n"
794 "B< int (*>I<compar>B<)(const void *, const void *));>\n"
795 "B<void twalk(const void *>I<root>B<,>\n"
796 "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n"
797 "B< int >I<depth>B<));>\n"
798
799 #. type: Plain text
800 #: debian-trixie
801 #, no-wrap
802 msgid ""
803 "B<void twalk_r(const void *>I<root>B<,>\n"
804 "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n"
805 "B< void *>I<closure>B<),>\n"
806 "B< void *>I<closure>B<);>\n"
807 "B<void tdestroy(void *>I<root>B<, void (*>I<free_node>B<)(void *>I<nodep>B<));>\n"
808 msgstr ""
809 "B<void twalk_r(const void *>I<root>B<,>\n"
810 "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n"
811 "B< void *>I<closure>B<),>\n"
812 "B< void *>I<closure>B<);>\n"
813 "B<void tdestroy(void *>I<root>B<, void (*>I<free_node>B<)(void *>I<nodep>B<));>\n"
814
815 #. type: TH
816 #: fedora-44 fedora-rawhide
817 #, no-wrap
818 msgid "2024-12-13"
819 msgstr "13 décembre 2024"
820
821 #. type: TH
822 #: fedora-44 fedora-rawhide
823 #, no-wrap
824 msgid "Linux man-pages 6.13"
825 msgstr "Pages du manuel de Linux 6.13"
826
827 #. type: TH
828 #: mageia-cauldron
829 #, no-wrap
830 msgid "Linux man-pages 6.17"
831 msgstr "Pages du manuel de Linux 6.17"
832
833 #. type: TH
834 #: opensuse-leap-16-1 opensuse-tumbleweed
835 #, no-wrap
836 msgid "Linux man-pages (unreleased)"
837 msgstr "Pages du manuel de Linux (non publiées)"