Debian Codegraph @

po/fr/man3/strcmp.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, 2014.
18 # Frédéric Hantrais <[email protected]>, 2013, 2014.
19 # Grégoire Scano <[email protected]>, 2020.
20 # Lucien Gentis <[email protected]>, 2021.
21 msgid ""
22 msgstr ""
23 "Project-Id-Version: manpages-l10n 4.22.0\n"
24 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
25 "PO-Revision-Date: 2024-05-07 12:38+0200\n"
26 "Last-Translator: Lucien Gentis <[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: Poedit 2.2.1\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 "strcmp"
40 msgstr "strcmp"
41
42 #. type: TH
43 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "2026-03-16"
46 msgstr "16 mars 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 "strcmp, strncmp - compare two strings"
65 msgstr "strcmp, strncmp - Comparer deux chaînes"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "LIBRARY"
72 msgstr "BIBLIOTHÈQUE"
73
74 #. type: Plain text
75 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
76 #: opensuse-leap-16-1 opensuse-tumbleweed
77 msgid "Standard C library (I<libc>,\\ I<-lc>)"
78 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
79
80 #. type: SH
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "SYNOPSIS"
85 msgstr "SYNOPSIS"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<#include E<lt>string.hE<gt>>\n"
92 msgstr "B<#include E<lt>string.hE<gt>>\n"
93
94 #. type: Plain text
95 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
96 #: opensuse-tumbleweed
97 #, fuzzy, no-wrap
98 #| msgid ""
99 #| "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
100 #| "B<int strncmp(const char >I<s1>B<[.>I<n>B<], const char >I<s2>B<[.>I<n>B<], size_t >I<n>B<);>\n"
101 msgid ""
102 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
103 "B<int strncmp(const char >s1B<[], const char >s2B<[], size_t >nB<);>\n"
104 msgstr ""
105 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
106 "B<int strncmp(const char >I<s1>B<[.>I<n>B<], const char >I<s2>B<[.>I<n>B<], size_t >I<n>B<);>\n"
107
108 #. type: SH
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 #, no-wrap
112 msgid "DESCRIPTION"
113 msgstr "DESCRIPTION"
114
115 #. type: TP
116 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
117 #, fuzzy, no-wrap
118 #| msgid "B<strncpy>(3)"
119 msgid "B<strcmp>()"
120 msgstr "B<strncpy>(3)"
121
122 #. type: Plain text
123 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
124 msgid ""
125 "The B<strcmp>() function compares the two strings I<s1> and I<s2>, as if by "
126 "calling B<memcmp>(3)."
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
131 msgid ""
132 "The locale is not taken into account (for a locale-aware comparison, see "
133 "B<strcoll>(3))."
134 msgstr ""
135
136 #. type: Plain text
137 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
138 msgid "It is equivalent to"
139 msgstr "C'est équivalent à\\ :"
140
141 #. type: Plain text
142 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
143 #, no-wrap
144 msgid "memcmp(s1, s2, MIN(strlen(s1),strlen(s2))+1)\n"
145 msgstr ""
146
147 #. type: TP
148 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
149 #, fuzzy, no-wrap
150 #| msgid "B<strncpy>(3)"
151 msgid "B<strncmp>()"
152 msgstr "B<strncpy>(3)"
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "The B<strncmp>() function is similar, except it compares only the first (at "
159 "most) I<n> bytes of I<s1> and I<s2>."
160 msgstr ""
161 "La fonction B<strncmp>() est similaire, mais elle ne compare (au plus) que "
162 "les I<n> premiers octets de I<s1> et I<s2>."
163
164 #. type: Plain text
165 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
166 #, no-wrap
167 msgid "memcmp(s1, s2, MIN(MIN(strnlen(s1,n),strnlen(s2,n))+1, n))\n"
168 msgstr ""
169
170 #. type: SH
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, no-wrap
174 msgid "RETURN VALUE"
175 msgstr "VALEUR RENVOYÉE"
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 B<strcmp>() and B<strncmp>() functions return an integer less than, "
182 "equal to, or greater than zero if I<s1> (or the first I<n> bytes thereof) is "
183 "found, respectively, to be less than, to match, or be greater than I<s2>."
184 msgstr ""
185 "Les fonctions B<strcmp>() et B<strncmp>() renvoient un entier inférieur, "
186 "égal ou supérieur à zéro si I<s1> (ou ses I<n> premiers octets) est "
187 "respectivement inférieure, égale ou supérieure à I<s2>."
188
189 #. type: SH
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 #, no-wrap
193 msgid "ATTRIBUTES"
194 msgstr "ATTRIBUTS"
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid ""
200 "For an explanation of the terms used in this section, see B<attributes>(7)."
201 msgstr ""
202 "Pour une explication des termes utilisés dans cette section, consulter "
203 "B<attributes>(7)."
204
205 #. type: tbl table
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "Interface"
210 msgstr "Interface"
211
212 #. type: tbl table
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 #, no-wrap
216 msgid "Attribute"
217 msgstr "Attribut"
218
219 #. type: tbl table
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid "Value"
224 msgstr "Valeur"
225
226 #. type: tbl table
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid ".na\n"
231 msgstr ".na\n"
232
233 #. type: tbl table
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid ".nh\n"
238 msgstr ".nh\n"
239
240 #. type: tbl table
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid ""
245 "B<strcmp>(),\n"
246 "B<strncmp>()"
247 msgstr ""
248 "B<strcmp>(),\n"
249 "B<strncmp>()"
250
251 #. type: tbl table
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "Thread safety"
256 msgstr "Sécurité des threads"
257
258 #. type: tbl table
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "MT-Safe"
263 msgstr "MT-Safe"
264
265 #. type: SH
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "VERSIONS"
270 msgstr "VERSIONS"
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid "POSIX.1 specifies only that:"
276 msgstr "POSIX.1 ne spécifie uniquement que :"
277
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid ""
282 "The sign of a nonzero return value shall be determined by the sign of the "
283 "difference between the values of the first pair of bytes (both interpreted "
284 "as type I<unsigned char>) that differ in the strings being compared."
285 msgstr ""
286 "Le signe d'une valeur non nulle renvoyée doit être déterminé par le signe de "
287 "la différence entre les valeurs de la première paire d'octets (interprétées "
288 "comme des I<unsigned char>) qui différent dans les chaînes comparées."
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid ""
294 "In glibc, as in most other implementations, the return value is the "
295 "arithmetic result of subtracting the last compared byte in I<s2> from the "
296 "last compared byte in I<s1>. (If the two characters are equal, this "
297 "difference is 0.)"
298 msgstr ""
299 "Dans la glibc, et comme dans la plupart des implémentations, la valeur "
300 "retournée est le résultat arithmétique de la soustraction du dernier octet "
301 "comparé de I<s2> au dernier octet comparé dans I<s1> (si les deux caractères "
302 "sont identiques, la différence est B<0>)."
303
304 #. type: SH
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "STANDARDS"
309 msgstr "NORMES"
310
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid "C11, POSIX.1-2008."
315 msgstr "C11, POSIX.1-2008."
316
317 #. type: SH
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "HISTORY"
322 msgstr "HISTORIQUE"
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
328 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
329
330 #. type: SH
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "EXAMPLES"
335 msgstr "EXEMPLES"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "The program below can be used to demonstrate the operation of B<strcmp>() "
342 "(when given two arguments) and B<strncmp>() (when given three arguments). "
343 "First, some examples using B<strcmp>():"
344 msgstr ""
345 "Le programme suivant peut être utilisé pour illustrer le fonctionnement de "
346 "B<strcmp>() (recevant deux arguments) et B<strncmp>() (recevant trois "
347 "arguments). Tout d'abord, quelques exemples utilisant B<strcmp>() :"
348
349 #. type: Plain text
350 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
351 #: opensuse-tumbleweed
352 #, fuzzy, no-wrap
353 #| msgid ""
354 #| "$ B<./string_comp ABC ABC>\n"
355 #| "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
356 #| "$ B<./string_comp ABC AB> # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
357 #| "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
358 #| "$ B<./string_comp ABA ABZ> # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
359 #| "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
360 #| "$ B<./string_comp ABJ ABC>\n"
361 #| "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
362 #| "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (or 64 decimal)\n"
363 #| "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
364 msgid ""
365 "$B< ./string_comp ABC ABC>;\n"
366 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
367 "$B< ./string_comp ABC AB>; # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
368 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
369 "$B< ./string_comp ABA ABZ>; # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
370 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
371 "$B< ./string_comp ABJ ABC>;\n"
372 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
373 "$B< ./string_comp $\\[aq]\\[rs]201\\[aq] A>; # 0201 - 0101 = 0100 (or 64 decimal)\n"
374 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
375 msgstr ""
376 "$ B<./string_comp ABC ABC>\n"
377 "E<lt>str1E<gt> et E<lt>str2E<gt> sont égales\n"
378 "$ B<./string_comp ABC AB> # le code ASCII de \\[aq]C\\[aq] est 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
379 "E<lt>str1E<gt> est supérieure à E<lt>str2E<gt> (67)\n"
380 "$ B<./string_comp ABA ABZ> # le code ASCII de \\[aq]A\\[aq] est 65; le code ASCII de \\[aq]Z\\[aq] est 90\n"
381 "E<lt>str1E<gt> est inférieure à E<lt>str2E<gt> (-25)\n"
382 "$ B<./string_comp ABJ ABC>\n"
383 "E<lt>str1E<gt> est supérieure à E<lt>str2E<gt> (7)\n"
384 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq]> # 0201 - 0101 = 0100 (ou 64 en décimal)\n"
385 "E<lt>str1E<gt> est supérieure à E<lt>str2E<gt> (64)\n"
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 "The last example uses B<bash>(1)-specific syntax to produce a string "
392 "containing an 8-bit ASCII code; the result demonstrates that the string "
393 "comparison uses unsigned characters."
394 msgstr ""
395 "Le dernier exemple utilise une syntaxe spécifique à B<bash>(1) pour générer "
396 "un chaîne de caractères contenant un code ASCII 8 bits ; le resultat met en "
397 "évidence que la comparaison des chaînes travaille sur des caractères non "
398 "signés."
399
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 msgid "And then some examples using B<strncmp>():"
404 msgstr "Et quelques exemples utilisant B<strncmp>() :"
405
406 #. type: Plain text
407 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
408 #: opensuse-tumbleweed
409 #, fuzzy, no-wrap
410 #| msgid ""
411 #| "$ B<./string_comp ABC AB 3>\n"
412 #| "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
413 #| "$ B<./string_comp ABC AB 2>\n"
414 #| "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
415 msgid ""
416 "$B< ./string_comp ABC AB 3>;\n"
417 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
418 "$B< ./string_comp ABC AB 2>;\n"
419 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
420 msgstr ""
421 "$ B<./string_comp ABC AB 3>\n"
422 "E<lt>str1E<gt> est supérieure à E<lt>str2E<gt> (67)\n"
423 "$ B<./string_comp ABC AB 2>\n"
424 "E<lt>str1E<gt> et E<lt>str2E<gt> ont leurs deux premiers octets égaux\n"
425
426 #. type: SS
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "Program source"
431 msgstr "Source du programme"
432
433 #. type: Plain text
434 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
435 #: opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid ""
438 "/* string_comp.c\n"
439 "\\&\n"
440 " Licensed under GNU General Public License v2 or later.\n"
441 "*/\n"
442 "#include E<lt>stdio.hE<gt>\n"
443 "#include E<lt>stdlib.hE<gt>\n"
444 "#include E<lt>string.hE<gt>\n"
445 "\\&\n"
446 "int\n"
447 "main(int argc, char *argv[])\n"
448 "{\n"
449 " int res;\n"
450 "\\&\n"
451 " if (argc E<lt> 3) {\n"
452 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
453 " exit(EXIT_FAILURE);\n"
454 " }\n"
455 "\\&\n"
456 " if (argc == 3)\n"
457 " res = strcmp(argv[1], argv[2]);\n"
458 " else\n"
459 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
460 "\\&\n"
461 " if (res == 0) {\n"
462 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
463 " if (argc E<gt> 3)\n"
464 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
465 " printf(\"\\[rs]n\");\n"
466 " } else if (res E<lt> 0) {\n"
467 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
468 " } else {\n"
469 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
470 " }\n"
471 "\\&\n"
472 " exit(EXIT_SUCCESS);\n"
473 "}\n"
474 msgstr ""
475 "/* string_comp.c\n"
476 "\\&\n"
477 " Sous licence GNU General Public v2 ou postérieure.\n"
478 "*/\n"
479 "#include E<lt>stdio.hE<gt>\n"
480 "#include E<lt>stdlib.hE<gt>\n"
481 "#include E<lt>string.hE<gt>\n"
482 "\\&\n"
483 "int\n"
484 "main(int argc, char *argv[])\n"
485 "{\n"
486 " int res;\n"
487 "\\&\n"
488 " if (argc E<lt> 3) {\n"
489 " fprintf(stderr, \"Utilisation : %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
490 " exit(EXIT_FAILURE);\n"
491 " }\n"
492 "\\&\n"
493 " if (argc == 3)\n"
494 " res = strcmp(argv[1], argv[2]);\n"
495 " else\n"
496 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
497 "\\&\n"
498 " if (res == 0) {\n"
499 " printf(\"E<lt>str1E<gt> et E<lt>str2E<gt> sont égaux\");\n"
500 " if (argc E<gt> 3)\n"
501 " printf(\" pour les %d premiers octets\\[rs]n\", atoi(argv[3]));\n"
502 " printf(\"\\[rs]n\");\n"
503 " } else if (res E<lt> 0) {\n"
504 " printf(\"E<lt>str1E<gt> est inférieure à E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
505 " } else {\n"
506 " printf(\"E<lt>str1E<gt> est supérieure à E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
507 " }\n"
508 "\\&\n"
509 " exit(EXIT_SUCCESS);\n"
510 "}\n"
511
512 #. SRC END
513 #. type: SH
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "SEE ALSO"
518 msgstr "VOIR AUSSI"
519
520 #. type: Plain text
521 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
522 #, fuzzy
523 #| msgid ""
524 #| "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
525 #| "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), "
526 #| "B<ascii>(7)"
527 msgid ""
528 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<streq>(3), B<string>(3), "
529 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
530 msgstr ""
531 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
532 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
533
534 #. type: TH
535 #: debian-trixie
536 #, no-wrap
537 msgid "2024-06-15"
538 msgstr "15 juin 2024"
539
540 #. type: TH
541 #: debian-trixie
542 #, no-wrap
543 msgid "Linux man-pages 6.9.1"
544 msgstr "Pages du manuel de Linux 6.9.1"
545
546 #. type: Plain text
547 #: debian-trixie
548 msgid "Standard C library (I<libc>, I<-lc>)"
549 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
550
551 #. type: Plain text
552 #: debian-trixie fedora-44 fedora-rawhide
553 #, no-wrap
554 msgid ""
555 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
556 "B<int strncmp(const char >I<s1>B<[.>I<n>B<], const char >I<s2>B<[.>I<n>B<], size_t >I<n>B<);>\n"
557 msgstr ""
558 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
559 "B<int strncmp(const char >I<s1>B<[.>I<n>B<], const char >I<s2>B<[.>I<n>B<], size_t >I<n>B<);>\n"
560
561 #. type: Plain text
562 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
563 msgid ""
564 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. The "
565 "locale is not taken into account (for a locale-aware comparison, see "
566 "B<strcoll>(3)). The comparison is done using unsigned characters."
567 msgstr ""
568 "La fonction B<strcmp>() compare les deux chaînes I<s1> et I<s2>. La locale "
569 "n'est pas prise en compte (pour une comparaison basée sur la locale, "
570 "consultez B<strcoll>(3)). La comparaison est effectuée sur des caractères "
571 "non signés."
572
573 #. type: Plain text
574 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
575 msgid ""
576 "B<strcmp>() returns an integer indicating the result of the comparison, as "
577 "follows:"
578 msgstr ""
579 "B<strcmp>() retourne un entier indiquant le résultat de la comparaison comme "
580 "suit :"
581
582 #. type: IP
583 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
584 #, no-wrap
585 msgid "\\[bu]"
586 msgstr "-"
587
588 #. type: Plain text
589 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
590 msgid "0, if the I<s1> and I<s2> are equal;"
591 msgstr "B<0> si I<s1> et I<s2> sont égales ;"
592
593 #. type: Plain text
594 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
595 msgid "a negative value if I<s1> is less than I<s2>;"
596 msgstr "une valeur négative si I<s1> est inférieure à I<s2> ;"
597
598 #. type: Plain text
599 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
600 msgid "a positive value if I<s1> is greater than I<s2>."
601 msgstr "une valeur positive si I<s1> est supérieure à I<s2>."
602
603 #. type: Plain text
604 #: debian-trixie fedora-44 fedora-rawhide
605 #, no-wrap
606 msgid ""
607 "$ B<./string_comp ABC ABC>\n"
608 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
609 "$ B<./string_comp ABC AB> # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
610 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
611 "$ B<./string_comp ABA ABZ> # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
612 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
613 "$ B<./string_comp ABJ ABC>\n"
614 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
615 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (or 64 decimal)\n"
616 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
617 msgstr ""
618 "$ B<./string_comp ABC ABC>\n"
619 "E<lt>str1E<gt> et E<lt>str2E<gt> sont égales\n"
620 "$ B<./string_comp ABC AB> # le code ASCII de \\[aq]C\\[aq] est 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
621 "E<lt>str1E<gt> est supérieure à E<lt>str2E<gt> (67)\n"
622 "$ B<./string_comp ABA ABZ> # le code ASCII de \\[aq]A\\[aq] est 65; le code ASCII de \\[aq]Z\\[aq] est 90\n"
623 "E<lt>str1E<gt> est inférieure à E<lt>str2E<gt> (-25)\n"
624 "$ B<./string_comp ABJ ABC>\n"
625 "E<lt>str1E<gt> est supérieure à E<lt>str2E<gt> (7)\n"
626 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq]> # 0201 - 0101 = 0100 (ou 64 en décimal)\n"
627 "E<lt>str1E<gt> est supérieure à E<lt>str2E<gt> (64)\n"
628
629 #. type: Plain text
630 #: debian-trixie fedora-44 fedora-rawhide
631 #, no-wrap
632 msgid ""
633 "$ B<./string_comp ABC AB 3>\n"
634 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
635 "$ B<./string_comp ABC AB 2>\n"
636 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
637 msgstr ""
638 "$ B<./string_comp ABC AB 3>\n"
639 "E<lt>str1E<gt> est supérieure à E<lt>str2E<gt> (67)\n"
640 "$ B<./string_comp ABC AB 2>\n"
641 "E<lt>str1E<gt> et E<lt>str2E<gt> ont leurs deux premiers octets égaux\n"
642
643 #. type: Plain text
644 #: debian-trixie
645 #, no-wrap
646 msgid ""
647 "/* string_comp.c\n"
648 "\\&\n"
649 " Licensed under GNU General Public License v2 or later.\n"
650 "*/\n"
651 "#include E<lt>stdio.hE<gt>\n"
652 "#include E<lt>stdlib.hE<gt>\n"
653 "#include E<lt>string.hE<gt>\n"
654 "\\&\n"
655 "int\n"
656 "main(int argc, char *argv[])\n"
657 "{\n"
658 " int res;\n"
659 "\\&\n"
660 " if (argc E<lt> 3) {\n"
661 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>lenE<gt>]\\[rs]n\", argv[0]);\n"
662 " exit(EXIT_FAILURE);\n"
663 " }\n"
664 "\\&\n"
665 " if (argc == 3)\n"
666 " res = strcmp(argv[1], argv[2]);\n"
667 " else\n"
668 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
669 "\\&\n"
670 " if (res == 0) {\n"
671 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
672 " if (argc E<gt> 3)\n"
673 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
674 " printf(\"\\[rs]n\");\n"
675 " } else if (res E<lt> 0) {\n"
676 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
677 " } else {\n"
678 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
679 " }\n"
680 "\\&\n"
681 " exit(EXIT_SUCCESS);\n"
682 "}\n"
683 msgstr ""
684 "/* string_comp.c\n"
685 "\\&\n"
686 " Sous licence GNU General Public v2 ou postérieure.\n"
687 "*/\n"
688 "#include E<lt>stdio.hE<gt>\n"
689 "#include E<lt>stdlib.hE<gt>\n"
690 "#include E<lt>string.hE<gt>\n"
691 "\\&\n"
692 "int\n"
693 "main(int argc, char *argv[])\n"
694 "{\n"
695 " int res;\n"
696 "\\&\n"
697 " if (argc E<lt> 3) {\n"
698 " fprintf(stderr, \"Utilisation : %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>lenE<gt>]\\[rs]n\", argv[0]);\n"
699 " exit(EXIT_FAILURE);\n"
700 " }\n"
701 "\\&\n"
702 " if (argc == 3)\n"
703 " res = strcmp(argv[1], argv[2]);\n"
704 " else\n"
705 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
706 "\\&\n"
707 " if (res == 0) {\n"
708 " printf(\"E<lt>str1E<gt> et E<lt>str2E<gt> sont égaux\");\n"
709 " if (argc E<gt> 3)\n"
710 " printf(\" pour les %d premiers octets\\[rs]n\", atoi(argv[3]));\n"
711 " printf(\"\\[rs]n\");\n"
712 " } else if (res E<lt> 0) {\n"
713 " printf(\"E<lt>str1E<gt> est inférieure à E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
714 " } else {\n"
715 " printf(\"E<lt>str1E<gt> est supérieure à E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
716 " }\n"
717 "\\&\n"
718 " exit(EXIT_SUCCESS);\n"
719 "}\n"
720
721 #. type: Plain text
722 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
723 msgid ""
724 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
725 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
726 msgstr ""
727 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
728 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
729
730 #. type: TH
731 #: fedora-44 fedora-rawhide
732 #, no-wrap
733 msgid "2024-11-17"
734 msgstr "17 novembre 2024"
735
736 #. type: TH
737 #: fedora-44 fedora-rawhide
738 #, no-wrap
739 msgid "Linux man-pages 6.13"
740 msgstr "Pages du manuel de Linux 6.13"
741
742 #. type: TH
743 #: mageia-cauldron
744 #, no-wrap
745 msgid "2026-02-08"
746 msgstr "8 février 2026"
747
748 #. type: TH
749 #: mageia-cauldron
750 #, no-wrap
751 msgid "Linux man-pages 6.17"
752 msgstr "Pages du manuel de Linux 6.17"
753
754 #. type: TH
755 #: opensuse-leap-16-1 opensuse-tumbleweed
756 #, no-wrap
757 msgid "Linux man-pages (unreleased)"
758 msgstr "Pages du manuel de Linux (non publiées)"