Debian Codegraph @

po/pt_BR/man3/strtol.3.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Marcelo M. de Abreu <[email protected]>, 2001.
5 # André Luiz Fassone <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
10 "PO-Revision-Date: 2001-05-31 17:26+0200\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, fuzzy, no-wrap
25 #| msgid "B<strtoll>():"
26 msgid "strtol"
27 msgstr "B<strtoll>():"
28
29 #. type: TH
30 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
31 #: opensuse-tumbleweed
32 #, no-wrap
33 msgid "2026-02-08"
34 msgstr "8 fevereiro 2026"
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, fuzzy, no-wrap
39 #| msgid "Linux man-pages 6.17"
40 msgid "Linux man-pages 6.18"
41 msgstr "Linux man-pages 6.17"
42
43 #. type: SH
44 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
45 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
46 #, no-wrap
47 msgid "NAME"
48 msgstr "NOME"
49
50 #. type: Plain text
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 msgid "strtol, strtoll, strtoq - convert a string to a long integer"
54 msgstr "strtol, strtoll, strtoq - converte uma sequência para um inteiro longo"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "BIBLIOTECA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SINOPSE"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
81 msgstr "B<#include E<lt>stdlib.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<long strtol(const char *restrict >I<nptr>B<,>\n"
89 "B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n"
90 "B<long long strtoll(const char *restrict >I<nptr>B<,>\n"
91 "B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n"
92 msgstr ""
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 msgid ""
98 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
99 msgstr ""
100 "Requisitos de macro de teste de recursos para o glibc (consulte "
101 "B<feature_test_macros>(7)):"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid "B<strtoll>():"
107 msgstr "B<strtoll>():"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, fuzzy, no-wrap
113 #| msgid ""
114 #| "_ISOC99_SOURCE\n"
115 #| " || /* Glibc versions E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
116 msgid ""
117 " _ISOC99_SOURCE\n"
118 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
119 msgstr ""
120 "_ISOC99_SOURCE\n"
121 " || /* Glibc versões E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
122
123 #. type: SH
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid "DESCRIPTION"
128 msgstr "DESCRIÇÃO"
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 #, fuzzy
134 #| msgid ""
135 #| "The B<strtol()> function converts the string in I<nptr> to a long integer "
136 #| "value according to the given I<base>, which must be between 2 and 36 "
137 #| "inclusive, or be the special value 0."
138 msgid ""
139 "The B<strtol>() function converts the initial part of the string in I<nptr> "
140 "to a long integer value according to the given I<base>, which must be "
141 "between 2 and 36 inclusive, or be the special value 0."
142 msgstr ""
143 "A função B<strtol()> converte a sequência em I<ptrnum> para um valor de "
144 "inteiro longo de acordo com a dada I<base>, a qual deve estar entre 2 e 36 "
145 "inclusive, ou ser o valor especial 0."
146
147 #. type: Plain text
148 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
149 #: opensuse-tumbleweed
150 #, fuzzy
151 #| msgid ""
152 #| "The string must begin with an arbitrary amount of white space (as "
153 #| "determined by B<isspace>(3)) followed by a single optional `+' or `-' "
154 #| "sign. If I<base> is zero or 16, the string may then include a `0x' "
155 #| "prefix, and the number will be read in base 16; otherwise, a zero I<base> "
156 #| "is taken as 10 (decimal) unless the next character is `0', in which case "
157 #| "it is taken as 8 (octal)."
158 msgid ""
159 "The string may begin with an arbitrary amount of white space (as determined "
160 "by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] or \\[aq]-\\"
161 "[aq] sign. If I<base> is zero or 16, the string may then include a \"0x\" "
162 "or \"0X\" prefix, and the number will be read in base 16; if I<base> is zero "
163 "or 2, the string may then include a \"0b\" or \"0B\" prefix, and the number "
164 "will be read in base 2; otherwise, a zero I<base> is taken as 10 (decimal) "
165 "unless the next character is \\[aq]0\\[aq], in which case it is taken as 8 "
166 "(octal)."
167 msgstr ""
168 "A sequência deve começar com uma quantidade arbitrária de espaço em branco "
169 "(como determinado por B<isspace>(3)) seguida por um único sinal opcional `+' "
170 "ou `-'. Se I<base> for zero ou 16, a sequência pode então incluir um prefixo "
171 "`0x', e o número será lido em base 16; caso contrário, uma I<base> zero é "
172 "tomada como 10 (decimal) a menos que o próximo caractere seja `0', caso no "
173 "qual ela é tomada como 8 (octal)."
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 #, fuzzy
179 #| msgid ""
180 #| "The remainder of the string is converted to a long int value in the "
181 #| "obvious manner, stopping at the first character which is not a valid "
182 #| "digit in the given base. (In bases above 10, the letter `A' in either "
183 #| "upper or lower case represents 10, `B' represents 11, and so forth, with "
184 #| "`Z' representing 35.)"
185 msgid ""
186 "The remainder of the string is converted to a I<long> value in the obvious "
187 "manner, stopping at the first character which is not a valid digit in the "
188 "given base. (In bases above 10, the letter \\[aq]A\\[aq] in either "
189 "uppercase or lowercase represents 10, \\[aq]B\\[aq] represents 11, and so "
190 "forth, with \\[aq]Z\\[aq] representing 35.)"
191 msgstr ""
192 "O restante da sequência é convertido para um valor 'long int' da maneira "
193 "óbvia, parando ao primeiro caractere que não seja um dígito válido na dada "
194 "base. (Em bases acima de 10, a letra `A' em maiúscula ou minúscula "
195 "representa 10, `B' representa 11, e assim por diante, com `Z' representando "
196 "35.)"
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 #, fuzzy
202 #| msgid ""
203 #| "If I<endptr> is not NULL, B<strtol>() stores the address of the first "
204 #| "invalid character in I<*endptr>. If there were no digits at all, "
205 #| "B<strtol>() stores the original value of I<nptr> in I<*endptr> (and "
206 #| "returns 0). In particular, if I<*nptr> is not \\(aq\\e0\\(aq but "
207 #| "I<**endptr> is \\(aq\\e0\\(aq on return, the entire string is valid."
208 msgid ""
209 "If I<endptr> is not NULL, and the I<base> is supported, B<strtol>() stores "
210 "the address of the first invalid character in I<*endptr>. If there were no "
211 "digits at all, B<strtol>() stores the original value of I<nptr> in "
212 "I<*endptr> (and returns 0). In particular, if I<*nptr> is not \\[aq]\\"
213 "[rs]0\\[aq] but I<**endptr> is \\[aq]\\[rs]0\\[aq] on return, the entire "
214 "string is valid."
215 msgstr ""
216 "Se I<ptrfim> não for NULL, B<strtol>() armazena o endereço do primeiro "
217 "caractere inválido em I<*ptrfim>. Se não houver qualquer dígito, B<strtol>() "
218 "armazena o valor original de I<ptrnum> em I<*ptrfim> (e retorna 0). (Por "
219 "isso, se I<*ptrnum> não for \\(aq\\e0\\(aq mas I<**ptrfim> for \\(aq\\e0\\"
220 "(aq no retorno, a sequência inteira é válida.)"
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid ""
226 "The B<strtoll>() function works just like the B<strtol>() function but "
227 "returns a I<long long> integer value."
228 msgstr ""
229
230 #. type: SH
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 #, no-wrap
234 msgid "RETURN VALUE"
235 msgstr "VALOR DE RETORNO"
236
237 #. type: Plain text
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 #, fuzzy
241 #| msgid ""
242 #| "The B<strtol()> function returns the result of the conversion, unless the "
243 #| "value would underflow or overflow. If an underflow occurs, B<strtol()> "
244 #| "returns LONG_MIN. If an overflow occurs, B<strtol()> returns LONG_MAX. "
245 #| "In both cases, I<errno> is set to ERANGE."
246 msgid ""
247 "The B<strtol>() function returns the result of the conversion, unless the "
248 "value would underflow or overflow. If an underflow occurs, B<strtol>() "
249 "returns B<LONG_MIN>. If an overflow occurs, B<strtol>() returns "
250 "B<LONG_MAX>. In both cases, I<errno> is set to B<ERANGE>. Precisely the "
251 "same holds for B<strtoll>() (with B<LLONG_MIN> and B<LLONG_MAX> instead of "
252 "B<LONG_MIN> and B<LONG_MAX>)."
253 msgstr ""
254 "A função B<strtol()> retorna o resultado da conversão, a menos que o valor "
255 "fosse causar estouro de representação. Se ocorrer estouro para um negativo, "
256 "B<strtol()> retorna LONG_MIN. Se ocorrer estouro para um positivo, "
257 "B<strtol()>retorna LONG_MAX. Em ambos os casos, I<errno< é definido para "
258 "ERANGE."
259
260 #. type: SH
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "ERRORS"
265 msgstr "ERROS"
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 #, fuzzy
271 #| msgid "These functions do not set I<errno> for this case."
272 msgid "This function does not modify I<errno> on success."
273 msgstr "Estas funções não definem I<errno> para este caso."
274
275 #. type: TP
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "B<EINVAL>"
280 msgstr "B<EINVAL>"
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 "(not in C99) The given I<base> contains an unsupported value."
286 msgstr ""
287
288 #. type: TP
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid "B<ERANGE>"
293 msgstr "B<ERANGE>"
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid "The resulting value was out of range."
299 msgstr ""
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid ""
305 "The implementation may also set I<errno> to B<EINVAL> in case no conversion "
306 "was performed (no digits seen, and 0 returned)."
307 msgstr ""
308
309 #. type: SH
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "ATTRIBUTES"
314 msgstr "ATRIBUTOS"
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid ""
320 "For an explanation of the terms used in this section, see B<attributes>(7)."
321 msgstr ""
322 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
323
324 #. type: tbl table
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "Interface"
329 msgstr "Interface"
330
331 #. type: tbl table
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "Attribute"
336 msgstr "Atributo"
337
338 #. type: tbl table
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "Value"
343 msgstr "Valor"
344
345 #. type: tbl table
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid ".na\n"
350 msgstr ".na\n"
351
352 #. type: tbl table
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid ".nh\n"
357 msgstr ".nh\n"
358
359 #. type: tbl table
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid ""
364 "B<strtol>(),\n"
365 "B<strtoll>(),\n"
366 "B<strtoq>()"
367 msgstr ""
368 "B<strtol>(),\n"
369 "B<strtoll>(),\n"
370 "B<strtoq>()"
371
372 #. type: tbl table
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "Thread safety"
377 msgstr "Thread safety"
378
379 #. type: tbl table
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "MT-Safe locale"
384 msgstr "MT-Safe locale"
385
386 #. type: SH
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "VERSIONS"
391 msgstr "VERSÕES"
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid ""
397 "According to POSIX.1, in locales other than \"C\" and \"POSIX\", these "
398 "functions may accept other, implementation-defined numeric strings."
399 msgstr ""
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid "BSD also has"
405 msgstr ""
406
407 #. type: Plain text
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 #, no-wrap
411 msgid "B<quad_t strtoq(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
412 msgstr "B<quad_t strtoq(const char *>I<ptrnum>B<, char **>I<ptrfim>B<, int >I<base>B<);>\n"
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 msgid ""
418 "with completely analogous definition. Depending on the wordsize of the "
419 "current architecture, this may be equivalent to B<strtoll>() or to "
420 "B<strtol>()."
421 msgstr ""
422
423 #. type: SH
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid "STANDARDS"
428 msgstr "PADRÕES"
429
430 #. type: Plain text
431 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
432 #: opensuse-tumbleweed
433 msgid "C23, POSIX.1-2024."
434 msgstr "C23, POSIX.1-2024."
435
436 #. type: SH
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid "HISTORY"
441 msgstr "HISTÓRICO"
442
443 #. type: TP
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 #, fuzzy, no-wrap
447 #| msgid "B<strtoll>():"
448 msgid "B<strtol>()"
449 msgstr "B<strtoll>():"
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
455 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
456
457 #. type: TP
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, fuzzy, no-wrap
461 #| msgid "B<strtoll>():"
462 msgid "B<strtoll>()"
463 msgstr "B<strtoll>():"
464
465 #. type: Plain text
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 msgid "POSIX.1-2001, C99."
469 msgstr "POSIX.1-2001, C99."
470
471 #. type: TP
472 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
473 #: opensuse-tumbleweed
474 #, no-wrap
475 msgid "\"0b\", \"0B\""
476 msgstr ""
477
478 #. type: Plain text
479 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
480 #: opensuse-tumbleweed
481 msgid "C23. glibc 2.38. (Not in POSIX.)"
482 msgstr ""
483
484 #. type: SH
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 #, no-wrap
488 msgid "CAVEATS"
489 msgstr ""
490
491 #. type: SS
492 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
493 #: opensuse-tumbleweed
494 #, no-wrap
495 msgid "Range checks"
496 msgstr ""
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid ""
502 "Since B<strtol>() can legitimately return 0, B<LONG_MAX>, or B<LONG_MIN> "
503 "(B<LLONG_MAX> or B<LLONG_MIN> for B<strtoll>()) on both success and "
504 "failure, the calling program should set I<errno> to 0 before the call, and "
505 "then determine if an error occurred by checking whether I<errno == ERANGE> "
506 "after the call."
507 msgstr ""
508
509 #. type: Plain text
510 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
511 #: opensuse-tumbleweed
512 #, no-wrap
513 msgid ""
514 "errno = 0;\n"
515 "n = strtol(s, &end, base);\n"
516 "if (end == s)\n"
517 "\tgoto no_number;\n"
518 "if ((errno == ERANGE && n == _Minof(long)) || n E<lt> min)\n"
519 "\tgoto too_low;\n"
520 "if ((errno == ERANGE && n == _Maxof(long)) || n E<gt> max)\n"
521 "\tgoto too_high;\n"
522 msgstr ""
523
524 #. type: SS
525 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
526 #: opensuse-tumbleweed
527 #, no-wrap
528 msgid "base"
529 msgstr ""
530
531 #. type: Plain text
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 msgid ""
535 "If the I<base> needs to be tested, it should be tested in a call where the "
536 "string is known to succeed. Otherwise, it's impossible to portably "
537 "differentiate the errors."
538 msgstr ""
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 #, no-wrap
544 msgid ""
545 "errno = 0;\n"
546 "strtol(\"0\", NULL, base);\n"
547 "if (errno == EINVAL)\n"
548 " goto unsupported_base;\n"
549 msgstr ""
550
551 #. type: SH
552 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
553 #: opensuse-tumbleweed
554 #, no-wrap
555 msgid "BUGS"
556 msgstr "BUGS"
557
558 #. type: SS
559 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
560 #: opensuse-tumbleweed
561 #, no-wrap
562 msgid "White space"
563 msgstr ""
564
565 #. type: Plain text
566 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
567 #: opensuse-tumbleweed
568 msgid ""
569 "These functions silently accept leading white space. To reject white space, "
570 "call B<isspace>(3) before B<strtol>()."
571 msgstr ""
572
573 #. type: SH
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 #, no-wrap
577 msgid "EXAMPLES"
578 msgstr "EXEMPLOS"
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 msgid ""
584 "The program shown below demonstrates the use of B<strtol>(). The first "
585 "command-line argument specifies a string from which B<strtol>() should "
586 "parse a number. The second (optional) argument specifies the base to be "
587 "used for the conversion. (This argument is converted to numeric form using "
588 "B<atoi>(3), a function that performs no error checking and has a simpler "
589 "interface than B<strtol>().) Some examples of the results produced by this "
590 "program are the following:"
591 msgstr ""
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 "$B< ./a.out 123>\n"
599 "strtol() returned 123\n"
600 "$B< ./a.out \\[aq] 123\\[aq]>\n"
601 "strtol() returned 123\n"
602 "$B< ./a.out 123abc>\n"
603 "strtol() returned 123\n"
604 "Further characters after number: \"abc\"\n"
605 "$B< ./a.out 123abc 55>\n"
606 "strtol: Invalid argument\n"
607 "$B< ./a.out \\[aq]\\[aq]>\n"
608 "No digits were found\n"
609 "$B< ./a.out 4000000000>\n"
610 "strtol: Numerical result out of range\n"
611 msgstr ""
612
613 #. type: SS
614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
616 #, no-wrap
617 msgid "Program source"
618 msgstr "Fonte do programa"
619
620 #. type: Plain text
621 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
622 #: opensuse-tumbleweed
623 #, no-wrap
624 msgid ""
625 "#include E<lt>errno.hE<gt>\n"
626 "#include E<lt>stdio.hE<gt>\n"
627 "#include E<lt>stdlib.hE<gt>\n"
628 "\\&\n"
629 "int\n"
630 "main(int argc, char *argv[])\n"
631 "{\n"
632 " int base;\n"
633 " char *endptr, *str;\n"
634 " long val;\n"
635 "\\&\n"
636 " if (argc E<lt> 2) {\n"
637 " fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n"
638 " exit(EXIT_FAILURE);\n"
639 " }\n"
640 "\\&\n"
641 " str = argv[1];\n"
642 " base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n"
643 "\\&\n"
644 " errno = 0; /* To distinguish success/failure after call */\n"
645 " strtol(\"0\", NULL, base);\n"
646 " if (errno == EINVAL) {\n"
647 " perror(\"strtol\");\n"
648 " exit(EXIT_FAILURE);\n"
649 " }\n"
650 "\\&\n"
651 " errno = 0; /* To distinguish success/failure after call */\n"
652 " val = strtol(str, &endptr, base);\n"
653 "\\&\n"
654 " /* Check for various possible errors. */\n"
655 "\\&\n"
656 " if (errno == ERANGE) {\n"
657 " perror(\"strtol\");\n"
658 " exit(EXIT_FAILURE);\n"
659 " }\n"
660 "\\&\n"
661 " if (endptr == str) {\n"
662 " fprintf(stderr, \"No digits were found\\[rs]n\");\n"
663 " exit(EXIT_FAILURE);\n"
664 " }\n"
665 "\\&\n"
666 " /* If we got here, strtol() successfully parsed a number. */\n"
667 "\\&\n"
668 " printf(\"strtol() returned %ld\\[rs]n\", val);\n"
669 "\\&\n"
670 " if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error. */\n"
671 " printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n"
672 "\\&\n"
673 " exit(EXIT_SUCCESS);\n"
674 "}\n"
675 msgstr ""
676
677 #. SRC END
678 #. type: SH
679 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
680 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
681 #, no-wrap
682 msgid "SEE ALSO"
683 msgstr "VEJA TAMBÉM"
684
685 #. type: Plain text
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 #, fuzzy
689 #| msgid ""
690 #| "B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3), "
691 #| "B<strtoul>(3),"
692 msgid ""
693 "B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3), "
694 "B<strtoul>(3)"
695 msgstr ""
696 "B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3), "
697 "B<strtoul>(3),"
698
699 #. type: TH
700 #: debian-trixie
701 #, no-wrap
702 msgid "2024-06-16"
703 msgstr "16 junho 2024"
704
705 #. type: TH
706 #: debian-trixie
707 #, no-wrap
708 msgid "Linux man-pages 6.9.1"
709 msgstr "Linux man-pages 6.9.1"
710
711 #. type: Plain text
712 #: debian-trixie
713 msgid "Standard C library (I<libc>, I<-lc>)"
714 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
715
716 #. type: Plain text
717 #: debian-trixie fedora-44 fedora-rawhide
718 #, fuzzy
719 #| msgid ""
720 #| "The string must begin with an arbitrary amount of white space (as "
721 #| "determined by B<isspace>(3)) followed by a single optional `+' or `-' "
722 #| "sign. If I<base> is zero or 16, the string may then include a `0x' "
723 #| "prefix, and the number will be read in base 16; otherwise, a zero I<base> "
724 #| "is taken as 10 (decimal) unless the next character is `0', in which case "
725 #| "it is taken as 8 (octal)."
726 msgid ""
727 "The string may begin with an arbitrary amount of white space (as determined "
728 "by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] or \\[aq]-\\"
729 "[aq] sign. If I<base> is zero or 16, the string may then include a \"0x\" "
730 "or \"0X\" prefix, and the number will be read in base 16; otherwise, a zero "
731 "I<base> is taken as 10 (decimal) unless the next character is \\[aq]0\\[aq], "
732 "in which case it is taken as 8 (octal)."
733 msgstr ""
734 "A sequência deve começar com uma quantidade arbitrária de espaço em branco "
735 "(como determinado por B<isspace>(3)) seguida por um único sinal opcional `+' "
736 "ou `-'. Se I<base> for zero ou 16, a sequência pode então incluir um prefixo "
737 "`0x', e o número será lido em base 16; caso contrário, uma I<base> zero é "
738 "tomada como 10 (decimal) a menos que o próximo caractere seja `0', caso no "
739 "qual ela é tomada como 8 (octal)."
740
741 #. type: Plain text
742 #: debian-trixie fedora-44 fedora-rawhide
743 msgid "C11, POSIX.1-2008."
744 msgstr "C11, POSIX.1-2008."
745
746 #. type: Plain text
747 #: debian-trixie fedora-44 fedora-rawhide
748 #, no-wrap
749 msgid ""
750 "#include E<lt>errno.hE<gt>\n"
751 "#include E<lt>stdio.hE<gt>\n"
752 "#include E<lt>stdlib.hE<gt>\n"
753 "\\&\n"
754 "int\n"
755 "main(int argc, char *argv[])\n"
756 "{\n"
757 " int base;\n"
758 " char *endptr, *str;\n"
759 " long val;\n"
760 "\\&\n"
761 " if (argc E<lt> 2) {\n"
762 " fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n"
763 " exit(EXIT_FAILURE);\n"
764 " }\n"
765 "\\&\n"
766 " str = argv[1];\n"
767 " base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n"
768 "\\&\n"
769 " errno = 0; /* To distinguish success/failure after call */\n"
770 " strtol(\"0\", NULL, base);\n"
771 " if (errno == EINVAL) {\n"
772 " perror(\"strtol\");\n"
773 " exit(EXIT_FAILURE);\n"
774 " }\n"
775 "\\&\n"
776 " errno = 0; /* To distinguish success/failure after call */\n"
777 " val = strtol(str, &endptr, base);\n"
778 "\\&\n"
779 " /* Check for various possible errors. */\n"
780 "\\&\n"
781 " if (errno == ERANGE) {\n"
782 " perror(\"strtol\");\n"
783 " exit(EXIT_FAILURE);\n"
784 " }\n"
785 "\\&\n"
786 " if (endptr == str) {\n"
787 " fprintf(stderr, \"No digits were found\\[rs]n\");\n"
788 " exit(EXIT_FAILURE);\n"
789 " }\n"
790 "\\&\n"
791 " /* If we got here, strtol() successfully parsed a number. */\n"
792 "\\&\n"
793 " printf(\"strtol() returned %ld\\[rs]n\", val);\n"
794 "\\&\n"
795 " if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error... */\n"
796 " printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n"
797 "\\&\n"
798 " exit(EXIT_SUCCESS);\n"
799 "}\n"
800 msgstr ""
801
802 #. type: TH
803 #: fedora-44 fedora-rawhide
804 #, no-wrap
805 msgid "2024-07-23"
806 msgstr "23 julho 2024"
807
808 #. type: TH
809 #: fedora-44 fedora-rawhide
810 #, no-wrap
811 msgid "Linux man-pages 6.13"
812 msgstr "Linux man-pages 6.13"
813
814 #. type: TH
815 #: mageia-cauldron
816 #, no-wrap
817 msgid "Linux man-pages 6.17"
818 msgstr "Linux man-pages 6.17"
819
820 #. type: TH
821 #: opensuse-leap-16-1 opensuse-tumbleweed
822 #, no-wrap
823 msgid "Linux man-pages (unreleased)"
824 msgstr "Linux man-pages (não lançado)"