Debian Codegraph @

po/fr/man3/strtol.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, 2013.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010, 2012-2014.
18 # Grégoire Scano <[email protected]>, 2020.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: perkamon\n"
22 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
23 "PO-Revision-Date: 2023-04-22 13:24+0200\n"
24 "Last-Translator: Grégoire Scano <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 20.12.0\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "strtol"
38 msgstr "strtol"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2026-02-08"
45 msgstr "8 février 2026"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Pages du manuel de Linux 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NOM"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "strtol, strtoll, strtoq - convert a string to a long integer"
64 msgstr "strtol, strtoll, strtoq - Convertir une chaîne en un entier long"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "LIBRARY"
71 msgstr "BIBLIOTHÈQUE"
72
73 #. type: Plain text
74 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
75 #: opensuse-leap-16-1 opensuse-tumbleweed
76 msgid "Standard C library (I<libc>,\\ I<-lc>)"
77 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
78
79 #. type: SH
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "SYNOPSIS"
84 msgstr "SYNOPSIS"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
91 msgstr "B<#include E<lt>stdlib.hE<gt>>\n"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, fuzzy, no-wrap
97 #| msgid ""
98 #| "B<long strtol(const char *restrict >I<nptr>B<,>\n"
99 #| "B< char **restrict >I<endptr>B<, int >I<base>B<);>\n"
100 #| "B<long long strtoll(const char *restrict >I<nptr>B<,>\n"
101 #| "B< char **restrict >I<endptr>B<, int >I<base>B<);>\n"
102 msgid ""
103 "B<long strtol(const char *restrict >I<nptr>B<,>\n"
104 "B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n"
105 "B<long long strtoll(const char *restrict >I<nptr>B<,>\n"
106 "B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n"
107 msgstr ""
108 "B<long strtol(const char *restrict >I<nptr>B<,>\n"
109 "B< char **restrict >I<endptr>B<, int >I<base>B<);>\n"
110 "B<long long strtoll(const char *restrict >I<nptr>B<,>\n"
111 "B< char **restrict >I<endptr>B<, int >I<base>B<);>\n"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid ""
117 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
118 msgstr ""
119 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
120 "B<feature_test_macros>(7)) :"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid "B<strtoll>():"
126 msgstr "B<strtoll>() :"
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 #, no-wrap
132 msgid ""
133 " _ISOC99_SOURCE\n"
134 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
135 msgstr ""
136 " _ISOC99_SOURCE\n"
137 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
138
139 #. type: SH
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid "DESCRIPTION"
144 msgstr "DESCRIPTION"
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "The B<strtol>() function converts the initial part of the string in I<nptr> "
151 "to a long integer value according to the given I<base>, which must be "
152 "between 2 and 36 inclusive, or be the special value 0."
153 msgstr ""
154 "La fonction B<strtol>() convertit la partie initiale de la chaîne I<nptr> en "
155 "un entier long en fonction de l'argument I<base>, qui doit être dans "
156 "l'intervalle B<2> à B<36> (bornes comprises), ou avoir la valeur spéciale "
157 "B<0>."
158
159 #. type: Plain text
160 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
161 #: opensuse-tumbleweed
162 #, fuzzy
163 #| msgid ""
164 #| "The string may begin with an arbitrary amount of white space (as "
165 #| "determined by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] "
166 #| "or \\[aq]-\\[aq] sign. If I<base> is zero or 16, the string may then "
167 #| "include a \"0x\" or \"0X\" prefix, and the number will be read in base "
168 #| "16; otherwise, a zero I<base> is taken as 10 (decimal) unless the next "
169 #| "character is \\[aq]0\\[aq], in which case it is taken as 8 (octal)."
170 msgid ""
171 "The string may begin with an arbitrary amount of white space (as determined "
172 "by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] or \\[aq]-\\"
173 "[aq] sign. If I<base> is zero or 16, the string may then include a \"0x\" "
174 "or \"0X\" prefix, and the number will be read in base 16; if I<base> is zero "
175 "or 2, the string may then include a \"0b\" or \"0B\" prefix, and the number "
176 "will be read in base 2; otherwise, a zero I<base> is taken as 10 (decimal) "
177 "unless the next character is \\[aq]0\\[aq], in which case it is taken as 8 "
178 "(octal)."
179 msgstr ""
180 "La chaîne peut commencer par un nombre quelconque d'espaces (tels que "
181 "définis par B<isspace>(3)) suivi d'un éventuel signe «\\ +\\ » ou «\\ -\\ ». "
182 "Si I<base> vaut B<0> ou B<16>, la chaîne peut inclure un préfixe «\\ 0x\\ » "
183 "ou « 0X » et le nombre sera interprété en base B<16>. Sinon, une I<base> "
184 "valant zéro est interprétée comme B<10> (base décimale) sauf si le caractère "
185 "suivant est «\\ 0\\ », auquel cas la base est B<8> (base octale)."
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 msgid ""
191 "The remainder of the string is converted to a I<long> value in the obvious "
192 "manner, stopping at the first character which is not a valid digit in the "
193 "given base. (In bases above 10, the letter \\[aq]A\\[aq] in either "
194 "uppercase or lowercase represents 10, \\[aq]B\\[aq] represents 11, and so "
195 "forth, with \\[aq]Z\\[aq] representing 35.)"
196 msgstr ""
197 "Le reste de la chaîne est converti en une valeur I<long>, en s'arrêtant au "
198 "premier caractère qui ne soit pas un chiffre autorisé dans cette base. Dans "
199 "les bases supérieures à B<10>, la lettre «\\ A\\ » (majuscule ou minuscule) "
200 "représente B<10>, «\\ B\\ » représente B<11>, et ainsi de suite jusqu'à «\\ "
201 "Z\\ » représentant B<35>."
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, fuzzy
207 #| msgid ""
208 #| "If I<endptr> is not NULL, B<strtol>() stores the address of the first "
209 #| "invalid character in I<*endptr>. If there were no digits at all, "
210 #| "B<strtol>() stores the original value of I<nptr> in I<*endptr> (and "
211 #| "returns 0). In particular, if I<*nptr> is not \\[aq]\\e0\\[aq] but "
212 #| "I<**endptr> is \\[aq]\\e0\\[aq] on return, the entire string is valid."
213 msgid ""
214 "If I<endptr> is not NULL, and the I<base> is supported, B<strtol>() stores "
215 "the address of the first invalid character in I<*endptr>. If there were no "
216 "digits at all, B<strtol>() stores the original value of I<nptr> in "
217 "I<*endptr> (and returns 0). In particular, if I<*nptr> is not \\[aq]\\"
218 "[rs]0\\[aq] but I<**endptr> is \\[aq]\\[rs]0\\[aq] on return, the entire "
219 "string is valid."
220 msgstr ""
221 "Si I<endptr> n'est pas NULL, B<strtol>() stocke l'adresse du premier "
222 "caractère non valable dans I<*endptr>. S'il n'y avait aucun chiffre, "
223 "B<strtol>() stocke la valeur originale de I<nptr> dans I<*endptr> (et "
224 "renvoie 0). En particulier, si I<*nptr> n'est pas «\\ \\e0\\ » et si "
225 "I<**endptr> vaut «\\ \\e0\\ » en retour, la chaîne entière est valable."
226
227 #. type: Plain text
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 msgid ""
231 "The B<strtoll>() function works just like the B<strtol>() function but "
232 "returns a I<long long> integer value."
233 msgstr ""
234 "La fonction B<strtoll>() fonctionne comme B<strtol>() mais renvoie une "
235 "valeur entière de type I<long long>."
236
237 #. type: SH
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 #, no-wrap
241 msgid "RETURN VALUE"
242 msgstr "VALEUR RENVOYÉE"
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 msgid ""
248 "The B<strtol>() function returns the result of the conversion, unless the "
249 "value would underflow or overflow. If an underflow occurs, B<strtol>() "
250 "returns B<LONG_MIN>. If an overflow occurs, B<strtol>() returns "
251 "B<LONG_MAX>. In both cases, I<errno> is set to B<ERANGE>. Precisely the "
252 "same holds for B<strtoll>() (with B<LLONG_MIN> and B<LLONG_MAX> instead of "
253 "B<LONG_MIN> and B<LONG_MAX>)."
254 msgstr ""
255 "La fonction B<strtol>() renvoie le résultat de la conversion, à moins qu'un "
256 "débordement supérieur (overflow) ou inférieur (underflow) se produise. Si un "
257 "dépassement inférieur se produit, B<strtol>() renvoie B<LONG_MIN>. Si un "
258 "dépassement supérieur se produit, B<strtol>() renvoie B<LONG_MAX>. Dans les "
259 "deux cas, I<errno> contient le code d'erreur B<ERANGE>. La même chose est "
260 "vraie pour B<strtoll>() avec B<LLONG_MIN> et B<LLONG_MAX> à la place de "
261 "B<LONG_MIN> et B<LONG_MAX>."
262
263 #. type: SH
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "ERRORS"
268 msgstr "ERREURS"
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid "This function does not modify I<errno> on success."
274 msgstr ""
275
276 #. type: TP
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "B<EINVAL>"
281 msgstr "B<EINVAL>"
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 "(not in C99) The given I<base> contains an unsupported value."
287 msgstr "(pas dans C99) La I<base> indiquée n'est pas prise en charge."
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<ERANGE>"
294 msgstr "B<ERANGE>"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid "The resulting value was out of range."
300 msgstr "La valeur retournée est hors limites."
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid ""
306 "The implementation may also set I<errno> to B<EINVAL> in case no conversion "
307 "was performed (no digits seen, and 0 returned)."
308 msgstr ""
309 "L'implémentation peut aussi mettre I<errno> à B<EINVAL> si aucune conversion "
310 "n'a été réalisée (pas de chiffres trouvés, et B<0> renvoyé)."
311
312 #. type: SH
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "ATTRIBUTES"
317 msgstr "ATTRIBUTS"
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 msgid ""
323 "For an explanation of the terms used in this section, see B<attributes>(7)."
324 msgstr ""
325 "Pour une explication des termes utilisés dans cette section, consulter "
326 "B<attributes>(7)."
327
328 #. type: tbl table
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "Interface"
333 msgstr "Interface"
334
335 #. type: tbl table
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "Attribute"
340 msgstr "Attribut"
341
342 #. type: tbl table
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "Value"
347 msgstr "Valeur"
348
349 #. type: tbl table
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid ".na\n"
354 msgstr ".na\n"
355
356 #. type: tbl table
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid ".nh\n"
361 msgstr ".nh\n"
362
363 #. type: tbl table
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid ""
368 "B<strtol>(),\n"
369 "B<strtoll>(),\n"
370 "B<strtoq>()"
371 msgstr ""
372 "B<strtol>(),\n"
373 "B<strtoll>(),\n"
374 "B<strtoq>()"
375
376 #. type: tbl table
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "Thread safety"
381 msgstr "Sécurité des threads"
382
383 #. type: tbl table
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "MT-Safe locale"
388 msgstr "MT-Safe locale"
389
390 #. type: SH
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "VERSIONS"
395 msgstr "VERSIONS"
396
397 #. type: Plain text
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 msgid ""
401 "According to POSIX.1, in locales other than \"C\" and \"POSIX\", these "
402 "functions may accept other, implementation-defined numeric strings."
403 msgstr ""
404 "POSIX.1 spécifie que dans le cas de locales autres que « C » et « POSIX », "
405 "ces fonctions peuvent accepter des chaînes numériques propres à "
406 "l'implémentation."
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid "BSD also has"
412 msgstr "BSD a aussi"
413
414 #. type: Plain text
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "B<quad_t strtoq(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
419 msgstr "B<quad_t strtoq(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid ""
425 "with completely analogous definition. Depending on the wordsize of the "
426 "current architecture, this may be equivalent to B<strtoll>() or to "
427 "B<strtol>()."
428 msgstr ""
429 "avec une définition exactement analogue. Suivant l'architecture, cela peut "
430 "être équivalent à B<strtoll>() ou B<strtol>()."
431
432 #. type: SH
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "STANDARDS"
437 msgstr "NORMES"
438
439 #. type: Plain text
440 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
441 #: opensuse-tumbleweed
442 msgid "C23, POSIX.1-2024."
443 msgstr "C23, POSIX.1-2024."
444
445 #. type: SH
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 #, no-wrap
449 msgid "HISTORY"
450 msgstr "HISTORIQUE"
451
452 #. type: TP
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, fuzzy, no-wrap
456 #| msgid "B<strtoll>():"
457 msgid "B<strtol>()"
458 msgstr "B<strtoll>() :"
459
460 #. type: Plain text
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
464 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
465
466 #. type: TP
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, fuzzy, no-wrap
470 #| msgid "B<strtoll>():"
471 msgid "B<strtoll>()"
472 msgstr "B<strtoll>() :"
473
474 #. type: Plain text
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 msgid "POSIX.1-2001, C99."
478 msgstr "POSIX.1-2001, C99."
479
480 #. type: TP
481 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
482 #: opensuse-tumbleweed
483 #, no-wrap
484 msgid "\"0b\", \"0B\""
485 msgstr ""
486
487 #. type: Plain text
488 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
489 #: opensuse-tumbleweed
490 msgid "C23. glibc 2.38. (Not in POSIX.)"
491 msgstr "C23. glibc 2.38. (Not in POSIX.)"
492
493 #. type: SH
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 #, no-wrap
497 msgid "CAVEATS"
498 msgstr ""
499
500 #. type: SS
501 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
502 #: opensuse-tumbleweed
503 #, no-wrap
504 msgid "Range checks"
505 msgstr ""
506
507 #. type: Plain text
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, fuzzy
511 #| msgid ""
512 #| "Since B<strtol>() can legitimately return 0, B<LONG_MAX>, or B<LONG_MIN> "
513 #| "(B<LLONG_MAX> or B<LLONG_MIN> for B<strtoll>()) on both success and "
514 #| "failure, the calling program should set I<errno> to 0 before the call, "
515 #| "and then determine if an error occurred by checking whether I<errno> has "
516 #| "a nonzero value after the call."
517 msgid ""
518 "Since B<strtol>() can legitimately return 0, B<LONG_MAX>, or B<LONG_MIN> "
519 "(B<LLONG_MAX> or B<LLONG_MIN> for B<strtoll>()) on both success and "
520 "failure, the calling program should set I<errno> to 0 before the call, and "
521 "then determine if an error occurred by checking whether I<errno == ERANGE> "
522 "after the call."
523 msgstr ""
524 "Comme B<strtol>() peut légitimement renvoyer 0, B<LONG_MAX> ou B<LONG_MIN> "
525 "(B<LLONG_MAX> ou B<LLONG_MIN> pour B<strtoll>()) à la fois en cas de succès "
526 "et d'échec, le programme appelant doit positionner I<errno> à 0 avant "
527 "l'appel, et déterminer si une erreur s'est produite en vérifiant si I<errno> "
528 "a une valeur non nulle après l'appel."
529
530 #. type: Plain text
531 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
532 #: opensuse-tumbleweed
533 #, no-wrap
534 msgid ""
535 "errno = 0;\n"
536 "n = strtol(s, &end, base);\n"
537 "if (end == s)\n"
538 "\tgoto no_number;\n"
539 "if ((errno == ERANGE && n == _Minof(long)) || n E<lt> min)\n"
540 "\tgoto too_low;\n"
541 "if ((errno == ERANGE && n == _Maxof(long)) || n E<gt> max)\n"
542 "\tgoto too_high;\n"
543 msgstr ""
544
545 #. type: SS
546 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
547 #: opensuse-tumbleweed
548 #, no-wrap
549 msgid "base"
550 msgstr ""
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid ""
556 "If the I<base> needs to be tested, it should be tested in a call where the "
557 "string is known to succeed. Otherwise, it's impossible to portably "
558 "differentiate the errors."
559 msgstr ""
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 #, no-wrap
565 msgid ""
566 "errno = 0;\n"
567 "strtol(\"0\", NULL, base);\n"
568 "if (errno == EINVAL)\n"
569 " goto unsupported_base;\n"
570 msgstr ""
571
572 #. type: SH
573 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
574 #: opensuse-tumbleweed
575 #, no-wrap
576 msgid "BUGS"
577 msgstr "BOGUES"
578
579 #. type: SS
580 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
581 #: opensuse-tumbleweed
582 #, no-wrap
583 msgid "White space"
584 msgstr ""
585
586 #. type: Plain text
587 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
588 #: opensuse-tumbleweed
589 msgid ""
590 "These functions silently accept leading white space. To reject white space, "
591 "call B<isspace>(3) before B<strtol>()."
592 msgstr ""
593
594 #. type: SH
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 #, no-wrap
598 msgid "EXAMPLES"
599 msgstr "EXEMPLES"
600
601 #. type: Plain text
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 msgid ""
605 "The program shown below demonstrates the use of B<strtol>(). The first "
606 "command-line argument specifies a string from which B<strtol>() should "
607 "parse a number. The second (optional) argument specifies the base to be "
608 "used for the conversion. (This argument is converted to numeric form using "
609 "B<atoi>(3), a function that performs no error checking and has a simpler "
610 "interface than B<strtol>().) Some examples of the results produced by this "
611 "program are the following:"
612 msgstr ""
613 "Le programme suivant montre l'utilisation de B<strtol>(). Le premier "
614 "argument de la ligne de commande spécifie une chaîne dans laquelle "
615 "B<strtol>() analysera un nombre. Le second argument, optionnel, spécifie la "
616 "base à utiliser pour la conversion. (Cet argument est converti sous forme "
617 "numérique avec B<atoi>(3), une fonction qui n'effectue aucune vérification "
618 "d'erreur et qui a une interface plus simple que B<strtol>()). Voici "
619 "plusieurs exemples de résultats produits par ce programme\\ :"
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 #, no-wrap
625 msgid ""
626 "$B< ./a.out 123>\n"
627 "strtol() returned 123\n"
628 "$B< ./a.out \\[aq] 123\\[aq]>\n"
629 "strtol() returned 123\n"
630 "$B< ./a.out 123abc>\n"
631 "strtol() returned 123\n"
632 "Further characters after number: \"abc\"\n"
633 "$B< ./a.out 123abc 55>\n"
634 "strtol: Invalid argument\n"
635 "$B< ./a.out \\[aq]\\[aq]>\n"
636 "No digits were found\n"
637 "$B< ./a.out 4000000000>\n"
638 "strtol: Numerical result out of range\n"
639 msgstr ""
640 "$B< ./a.out 123>\n"
641 "strtol() a renvoyé 123\n"
642 "$B< ./a.out \\[aq] 123\\[aq]>\n"
643 "strtol() a renvoyé 123\n"
644 "$B< ./a.out 123abc>\n"
645 "strtol() a renvoyé 123\n"
646 "Caractères trouvés après le nombre : abc\n"
647 "$B< ./a.out 123abc 55>\n"
648 "strtol: Argument non valable\n"
649 "$B< ./a.out \\[aq]\\[aq]>\n"
650 "Pas de chiffre trouvé\n"
651 "$B< ./a.out 4000000000>\n"
652 "strtol: Résultat numérique hors intervalle\n"
653
654 #. type: SS
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 #, no-wrap
658 msgid "Program source"
659 msgstr "Source du programme"
660
661 #. type: Plain text
662 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
663 #: opensuse-tumbleweed
664 #, no-wrap
665 msgid ""
666 "#include E<lt>errno.hE<gt>\n"
667 "#include E<lt>stdio.hE<gt>\n"
668 "#include E<lt>stdlib.hE<gt>\n"
669 "\\&\n"
670 "int\n"
671 "main(int argc, char *argv[])\n"
672 "{\n"
673 " int base;\n"
674 " char *endptr, *str;\n"
675 " long val;\n"
676 "\\&\n"
677 " if (argc E<lt> 2) {\n"
678 " fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n"
679 " exit(EXIT_FAILURE);\n"
680 " }\n"
681 "\\&\n"
682 " str = argv[1];\n"
683 " base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n"
684 "\\&\n"
685 " errno = 0; /* To distinguish success/failure after call */\n"
686 " strtol(\"0\", NULL, base);\n"
687 " if (errno == EINVAL) {\n"
688 " perror(\"strtol\");\n"
689 " exit(EXIT_FAILURE);\n"
690 " }\n"
691 "\\&\n"
692 " errno = 0; /* To distinguish success/failure after call */\n"
693 " val = strtol(str, &endptr, base);\n"
694 "\\&\n"
695 " /* Check for various possible errors. */\n"
696 "\\&\n"
697 " if (errno == ERANGE) {\n"
698 " perror(\"strtol\");\n"
699 " exit(EXIT_FAILURE);\n"
700 " }\n"
701 "\\&\n"
702 " if (endptr == str) {\n"
703 " fprintf(stderr, \"No digits were found\\[rs]n\");\n"
704 " exit(EXIT_FAILURE);\n"
705 " }\n"
706 "\\&\n"
707 " /* If we got here, strtol() successfully parsed a number. */\n"
708 "\\&\n"
709 " printf(\"strtol() returned %ld\\[rs]n\", val);\n"
710 "\\&\n"
711 " if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error. */\n"
712 " printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n"
713 "\\&\n"
714 " exit(EXIT_SUCCESS);\n"
715 "}\n"
716 msgstr ""
717
718 #. SRC END
719 #. type: SH
720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
722 #, no-wrap
723 msgid "SEE ALSO"
724 msgstr "VOIR AUSSI"
725
726 #. type: Plain text
727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
729 msgid ""
730 "B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3), "
731 "B<strtoul>(3)"
732 msgstr ""
733 "B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3), "
734 "B<strtoul>(3)"
735
736 #. type: TH
737 #: debian-trixie
738 #, no-wrap
739 msgid "2024-06-16"
740 msgstr "16 juin 2024"
741
742 #. type: TH
743 #: debian-trixie
744 #, no-wrap
745 msgid "Linux man-pages 6.9.1"
746 msgstr "Pages du manuel de Linux 6.9.1"
747
748 #. type: Plain text
749 #: debian-trixie
750 msgid "Standard C library (I<libc>, I<-lc>)"
751 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
752
753 #. type: Plain text
754 #: debian-trixie fedora-44 fedora-rawhide
755 msgid ""
756 "The string may begin with an arbitrary amount of white space (as determined "
757 "by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] or \\[aq]-\\"
758 "[aq] sign. If I<base> is zero or 16, the string may then include a \"0x\" "
759 "or \"0X\" prefix, and the number will be read in base 16; otherwise, a zero "
760 "I<base> is taken as 10 (decimal) unless the next character is \\[aq]0\\[aq], "
761 "in which case it is taken as 8 (octal)."
762 msgstr ""
763 "La chaîne peut commencer par un nombre quelconque d'espaces (tels que "
764 "définis par B<isspace>(3)) suivi d'un éventuel signe «\\ +\\ » ou «\\ -\\ ». "
765 "Si I<base> vaut B<0> ou B<16>, la chaîne peut inclure un préfixe «\\ 0x\\ » "
766 "ou « 0X » et le nombre sera interprété en base B<16>. Sinon, une I<base> "
767 "valant zéro est interprétée comme B<10> (base décimale) sauf si le caractère "
768 "suivant est «\\ 0\\ », auquel cas la base est B<8> (base octale)."
769
770 #. type: Plain text
771 #: debian-trixie fedora-44 fedora-rawhide
772 msgid "C11, POSIX.1-2008."
773 msgstr "C11, POSIX.1-2008."
774
775 #. type: Plain text
776 #: debian-trixie fedora-44 fedora-rawhide
777 #, no-wrap
778 msgid ""
779 "#include E<lt>errno.hE<gt>\n"
780 "#include E<lt>stdio.hE<gt>\n"
781 "#include E<lt>stdlib.hE<gt>\n"
782 "\\&\n"
783 "int\n"
784 "main(int argc, char *argv[])\n"
785 "{\n"
786 " int base;\n"
787 " char *endptr, *str;\n"
788 " long val;\n"
789 "\\&\n"
790 " if (argc E<lt> 2) {\n"
791 " fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n"
792 " exit(EXIT_FAILURE);\n"
793 " }\n"
794 "\\&\n"
795 " str = argv[1];\n"
796 " base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n"
797 "\\&\n"
798 " errno = 0; /* To distinguish success/failure after call */\n"
799 " strtol(\"0\", NULL, base);\n"
800 " if (errno == EINVAL) {\n"
801 " perror(\"strtol\");\n"
802 " exit(EXIT_FAILURE);\n"
803 " }\n"
804 "\\&\n"
805 " errno = 0; /* To distinguish success/failure after call */\n"
806 " val = strtol(str, &endptr, base);\n"
807 "\\&\n"
808 " /* Check for various possible errors. */\n"
809 "\\&\n"
810 " if (errno == ERANGE) {\n"
811 " perror(\"strtol\");\n"
812 " exit(EXIT_FAILURE);\n"
813 " }\n"
814 "\\&\n"
815 " if (endptr == str) {\n"
816 " fprintf(stderr, \"No digits were found\\[rs]n\");\n"
817 " exit(EXIT_FAILURE);\n"
818 " }\n"
819 "\\&\n"
820 " /* If we got here, strtol() successfully parsed a number. */\n"
821 "\\&\n"
822 " printf(\"strtol() returned %ld\\[rs]n\", val);\n"
823 "\\&\n"
824 " if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error... */\n"
825 " printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n"
826 "\\&\n"
827 " exit(EXIT_SUCCESS);\n"
828 "}\n"
829 msgstr ""
830
831 #. type: TH
832 #: fedora-44 fedora-rawhide
833 #, no-wrap
834 msgid "2024-07-23"
835 msgstr "23 juillet 2024"
836
837 #. type: TH
838 #: fedora-44 fedora-rawhide
839 #, no-wrap
840 msgid "Linux man-pages 6.13"
841 msgstr "Pages du manuel de Linux 6.13"
842
843 #. type: TH
844 #: mageia-cauldron
845 #, no-wrap
846 msgid "Linux man-pages 6.17"
847 msgstr "Pages du manuel de Linux 6.17"
848
849 #. type: TH
850 #: opensuse-leap-16-1 opensuse-tumbleweed
851 #, no-wrap
852 msgid "Linux man-pages (unreleased)"
853 msgstr "Pages du manuel de Linux (non publiées)"