Debian Codegraph @

po/ru/man3/strtol.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alexander Golubev <[email protected]>, 2018.
5 # Azamat Hackimov <[email protected]>, 2011, 2014-2016.
6 # Hotellook, 2014.
7 # Nikita <[email protected]>, 2014.
8 # Spiros Georgaras <[email protected]>, 2016.
9 # Vladislav <[email protected]>, 2015.
10 # Yuri Kozlov <[email protected]>, 2011-2019.
11 # Иван Павлов <[email protected]>, 2017.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
17 "Last-Translator: Yuri Kozlov <[email protected]>\n"
18 "Language-Team: Russian <[email protected]>\n"
19 "Language: ru\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
24 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
25 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
26 "X-Generator: Lokalize 2.0\n"
27
28 #. type: TH
29 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
30 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
31 #, fuzzy, no-wrap
32 #| msgid "B<strtoll>():"
33 msgid "strtol"
34 msgstr "B<strtoll>():"
35
36 #. type: TH
37 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
38 #: opensuse-tumbleweed
39 #, no-wrap
40 msgid "2026-02-08"
41 msgstr "8 февраля 2026 г."
42
43 #. type: TH
44 #: archlinux debian-unstable
45 #, fuzzy, no-wrap
46 #| msgid "Linux man-pages 6.17"
47 msgid "Linux man-pages 6.18"
48 msgstr "Справочные страницы Linux 6.17"
49
50 #. type: SH
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 #, no-wrap
54 msgid "NAME"
55 msgstr "НАИМЕНОВАНИЕ"
56
57 #. type: Plain text
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 msgid "strtol, strtoll, strtoq - convert a string to a long integer"
61 msgstr "strtol, strtoll, strtoq - преобразует строку в длинное целое число"
62
63 #. type: SH
64 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
65 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
66 #, no-wrap
67 msgid "LIBRARY"
68 msgstr "БИБЛИОТЕКА"
69
70 #. type: Plain text
71 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
72 #: opensuse-leap-16-1 opensuse-tumbleweed
73 msgid "Standard C library (I<libc>,\\ I<-lc>)"
74 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
75
76 #. type: SH
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "SYNOPSIS"
81 msgstr "СИНТАКСИС"
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 "B<#include E<lt>stdlib.hE<gt>>\n"
88 msgstr "B<#include E<lt>stdlib.hE<gt>>\n"
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, fuzzy, no-wrap
94 #| msgid ""
95 #| "B<intmax_t strtoimax(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
96 #| "B<uintmax_t strtoumax(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
97 msgid ""
98 "B<long strtol(const char *restrict >I<nptr>B<,>\n"
99 "B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n"
100 "B<long long strtoll(const char *restrict >I<nptr>B<,>\n"
101 "B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n"
102 msgstr ""
103 "B<intmax_t strtoimax(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
104 "B<uintmax_t strtoumax(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
111 msgstr ""
112 "Требования макроса тестирования свойств для glibc (см. "
113 "B<feature_test_macros>(7)):"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid "B<strtoll>():"
119 msgstr "B<strtoll>():"
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid ""
126 " _ISOC99_SOURCE\n"
127 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
128 msgstr ""
129 " _ISOC99_SOURCE\n"
130 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
131
132 #. type: SH
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 #, no-wrap
136 msgid "DESCRIPTION"
137 msgstr "ОПИСАНИЕ"
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "The B<strtol>() function converts the initial part of the string in I<nptr> "
144 "to a long integer value according to the given I<base>, which must be "
145 "between 2 and 36 inclusive, or be the special value 0."
146 msgstr ""
147 "Функция B<strtol>() преобразует начальную часть строки I<nptr> в длинное "
148 "целое число согласно системе счисления I<base>, значение которой может быть "
149 "от 2 до 36 включительно или равно специальному значению 0."
150
151 #. type: Plain text
152 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
153 #: opensuse-tumbleweed
154 #, fuzzy
155 #| msgid ""
156 #| "The string may begin with an arbitrary amount of white space (as "
157 #| "determined by B<isspace>(3)) followed by a single optional \\(aq+\\(aq "
158 #| "or \\(aq-\\(aq sign. If I<base> is zero or 16, the string may then "
159 #| "include a \"0x\" or \"0X\" prefix, and the number will be read in base "
160 #| "16; otherwise, a zero I<base> is taken as 10 (decimal) unless the next "
161 #| "character is \\(aq0\\(aq, in which case it is taken as 8 (octal)."
162 msgid ""
163 "The string may begin with an arbitrary amount of white space (as determined "
164 "by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] or \\[aq]-\\"
165 "[aq] sign. If I<base> is zero or 16, the string may then include a \"0x\" "
166 "or \"0X\" prefix, and the number will be read in base 16; if I<base> is zero "
167 "or 2, the string may then include a \"0b\" or \"0B\" prefix, and the number "
168 "will be read in base 2; otherwise, a zero I<base> is taken as 10 (decimal) "
169 "unless the next character is \\[aq]0\\[aq], in which case it is taken as 8 "
170 "(octal)."
171 msgstr ""
172 "Строка может начинаться с произвольного количества пробельных символов "
173 "(определяемых при помощи B<isspace>(3)), затем может быть указан знак «+» "
174 "или «-». Если I<base> равно 0 или 16, то строка может начинаться с приставки "
175 "«0x» или «0X», что означает использование шестнадцатеричной системы "
176 "исчисления; иначе, если I<base> равно нулю, то используется десятичная "
177 "система счисления (кроме, когда последующий символ также равен «0»: в этом "
178 "случае используется восьмеричная система исчисления)."
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 #, fuzzy
184 #| msgid ""
185 #| "The remainder of the string is converted to a I<long int> value in the "
186 #| "obvious manner, stopping at the first character which is not a valid "
187 #| "digit in the given base. (In bases above 10, the letter \\(aqA\\(aq in "
188 #| "either uppercase or lowercase represents 10, \\(aqB\\(aq represents 11, "
189 #| "and so forth, with \\(aqZ\\(aq representing 35.)"
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 "Остаток строки преобразуется в число с типом I<long int>. Этот процесс "
198 "останавливается, если в строке встречается некорректный символ для указанной "
199 "системе счисления. В системах счисления больших 10, символ «A» в верхнем или "
200 "нижнем регистре означает 10, «B» означает 11 и так далее до «Z», означающего "
201 "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 "Если значение I<endptr> не NULL, то B<strtol>() записывает адрес первого "
222 "некорректного символа в I<*endptr>. Если в строке вообще нет цифр, то "
223 "B<strtoul>() сохраняет изначальное значение I<nptr> в I<*endptr> (и "
224 "возвращает 0). В частности, если I<*nptr> не равно \\(aq\\e0\\(aq, но "
225 "I<**endptr> равно \\(aq\\e0\\(aq при возврате, то вся строка состоит из "
226 "корректных символов."
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, fuzzy
232 #| msgid ""
233 #| "The B<strtoll>() function works just like the B<strtol>() function but "
234 #| "returns a long long integer value."
235 msgid ""
236 "The B<strtoll>() function works just like the B<strtol>() function but "
237 "returns a I<long long> integer value."
238 msgstr ""
239 "Функция B<strtoll>() работает так же, как и B<strtol>(), но возвращает число "
240 "с типом I<long long int>."
241
242 #. type: SH
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "RETURN VALUE"
247 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 msgid ""
253 "The B<strtol>() function returns the result of the conversion, unless the "
254 "value would underflow or overflow. If an underflow occurs, B<strtol>() "
255 "returns B<LONG_MIN>. If an overflow occurs, B<strtol>() returns "
256 "B<LONG_MAX>. In both cases, I<errno> is set to B<ERANGE>. Precisely the "
257 "same holds for B<strtoll>() (with B<LLONG_MIN> and B<LLONG_MAX> instead of "
258 "B<LONG_MIN> and B<LONG_MAX>)."
259 msgstr ""
260 "Функция B<strtol>() возвращает результат преобразования, если значение не "
261 "возникают переполнения или исчерпания. Если возникает исчерпание, то "
262 "B<strtol>() возвращает B<LONG_MIN>. Если возникает переполнение, то "
263 "B<strtoul>() возвращает B<LONG_MAX>. В обоих случаях переменной I<errno> "
264 "присваивается значение B<ERANGE>. То же самое относится к B<strtoll>(), "
265 "только вместо B<LONG_MIN> и B<LONG_MAX> возвращается B<LLONG_MIN> и "
266 "B<LLONG_MAX>."
267
268 #. type: SH
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "ERRORS"
273 msgstr "ОШИБКИ"
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid "This function does not modify I<errno> on success."
279 msgstr "Эта функция не изменяет I<errno> при успешном выполнении."
280
281 #. type: TP
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "B<EINVAL>"
286 msgstr "B<EINVAL>"
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid "(not in C99) The given I<base> contains an unsupported value."
292 msgstr "(нет в C99) Аргумент I<base> содержит неподдерживаемое значение."
293
294 #. type: TP
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "B<ERANGE>"
299 msgstr "B<ERANGE>"
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 "The resulting value was out of range."
305 msgstr "Полученное значение вне диапазона."
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "The implementation may also set I<errno> to B<EINVAL> in case no conversion "
312 "was performed (no digits seen, and 0 returned)."
313 msgstr ""
314 "Реализация может также устанавливать I<errno> в B<EINVAL> в случае, когда "
315 "преобразование не было выполнено (не было встречено цифр и возвращён 0)."
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 "ATTRIBUTES"
322 msgstr "АТРИБУТЫ"
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 ""
328 "For an explanation of the terms used in this section, see B<attributes>(7)."
329 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
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 "Interface"
336 msgstr "Интерфейс"
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 "Attribute"
343 msgstr "Атрибут"
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 "Value"
350 msgstr "Значение"
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 ".na\n"
357 msgstr ".na\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 ".nh\n"
364 msgstr ".nh\n"
365
366 #. type: tbl table
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid ""
371 "B<strtol>(),\n"
372 "B<strtoll>(),\n"
373 "B<strtoq>()"
374 msgstr ""
375 "B<strtol>(),\n"
376 "B<strtoll>(),\n"
377 "B<strtoq>()"
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 "Thread safety"
384 msgstr "Безвредность в нитях"
385
386 #. type: tbl table
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "MT-Safe locale"
391 msgstr "MT-Safe locale"
392
393 #. type: SH
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 #, no-wrap
397 msgid "VERSIONS"
398 msgstr "ВЕРСИИ"
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 #, fuzzy
404 #| msgid ""
405 #| "According to POSIX.1, in locales other than the \"C\" and \"POSIX\", "
406 #| "these functions may accept other, implementation-defined numeric strings."
407 msgid ""
408 "According to POSIX.1, in locales other than \"C\" and \"POSIX\", these "
409 "functions may accept other, implementation-defined numeric strings."
410 msgstr ""
411 "Согласно POSIX.1, в локалях отличных от «C» и «POSIX», эти функции могут "
412 "преобразовывать другие, определяемые реализацией, строки с числами."
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 "BSD also has"
418 msgstr "В BSD также есть функция "
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 #, no-wrap
424 msgid "B<quad_t strtoq(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
425 msgstr "B<quad_t strtoq(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
426
427 #. type: Plain text
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 msgid ""
431 "with completely analogous definition. Depending on the wordsize of the "
432 "current architecture, this may be equivalent to B<strtoll>() or to "
433 "B<strtol>()."
434 msgstr ""
435 "с полностью аналогичным определением. В зависимости от длины слова в текущей "
436 "архитектуре, она может быть аналогом B<strtoll>() или B<strtol>()."
437
438 #. type: SH
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "STANDARDS"
443 msgstr "СТАНДАРТЫ"
444
445 #. type: Plain text
446 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
447 #: opensuse-tumbleweed
448 #, fuzzy
449 #| msgid "POSIX.1-2024."
450 msgid "C23, POSIX.1-2024."
451 msgstr "POSIX.1-2024."
452
453 #. type: SH
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "HISTORY"
458 msgstr "ИСТОРИЯ"
459
460 #. type: TP
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, fuzzy, no-wrap
464 #| msgid "B<strtoll>():"
465 msgid "B<strtol>()"
466 msgstr "B<strtoll>():"
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
472 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
473
474 #. type: TP
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 #, fuzzy, no-wrap
478 #| msgid "B<strtoll>():"
479 msgid "B<strtoll>()"
480 msgstr "B<strtoll>():"
481
482 #. type: Plain text
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 msgid "POSIX.1-2001, C99."
486 msgstr "POSIX.1-2001, C99."
487
488 #. type: TP
489 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
490 #: opensuse-tumbleweed
491 #, no-wrap
492 msgid "\"0b\", \"0B\""
493 msgstr ""
494
495 #. type: Plain text
496 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
497 #: opensuse-tumbleweed
498 #, fuzzy
499 #| msgid "glibc 2.3. POSIX.1-2008."
500 msgid "C23. glibc 2.38. (Not in POSIX.)"
501 msgstr "glibc 2.3. POSIX.1-2008."
502
503 #. type: SH
504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
506 #, no-wrap
507 msgid "CAVEATS"
508 msgstr ""
509
510 #. type: SS
511 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
512 #: opensuse-tumbleweed
513 #, no-wrap
514 msgid "Range checks"
515 msgstr ""
516
517 #. type: Plain text
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 #, fuzzy
521 #| msgid ""
522 #| "Since B<strtol>() can legitimately return 0, B<LONG_MAX>, or B<LONG_MIN> "
523 #| "(B<LLONG_MAX> or B<LLONG_MIN> for B<strtoll>()) on both success and "
524 #| "failure, the calling program should set I<errno> to 0 before the call, "
525 #| "and then determine if an error occurred by checking whether I<errno> has "
526 #| "a nonzero value after the call."
527 msgid ""
528 "Since B<strtol>() can legitimately return 0, B<LONG_MAX>, or B<LONG_MIN> "
529 "(B<LLONG_MAX> or B<LLONG_MIN> for B<strtoll>()) on both success and "
530 "failure, the calling program should set I<errno> to 0 before the call, and "
531 "then determine if an error occurred by checking whether I<errno == ERANGE> "
532 "after the call."
533 msgstr ""
534 "Так как B<strtol>() может обоснованно вернуть 0, B<LONG_MAX> или B<LONG_MIN> "
535 "(а B<strtoll>() — B<LLONG_MAX> или B<LLONG_MIN>) при успешном выполнении и "
536 "ошибке, вызывающая программа до вызова должна присвоить I<errno> значение 0, "
537 "а после вызова определить возникновение ошибки по ненулевому значению "
538 "I<errno>."
539
540 #. type: Plain text
541 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
542 #: opensuse-tumbleweed
543 #, no-wrap
544 msgid ""
545 "errno = 0;\n"
546 "n = strtol(s, &end, base);\n"
547 "if (end == s)\n"
548 "\tgoto no_number;\n"
549 "if ((errno == ERANGE && n == _Minof(long)) || n E<lt> min)\n"
550 "\tgoto too_low;\n"
551 "if ((errno == ERANGE && n == _Maxof(long)) || n E<gt> max)\n"
552 "\tgoto too_high;\n"
553 msgstr ""
554
555 #. type: SS
556 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
557 #: opensuse-tumbleweed
558 #, no-wrap
559 msgid "base"
560 msgstr ""
561
562 #. type: Plain text
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 msgid ""
566 "If the I<base> needs to be tested, it should be tested in a call where the "
567 "string is known to succeed. Otherwise, it's impossible to portably "
568 "differentiate the errors."
569 msgstr ""
570
571 #. type: Plain text
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 #, no-wrap
575 msgid ""
576 "errno = 0;\n"
577 "strtol(\"0\", NULL, base);\n"
578 "if (errno == EINVAL)\n"
579 " goto unsupported_base;\n"
580 msgstr ""
581
582 #. type: SH
583 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
584 #: opensuse-tumbleweed
585 #, no-wrap
586 msgid "BUGS"
587 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
588
589 #. type: SS
590 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
591 #: opensuse-tumbleweed
592 #, fuzzy, no-wrap
593 #| msgid "ignore all white space"
594 msgid "White space"
595 msgstr "игнорировать все пробельные символы"
596
597 #. type: Plain text
598 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
599 #: opensuse-tumbleweed
600 msgid ""
601 "These functions silently accept leading white space. To reject white space, "
602 "call B<isspace>(3) before B<strtol>()."
603 msgstr ""
604
605 #. type: SH
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 #, no-wrap
609 msgid "EXAMPLES"
610 msgstr "ПРИМЕРЫ"
611
612 #. type: Plain text
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 msgid ""
616 "The program shown below demonstrates the use of B<strtol>(). The first "
617 "command-line argument specifies a string from which B<strtol>() should "
618 "parse a number. The second (optional) argument specifies the base to be "
619 "used for the conversion. (This argument is converted to numeric form using "
620 "B<atoi>(3), a function that performs no error checking and has a simpler "
621 "interface than B<strtol>().) Some examples of the results produced by this "
622 "program are the following:"
623 msgstr ""
624 "Программа, представленная далее, показывает использование B<strtol>(). В "
625 "первом аргументе командной строки указывается срока, из которой B<strtol>() "
626 "должна извлечь число. Во втором (необязательном) аргументе указывается "
627 "система счисления, используемая для преобразования (этот аргумент "
628 "преобразуется в число с помощью B<atoi>(3), функции, которая не учитывает "
629 "ошибки и имеет более простой интерфейс по сравнению с B<strtol>()). Вот "
630 "несколько результатов работы этой программы:"
631
632 #. type: Plain text
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 #, fuzzy, no-wrap
636 #| msgid ""
637 #| "$B< ./a.out 123>\n"
638 #| "strtol() returned 123\n"
639 #| "$B< ./a.out \\(aq 123\\(aq>\n"
640 #| "strtol() returned 123\n"
641 #| "$B< ./a.out 123abc>\n"
642 #| "strtol() returned 123\n"
643 #| "Further characters after number: abc\n"
644 #| "$B< ./a.out 123abc 55>\n"
645 #| "strtol: Invalid argument\n"
646 #| "$B< ./a.out \\(aq\\(aq>\n"
647 #| "No digits were found\n"
648 #| "$B< ./a.out 4000000000>\n"
649 #| "strtol: Numerical result out of range\n"
650 msgid ""
651 "$B< ./a.out 123>\n"
652 "strtol() returned 123\n"
653 "$B< ./a.out \\[aq] 123\\[aq]>\n"
654 "strtol() returned 123\n"
655 "$B< ./a.out 123abc>\n"
656 "strtol() returned 123\n"
657 "Further characters after number: \"abc\"\n"
658 "$B< ./a.out 123abc 55>\n"
659 "strtol: Invalid argument\n"
660 "$B< ./a.out \\[aq]\\[aq]>\n"
661 "No digits were found\n"
662 "$B< ./a.out 4000000000>\n"
663 "strtol: Numerical result out of range\n"
664 msgstr ""
665 "$B< ./a.out 123>\n"
666 "strtol() вернула 123\n"
667 "$B< ./a.out \\(aq 123\\(aq>\n"
668 "strtol() вернула 123\n"
669 "$B< ./a.out 123abc>\n"
670 "strtol() вернула 123\n"
671 "Остальные символы после числа: abc\n"
672 "$B< ./a.out 123abc 55>\n"
673 "strtol: некорректный аргумент\n"
674 "$B< ./a.out \\(aq\\(aq>\n"
675 "Цифры отсутствуют\n"
676 "$B< ./a.out 4000000000>\n"
677 "strtol: Числовой результат выходит за диапазон\n"
678
679 #. type: SS
680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
682 #, no-wrap
683 msgid "Program source"
684 msgstr "Исходный код программы"
685
686 #. type: Plain text
687 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
688 #: opensuse-tumbleweed
689 #, no-wrap
690 msgid ""
691 "#include E<lt>errno.hE<gt>\n"
692 "#include E<lt>stdio.hE<gt>\n"
693 "#include E<lt>stdlib.hE<gt>\n"
694 "\\&\n"
695 "int\n"
696 "main(int argc, char *argv[])\n"
697 "{\n"
698 " int base;\n"
699 " char *endptr, *str;\n"
700 " long val;\n"
701 "\\&\n"
702 " if (argc E<lt> 2) {\n"
703 " fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n"
704 " exit(EXIT_FAILURE);\n"
705 " }\n"
706 "\\&\n"
707 " str = argv[1];\n"
708 " base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n"
709 "\\&\n"
710 " errno = 0; /* To distinguish success/failure after call */\n"
711 " strtol(\"0\", NULL, base);\n"
712 " if (errno == EINVAL) {\n"
713 " perror(\"strtol\");\n"
714 " exit(EXIT_FAILURE);\n"
715 " }\n"
716 "\\&\n"
717 " errno = 0; /* To distinguish success/failure after call */\n"
718 " val = strtol(str, &endptr, base);\n"
719 "\\&\n"
720 " /* Check for various possible errors. */\n"
721 "\\&\n"
722 " if (errno == ERANGE) {\n"
723 " perror(\"strtol\");\n"
724 " exit(EXIT_FAILURE);\n"
725 " }\n"
726 "\\&\n"
727 " if (endptr == str) {\n"
728 " fprintf(stderr, \"No digits were found\\[rs]n\");\n"
729 " exit(EXIT_FAILURE);\n"
730 " }\n"
731 "\\&\n"
732 " /* If we got here, strtol() successfully parsed a number. */\n"
733 "\\&\n"
734 " printf(\"strtol() returned %ld\\[rs]n\", val);\n"
735 "\\&\n"
736 " if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error. */\n"
737 " printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n"
738 "\\&\n"
739 " exit(EXIT_SUCCESS);\n"
740 "}\n"
741 msgstr ""
742
743 #. SRC END
744 #. type: SH
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 #, no-wrap
748 msgid "SEE ALSO"
749 msgstr "СМОТРИТЕ ТАКЖЕ"
750
751 #. type: Plain text
752 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
753 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
754 #, fuzzy
755 #| msgid ""
756 #| "B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3) "
757 #| "B<strtoul>(3),"
758 msgid ""
759 "B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3), "
760 "B<strtoul>(3)"
761 msgstr ""
762 "B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3) "
763 "B<strtoul>(3),"
764
765 #. type: TH
766 #: debian-trixie
767 #, no-wrap
768 msgid "2024-06-16"
769 msgstr "16 июня 2024 г."
770
771 #. type: TH
772 #: debian-trixie
773 #, no-wrap
774 msgid "Linux man-pages 6.9.1"
775 msgstr "Страницы руководства Linux 6.9.1"
776
777 #. type: Plain text
778 #: debian-trixie
779 msgid "Standard C library (I<libc>, I<-lc>)"
780 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
781
782 #. type: Plain text
783 #: debian-trixie fedora-44 fedora-rawhide
784 #, fuzzy
785 #| msgid ""
786 #| "The string may begin with an arbitrary amount of white space (as "
787 #| "determined by B<isspace>(3)) followed by a single optional \\(aq+\\(aq "
788 #| "or \\(aq-\\(aq sign. If I<base> is zero or 16, the string may then "
789 #| "include a \"0x\" or \"0X\" prefix, and the number will be read in base "
790 #| "16; otherwise, a zero I<base> is taken as 10 (decimal) unless the next "
791 #| "character is \\(aq0\\(aq, in which case it is taken as 8 (octal)."
792 msgid ""
793 "The string may begin with an arbitrary amount of white space (as determined "
794 "by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] or \\[aq]-\\"
795 "[aq] sign. If I<base> is zero or 16, the string may then include a \"0x\" "
796 "or \"0X\" prefix, and the number will be read in base 16; otherwise, a zero "
797 "I<base> is taken as 10 (decimal) unless the next character is \\[aq]0\\[aq], "
798 "in which case it is taken as 8 (octal)."
799 msgstr ""
800 "Строка может начинаться с произвольного количества пробельных символов "
801 "(определяемых при помощи B<isspace>(3)), затем может быть указан знак «+» "
802 "или «-». Если I<base> равно 0 или 16, то строка может начинаться с приставки "
803 "«0x» или «0X», что означает использование шестнадцатеричной системы "
804 "исчисления; иначе, если I<base> равно нулю, то используется десятичная "
805 "система счисления (кроме, когда последующий символ также равен «0»: в этом "
806 "случае используется восьмеричная система исчисления)."
807
808 #. type: Plain text
809 #: debian-trixie fedora-44 fedora-rawhide
810 msgid "C11, POSIX.1-2008."
811 msgstr "C11, POSIX.1-2008."
812
813 #. type: Plain text
814 #: debian-trixie fedora-44 fedora-rawhide
815 #, no-wrap
816 msgid ""
817 "#include E<lt>errno.hE<gt>\n"
818 "#include E<lt>stdio.hE<gt>\n"
819 "#include E<lt>stdlib.hE<gt>\n"
820 "\\&\n"
821 "int\n"
822 "main(int argc, char *argv[])\n"
823 "{\n"
824 " int base;\n"
825 " char *endptr, *str;\n"
826 " long val;\n"
827 "\\&\n"
828 " if (argc E<lt> 2) {\n"
829 " fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n"
830 " exit(EXIT_FAILURE);\n"
831 " }\n"
832 "\\&\n"
833 " str = argv[1];\n"
834 " base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n"
835 "\\&\n"
836 " errno = 0; /* To distinguish success/failure after call */\n"
837 " strtol(\"0\", NULL, base);\n"
838 " if (errno == EINVAL) {\n"
839 " perror(\"strtol\");\n"
840 " exit(EXIT_FAILURE);\n"
841 " }\n"
842 "\\&\n"
843 " errno = 0; /* To distinguish success/failure after call */\n"
844 " val = strtol(str, &endptr, base);\n"
845 "\\&\n"
846 " /* Check for various possible errors. */\n"
847 "\\&\n"
848 " if (errno == ERANGE) {\n"
849 " perror(\"strtol\");\n"
850 " exit(EXIT_FAILURE);\n"
851 " }\n"
852 "\\&\n"
853 " if (endptr == str) {\n"
854 " fprintf(stderr, \"No digits were found\\[rs]n\");\n"
855 " exit(EXIT_FAILURE);\n"
856 " }\n"
857 "\\&\n"
858 " /* If we got here, strtol() successfully parsed a number. */\n"
859 "\\&\n"
860 " printf(\"strtol() returned %ld\\[rs]n\", val);\n"
861 "\\&\n"
862 " if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error... */\n"
863 " printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n"
864 "\\&\n"
865 " exit(EXIT_SUCCESS);\n"
866 "}\n"
867 msgstr ""
868
869 #. type: TH
870 #: fedora-44 fedora-rawhide
871 #, no-wrap
872 msgid "2024-07-23"
873 msgstr "23 июля 2024 г."
874
875 #. type: TH
876 #: fedora-44 fedora-rawhide
877 #, no-wrap
878 msgid "Linux man-pages 6.13"
879 msgstr "Страницы руководства Linux 6.13"
880
881 #. type: TH
882 #: mageia-cauldron
883 #, no-wrap
884 msgid "Linux man-pages 6.17"
885 msgstr "Страницы руководства Linux 6.17"
886
887 #. type: TH
888 #: opensuse-leap-16-1 opensuse-tumbleweed
889 #, no-wrap
890 msgid "Linux man-pages (unreleased)"
891 msgstr "Страницы руководства Linux (не выпущены)"