Debian Codegraph @

po/fr/man3/qsort.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.
20 # Jean-Pierre Giraud <[email protected]>, 2024.
21 msgid ""
22 msgstr ""
23 "Project-Id-Version: manpages-l10n 4.22.0\n"
24 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
25 "PO-Revision-Date: 2024-04-01 17:31+0200\n"
26 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
27 "Language-Team: French <[email protected]>\n"
28 "Language: fr\n"
29 "MIME-Version: 1.0\n"
30 "Content-Type: text/plain; charset=UTF-8\n"
31 "Content-Transfer-Encoding: 8bit\n"
32 "Plural-Forms: nplurals=2; plural=n > 1;\n"
33 "X-Generator: Lokalize 22.12.3\n"
34
35 #. type: TH
36 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
37 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
38 #, no-wrap
39 msgid "qsort"
40 msgstr "qsort"
41
42 #. type: TH
43 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
44 #: opensuse-tumbleweed
45 #, no-wrap
46 msgid "2026-02-08"
47 msgstr "8 février 2026"
48
49 #. type: TH
50 #: archlinux debian-unstable
51 #, no-wrap
52 msgid "Linux man-pages 6.18"
53 msgstr "Pages du manuel de Linux 6.18"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "NAME"
60 msgstr "NOM"
61
62 #. type: Plain text
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "qsort, qsort_r - sort an array"
66 msgstr "qsort, qsort_r - Trier un tableau"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "LIBRARY"
73 msgstr "BIBLIOTHÈQUE"
74
75 #. type: Plain text
76 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
77 #: opensuse-leap-16-1 opensuse-tumbleweed
78 msgid "Standard C library (I<libc>,\\ I<-lc>)"
79 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
80
81 #. type: SH
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "SYNOPSIS"
86 msgstr "SYNOPSIS"
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
93 msgstr "B<#include E<lt>stdlib.hE<gt>>\n"
94
95 #. type: Plain text
96 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
97 #: opensuse-tumbleweed
98 #, fuzzy, no-wrap
99 #| msgid ""
100 #| "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
101 #| "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n"
102 #| "B< *>I<compar>B<);>\n"
103 #| "B<void qsort_r(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
104 #| "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<], void *))>\n"
105 #| "B< *>I<compar>B<,>\n"
106 #| "B< void *>I<arg>B<);>\n"
107 msgid ""
108 "B<void qsort(>size_t n, size_t size;\n"
109 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
110 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<]))>\n"
111 "B< *>I<compar>B<);>\n"
112 "B<void qsort_r(>size_t n, size_t size;\n"
113 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
114 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<], void *))>\n"
115 "B< *>I<compar>B<,>\n"
116 "B< void *>I<arg>B<);>\n"
117 msgstr ""
118 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
119 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n"
120 "B< *>I<compar>B<);>\n"
121 "B<void qsort_r(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
122 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<], void *))>\n"
123 "B< *>I<compar>B<,>\n"
124 "B< void *>I<arg>B<);>\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 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
131 msgstr ""
132 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
133 "B<feature_test_macros>(7)) :"
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid "B<qsort_r>():"
139 msgstr "B<qsort_r>():"
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 #, no-wrap
145 msgid " _GNU_SOURCE\n"
146 msgstr " _GNU_SOURCE\n"
147
148 #. type: SH
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 #, no-wrap
152 msgid "DESCRIPTION"
153 msgstr "DESCRIPTION"
154
155 #. type: Plain text
156 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
157 #: opensuse-leap-16-1 opensuse-tumbleweed
158 msgid ""
159 "The B<qsort>() function sorts an array with I<n> elements of size I<size>. "
160 "The I<base> argument points to the start of the array."
161 msgstr ""
162 "La fonction B<qsort>() trie un tableau contenant I<n> éléments de taille "
163 "I<size>. L'argument I<base> pointe sur le début du tableau."
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid ""
169 "The contents of the array are sorted in ascending order according to a "
170 "comparison function pointed to by I<compar>, which is called with two "
171 "arguments that point to the objects being compared."
172 msgstr ""
173 "Le contenu du tableau est trié en ordre croissant, en utilisant la fonction "
174 "de comparaison pointée par I<compar>, laquelle est appelée avec deux "
175 "arguments pointant sur les objets à comparer."
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 msgid ""
181 "The comparison function must return an integer less than, equal to, or "
182 "greater than zero if the first argument is considered to be respectively "
183 "less than, equal to, or greater than the second. If two members compare as "
184 "equal, their order in the sorted array is undefined."
185 msgstr ""
186 "La fonction de comparaison doit renvoyer un entier inférieur, égal, ou "
187 "supérieur à zéro si le premier argument est respectivement considéré comme "
188 "inférieur, égal ou supérieur au second. Si la comparaison des deux arguments "
189 "renvoie une égalité (valeur de retour nulle), l'ordre des deux éléments est "
190 "indéfini."
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "The B<qsort_r>() function is identical to B<qsort>() except that the "
197 "comparison function I<compar> takes a third argument. A pointer is passed "
198 "to the comparison function via I<arg>. In this way, the comparison function "
199 "does not need to use global variables to pass through arbitrary arguments, "
200 "and is therefore reentrant and safe to use in threads."
201 msgstr ""
202 "La fonction B<qsort_r>() est identique à B<qsort>() si ce n'est que la "
203 "fonction de comparaison I<compar> prend un troisième argument. Un pointeur "
204 "est passé à la fonction de comparaison à l'aide de I<arg>. De cette façon, "
205 "la fonction de comparaison n'a pas besoin d'utiliser des variables globales "
206 "à passer à l'aide d'arguments arbitraires, et est par conséquent rentrante "
207 "et sécurisée pour utiliser dans des threads."
208
209 #. type: SH
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid "RETURN VALUE"
214 msgstr "VALEUR RENVOYÉE"
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid "The B<qsort>() and B<qsort_r>() functions return no value."
220 msgstr "Les fonction B<qsort>() et B<qsort_r>() ne renvoient pas de valeur."
221
222 #. type: SH
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid "ATTRIBUTES"
227 msgstr "ATTRIBUTS"
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid ""
233 "For an explanation of the terms used in this section, see B<attributes>(7)."
234 msgstr ""
235 "Pour une explication des termes utilisés dans cette section, consulter "
236 "B<attributes>(7)."
237
238 #. type: tbl table
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "Interface"
243 msgstr "Interface"
244
245 #. type: tbl table
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid "Attribute"
250 msgstr "Attribut"
251
252 #. type: tbl table
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "Value"
257 msgstr "Valeur"
258
259 #. type: tbl table
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid ".na\n"
264 msgstr ".na\n"
265
266 #. type: tbl table
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid ".nh\n"
271 msgstr ".nh\n"
272
273 #. type: tbl table
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid ""
278 "B<qsort>(),\n"
279 "B<qsort_r>()"
280 msgstr ""
281 "B<qsort>(),\n"
282 "B<qsort_r>()"
283
284 #. type: tbl table
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "Thread safety"
289 msgstr "Sécurité des threads"
290
291 #. type: tbl table
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 #, no-wrap
295 msgid "MT-Safe"
296 msgstr "MT-Safe"
297
298 #. type: SH
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "STANDARDS"
303 msgstr "NORMES"
304
305 #. type: TP
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "B<qsort>()"
310 msgstr "B<qsort>()"
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 "C11, POSIX.1-2008."
316 msgstr "C11, POSIX.1-2008."
317
318 #. type: SH
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "HISTORY"
323 msgstr "HISTORIQUE"
324
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
329 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
330
331 #. type: TP
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "B<qsort_r>()"
336 msgstr "B<qsort_r>()"
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 "glibc 2.8."
342 msgstr "glibc 2.8."
343
344 #. type: SH
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid "NOTES"
349 msgstr "NOTES"
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 "To compare C strings, the comparison function can call B<strcmp>(3), as "
356 "shown in the example below."
357 msgstr ""
358 "Pour comparer des chaînes de caractères C, la fonction de comparaison peut "
359 "appeler B<strcmp>(3), comme illustré dans l'exemple ci-dessous."
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 "EXAMPLES"
366 msgstr "EXEMPLES"
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 "For one example of use, see the example under B<bsearch>(3)."
372 msgstr ""
373 "Pour un exemple d'utilisation, voir l'exemple de la page B<bsearch>(3)."
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 msgid ""
379 "Another example is the following program, which sorts the strings given in "
380 "its command-line arguments:"
381 msgstr ""
382 "Un autre exemple d'utilisation est le programme ci-dessous, qui trie les "
383 "chaînes données sur la ligne de commande :"
384
385 #. type: Plain text
386 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
387 #: opensuse-tumbleweed
388 #, fuzzy, no-wrap
389 #| msgid ""
390 #| "#include E<lt>stdio.hE<gt>\n"
391 #| "#include E<lt>stdlib.hE<gt>\n"
392 #| "#include E<lt>string.hE<gt>\n"
393 #| "\\&\n"
394 #| "static int\n"
395 #| "cmpstringp(const void *p1, const void *p2)\n"
396 #| "{\n"
397 #| " /* The actual arguments to this function are \"pointers to\n"
398 #| " pointers to char\", but strcmp(3) arguments are \"pointers\n"
399 #| " to char\", hence the following cast plus dereference. */\n"
400 #| "\\&\n"
401 #| " return strcmp(*(const char **) p1, *(const char **) p2);\n"
402 #| "}\n"
403 #| "\\&\n"
404 #| "int\n"
405 #| "main(int argc, char *argv[])\n"
406 #| "{\n"
407 #| " if (argc E<lt> 2) {\n"
408 #| " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\[rs]n\", argv[0]);\n"
409 #| " exit(EXIT_FAILURE);\n"
410 #| " }\n"
411 #| "\\&\n"
412 #| " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
413 #| "\\&\n"
414 #| " for (size_t j = 1; j E<lt> argc; j++)\n"
415 #| " puts(argv[j]);\n"
416 #| " exit(EXIT_SUCCESS);\n"
417 #| "}\n"
418 msgid ""
419 "#include E<lt>stdio.hE<gt>\n"
420 "#include E<lt>stdlib.hE<gt>\n"
421 "#include E<lt>string.hE<gt>\n"
422 "\\&\n"
423 "static int\n"
424 "cmpstringp(const void *p1, const void *p2)\n"
425 "{\n"
426 " /* The actual arguments to this function are \"pointers to\n"
427 " pointers to char\", but strcmp(3) arguments are \"pointers\n"
428 " to char\", hence the following cast plus dereference. */\n"
429 "\\&\n"
430 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
431 "}\n"
432 "\\&\n"
433 "int\n"
434 "main(int argc, char *argv[])\n"
435 "{\n"
436 " if (argc E<lt> 2) {\n"
437 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\[rs]n\", argv[0]);\n"
438 " exit(EXIT_FAILURE);\n"
439 " }\n"
440 "\\&\n"
441 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
442 "\\&\n"
443 " for (size_t j = 1; j E<lt> argc; j++)\n"
444 " puts(argv[j]);\n"
445 " exit(EXIT_SUCCESS);\n"
446 "}\n"
447 msgstr ""
448 "#include E<lt>stdio.hE<gt>\n"
449 "#include E<lt>stdlib.hE<gt>\n"
450 "#include E<lt>string.hE<gt>\n"
451 "\\&\n"
452 "static int\n"
453 "cmpstringp(const void *p1, const void *p2)\n"
454 "{\n"
455 " /* Les arguments de cette fonction sont des « pointeurs de\n"
456 " pointeurs sur des caractères », mais les arguments de\n"
457 " strcmp(3) sont des « pointeurs sur des caractères », d'où\n"
458 " le forçage de type et le déréférencement. */\n"
459 "\\&\n"
460 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
461 "}\n"
462 "\\&\n"
463 "int\n"
464 "main(int argc, char *argv[])\n"
465 "{\n"
466 " if (argc E<lt> 2) {\n"
467 " fprintf(stderr, \"Utilisation : %s E<lt>chaîneE<gt>...\\[rs]n\", argv[0]);\n"
468 " exit(EXIT_FAILURE);\n"
469 " }\n"
470 "\\&\n"
471 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
472 "\\&\n"
473 " for (size_t j = 1; j E<lt> argc; j++)\n"
474 " puts(argv[j]);\n"
475 " exit(EXIT_SUCCESS);\n"
476 "}\n"
477
478 #. SRC END
479 #. type: SH
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 #, no-wrap
483 msgid "SEE ALSO"
484 msgstr "VOIR AUSSI"
485
486 #. type: Plain text
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 msgid "B<sort>(1), B<alphasort>(3), B<strcmp>(3), B<versionsort>(3)"
490 msgstr "B<sort>(1), B<alphasort>(3), B<strcmp>(3), B<versionsort>(3)"
491
492 #. type: TH
493 #: debian-trixie
494 #, no-wrap
495 msgid "2024-06-15"
496 msgstr "15 juin 2024"
497
498 #. type: TH
499 #: debian-trixie
500 #, no-wrap
501 msgid "Linux man-pages 6.9.1"
502 msgstr "Pages du manuel de Linux 6.9.1"
503
504 #. type: Plain text
505 #: debian-trixie
506 msgid "Standard C library (I<libc>, I<-lc>)"
507 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
508
509 #. type: Plain text
510 #: debian-trixie
511 #, no-wrap
512 msgid ""
513 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
514 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
515 "B<void qsort_r(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
516 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<], void *),>\n"
517 "B< void *>I<arg>B<);>\n"
518 msgstr ""
519 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
520 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
521 "B<void qsort_r(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
522 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<], void *),>\n"
523 "B< void *>I<arg>B<);>\n"
524
525 #. type: Plain text
526 #: debian-trixie
527 msgid ""
528 "The B<qsort>() function sorts an array with I<nmemb> elements of size "
529 "I<size>. The I<base> argument points to the start of the array."
530 msgstr ""
531 "La fonction B<qsort>() trie un tableau contenant I<nmemb> éléments de taille "
532 "I<size>. L'argument I<base> pointe sur le début du tableau."
533
534 #. type: Plain text
535 #: debian-trixie fedora-44 fedora-rawhide
536 #, no-wrap
537 msgid ""
538 "#include E<lt>stdio.hE<gt>\n"
539 "#include E<lt>stdlib.hE<gt>\n"
540 "#include E<lt>string.hE<gt>\n"
541 "\\&\n"
542 "static int\n"
543 "cmpstringp(const void *p1, const void *p2)\n"
544 "{\n"
545 " /* The actual arguments to this function are \"pointers to\n"
546 " pointers to char\", but strcmp(3) arguments are \"pointers\n"
547 " to char\", hence the following cast plus dereference. */\n"
548 "\\&\n"
549 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
550 "}\n"
551 "\\&\n"
552 "int\n"
553 "main(int argc, char *argv[])\n"
554 "{\n"
555 " if (argc E<lt> 2) {\n"
556 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\[rs]n\", argv[0]);\n"
557 " exit(EXIT_FAILURE);\n"
558 " }\n"
559 "\\&\n"
560 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
561 "\\&\n"
562 " for (size_t j = 1; j E<lt> argc; j++)\n"
563 " puts(argv[j]);\n"
564 " exit(EXIT_SUCCESS);\n"
565 "}\n"
566 msgstr ""
567 "#include E<lt>stdio.hE<gt>\n"
568 "#include E<lt>stdlib.hE<gt>\n"
569 "#include E<lt>string.hE<gt>\n"
570 "\\&\n"
571 "static int\n"
572 "cmpstringp(const void *p1, const void *p2)\n"
573 "{\n"
574 " /* Les arguments de cette fonction sont des « pointeurs de\n"
575 " pointeurs sur des caractères », mais les arguments de\n"
576 " strcmp(3) sont des « pointeurs sur des caractères », d'où\n"
577 " le forçage de type et le déréférencement. */\n"
578 "\\&\n"
579 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
580 "}\n"
581 "\\&\n"
582 "int\n"
583 "main(int argc, char *argv[])\n"
584 "{\n"
585 " if (argc E<lt> 2) {\n"
586 " fprintf(stderr, \"Utilisation : %s E<lt>chaîneE<gt>...\\[rs]n\", argv[0]);\n"
587 " exit(EXIT_FAILURE);\n"
588 " }\n"
589 "\\&\n"
590 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
591 "\\&\n"
592 " for (size_t j = 1; j E<lt> argc; j++)\n"
593 " puts(argv[j]);\n"
594 " exit(EXIT_SUCCESS);\n"
595 "}\n"
596
597 #. type: TH
598 #: fedora-44 fedora-rawhide
599 #, no-wrap
600 msgid "2024-12-13"
601 msgstr "13 décembre 2024"
602
603 #. type: TH
604 #: fedora-44 fedora-rawhide
605 #, no-wrap
606 msgid "Linux man-pages 6.13"
607 msgstr "Pages du manuel de Linux 6.13"
608
609 #. type: Plain text
610 #: fedora-44 fedora-rawhide
611 #, no-wrap
612 msgid ""
613 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
614 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n"
615 "B< *>I<compar>B<);>\n"
616 "B<void qsort_r(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
617 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<], void *))>\n"
618 "B< *>I<compar>B<,>\n"
619 "B< void *>I<arg>B<);>\n"
620 msgstr ""
621 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
622 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n"
623 "B< *>I<compar>B<);>\n"
624 "B<void qsort_r(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
625 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<], void *))>\n"
626 "B< *>I<compar>B<,>\n"
627 "B< void *>I<arg>B<);>\n"
628
629 #. type: TH
630 #: mageia-cauldron
631 #, no-wrap
632 msgid "Linux man-pages 6.17"
633 msgstr "Pages du manuel de Linux 6.17"
634
635 #. type: TH
636 #: opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid "Linux man-pages (unreleased)"
639 msgstr "Pages du manuel de Linux (non publiées)"