Debian Codegraph @

po/ru/man3/strtok.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<strtok>()"
33 msgid "strtok"
34 msgstr "B<strtok>()"
35
36 #. type: TH
37 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
38 #, no-wrap
39 msgid "2026-02-25"
40 msgstr "25 февраля 2026 г."
41
42 #. type: TH
43 #: archlinux debian-unstable
44 #, fuzzy, no-wrap
45 #| msgid "Linux man-pages 6.17"
46 msgid "Linux man-pages 6.18"
47 msgstr "Справочные страницы Linux 6.17"
48
49 #. type: SH
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, no-wrap
53 msgid "NAME"
54 msgstr "НАИМЕНОВАНИЕ"
55
56 #. type: Plain text
57 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
58 #, fuzzy
59 #| msgid "strtok, strtok_r - extract tokens from strings"
60 msgid "strtok - extract tokens from strings"
61 msgstr "strtok, strtok_r - извлечение элементов (токенов) из строки"
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>string.hE<gt>>\n"
88 msgstr "B<#include E<lt>string.hE<gt>>\n"
89
90 #. type: Plain text
91 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "B<char *strtok(char *_Nullable restrict >I<str>B<, const char *restrict >I<delim>B<);>\n"
94 msgstr ""
95
96 #. type: SH
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "DESCRIPTION"
101 msgstr "ОПИСАНИЕ"
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 ""
107 "The B<strtok>() function breaks a string into a sequence of zero or more "
108 "nonempty tokens. On the first call to B<strtok>(), the string to be parsed "
109 "should be specified in I<str>. In each subsequent call that should parse "
110 "the same string, I<str> must be NULL."
111 msgstr ""
112 "Функция B<strtok>() разделяет строку на последовательность нуля или более "
113 "непустых токенов. При первом вызове B<strtok>() анализируемую строку нужно "
114 "указывать в аргументе I<str>. В каждом последующем вызове, в котором "
115 "анализируется эта же строка, значение I<str> должно быть NULL."
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "The I<delim> argument specifies a set of bytes that delimit the tokens in "
122 "the parsed string. The caller may specify different strings in I<delim> in "
123 "successive calls that parse the same string."
124 msgstr ""
125 "В аргументе I<delim> задаётся набор байт, которые считаются разделителями "
126 "токенов в анализируемой строке. Вызывающий может указывать разные строки в "
127 "I<delim> в последующих вызовах при анализе той же строки."
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "Each call to B<strtok>() returns a pointer to a null-terminated string "
134 "containing the next token. This string does not include the delimiting "
135 "byte. If no more tokens are found, B<strtok>() returns NULL."
136 msgstr ""
137 "Каждый вызов B<strtok>() возвращает указатель на строку, завершающуюся null, "
138 "которая содержит следующий токен. Эта строка не включает байт-разделитель. "
139 "Если больше токенов нет, то B<strtok>() возвращает NULL."
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "A sequence of calls to B<strtok>() that operate on the same string "
146 "maintains a pointer that determines the point from which to start searching "
147 "for the next token. The first call to B<strtok>() sets this pointer to "
148 "point to the first byte of the string. The start of the next token is "
149 "determined by scanning forward for the next nondelimiter byte in I<str>. If "
150 "such a byte is found, it is taken as the start of the next token. If no "
151 "such byte is found, then there are no more tokens, and B<strtok>() returns "
152 "NULL. (A string that is empty or that contains only delimiters will thus "
153 "cause B<strtok>() to return NULL on the first call.)"
154 msgstr ""
155 "Последовательность вызовов B<strtok>(), оперирующих одной строкой, "
156 "поддерживает указатель, который определяет точку, с которой начинается поиск "
157 "следующего токена. Первый вызов B<strtok>() назначает этому указателю ссылку "
158 "на первый байт строки. Начало следующего токена определяется поиском вперёд "
159 "в I<str> следующего байта не разделителя. Если байт найден, то он берётся в "
160 "качестве начала следующего токена. Если такой байт не найден, то токенов "
161 "больше нет и B<strtok>() возвращает NULL (для пустой строки или состоящей "
162 "только из разделителей в этом случае NULL вернётся при первом вызове "
163 "B<strtok>())."
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, fuzzy
169 #| msgid ""
170 #| "The end of each token is found by scanning forward until either the next "
171 #| "delimiter byte is found or until the terminating null byte (\\(aq\\e0\\"
172 #| "(aq) is encountered. If a delimiter byte is found, it is overwritten "
173 #| "with a null byte to terminate the current token, and B<strtok>() saves a "
174 #| "pointer to the following byte; that pointer will be used as the starting "
175 #| "point when searching for the next token. In this case, B<strtok>() "
176 #| "returns a pointer to the start of the found token."
177 msgid ""
178 "The end of each token is found by scanning forward until either the next "
179 "delimiter byte is found or until the terminating null byte (\\[aq]\\[rs]0\\"
180 "[aq]) is encountered. If a delimiter byte is found, it is overwritten with "
181 "a null byte to terminate the current token, and B<strtok>() saves a pointer "
182 "to the following byte; that pointer will be used as the starting point when "
183 "searching for the next token. In this case, B<strtok>() returns a pointer "
184 "to the start of the found token."
185 msgstr ""
186 "Конец каждого токена находится поиском вперёд, длящемся до тех пор, пока не "
187 "будет найден байт-разделитель или завершающий байт null (\\(aq\\e0\\(aq). "
188 "Если найден байт-разделитель, то он заменяется байтом null для завершения "
189 "текущего токена, и B<strtok>() сохраняет указатель на следующий байт; этот "
190 "указатель будет использован в качестве начальной точки при поиске следующего "
191 "токена. В этом случае B<strtok>() возвращает указатель на начало найденного "
192 "токена."
193
194 #. type: Plain text
195 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
196 #: opensuse-tumbleweed
197 #, fuzzy
198 #| msgid ""
199 #| "From the above description, it follows that a sequence of two or more "
200 #| "contiguous delimiter bytes in the parsed string is considered to be a "
201 #| "single delimiter, and that delimiter bytes at the start or end of the "
202 #| "string are ignored. Put another way: the tokens returned by B<strtok>() "
203 #| "are always nonempty strings. Thus, for example, given the string "
204 #| "\"I<aaa;;bbb,>\", successive calls to B<strtok>() that specify the "
205 #| "delimiter string \"I<;,>\" would return the strings \"I<aaa>\" and "
206 #| "\"I<bbb>\", and then a null pointer."
207 msgid ""
208 "From the above description, it follows that a sequence of two or more "
209 "contiguous delimiter bytes in the parsed string is considered to be a single "
210 "delimiter, and that delimiter bytes at the start or end of the string are "
211 "ignored. Put another way: the tokens returned by B<strtok>() are always "
212 "nonempty strings. Thus, for example, given the string \\[dq]I<aaa;;bbb,>\\"
213 "[dq], successive calls to B<strtok>() that specify the delimiter string \\"
214 "[dq]I<;,>\\[dq] would return the strings \\[dq]I<aaa>\\[dq] and \\"
215 "[dq]I<bbb>\\[dq], and then a null pointer."
216 msgstr ""
217 "Из описания выше следует, что последовательность из двух и более непрерывных "
218 "байтов-разделителей в просматриваемой строке считается одним разделителем, а "
219 "байты-разделители в начале или конце строки игнорируются. Другими словами, "
220 "токены, возвращаемые B<strtok>() — всегда не пустые строки. То есть, "
221 "например, если есть строка «I<aaa;;bbb,>», то последующие вызовы B<strtok>() "
222 "с заданными разделителями строк «I<;,>» вернули бы строки «I<aaa>» и "
223 "«I<bbb>», а затем указатель null."
224
225 #. type: SH
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid "RETURN VALUE"
230 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
231
232 #. type: Plain text
233 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
234 #, fuzzy
235 #| msgid ""
236 #| "The B<strtok>() and B<strtok_r>() functions return a pointer to the "
237 #| "next token, or NULL if there are no more tokens."
238 msgid ""
239 "B<strtok>() returns a pointer to the next token, or NULL if there are no "
240 "more tokens."
241 msgstr ""
242 "Функции B<strtok>() и B<strtok_r>() возвращают указатель на следующий токен "
243 "или NULL, если больше токенов нет."
244
245 #. type: SH
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid "ATTRIBUTES"
250 msgstr "АТРИБУТЫ"
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 msgid ""
256 "For an explanation of the terms used in this section, see B<attributes>(7)."
257 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
258
259 #. type: tbl table
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "Interface"
264 msgstr "Интерфейс"
265
266 #. type: tbl table
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "Attribute"
271 msgstr "Атрибут"
272
273 #. type: tbl table
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "Value"
278 msgstr "Значение"
279
280 #. type: tbl table
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid ".na\n"
285 msgstr ".na\n"
286
287 #. type: tbl table
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid ".nh\n"
292 msgstr ".nh\n"
293
294 #. #-#-#-#-# archlinux: strtok.3.pot (PACKAGE VERSION) #-#-#-#-#
295 #. type: tbl table
296 #. #-#-#-#-# debian-trixie: strtok.3.pot (PACKAGE VERSION) #-#-#-#-#
297 #. type: TP
298 #. #-#-#-#-# debian-unstable: strtok.3.pot (PACKAGE VERSION) #-#-#-#-#
299 #. type: tbl table
300 #. #-#-#-#-# fedora-44: strtok.3.pot (PACKAGE VERSION) #-#-#-#-#
301 #. type: TP
302 #. #-#-#-#-# fedora-rawhide: strtok.3.pot (PACKAGE VERSION) #-#-#-#-#
303 #. type: TP
304 #. #-#-#-#-# mageia-cauldron: strtok.3.pot (PACKAGE VERSION) #-#-#-#-#
305 #. type: TP
306 #. #-#-#-#-# opensuse-leap-16-1: strtok.3.pot (PACKAGE VERSION) #-#-#-#-#
307 #. type: tbl table
308 #. #-#-#-#-# opensuse-tumbleweed: strtok.3.pot (PACKAGE VERSION) #-#-#-#-#
309 #. type: tbl table
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "B<strtok>()"
314 msgstr "B<strtok>()"
315
316 #. type: tbl table
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "Thread safety"
321 msgstr "Безвредность в нитях"
322
323 #. type: tbl table
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "MT-Unsafe race:strtok"
328 msgstr "MT-Unsafe race:strtok"
329
330 #. type: SH
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "STANDARDS"
335 msgstr "СТАНДАРТЫ"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid "C11, POSIX.1-2008."
341 msgstr "C11, POSIX.1-2008."
342
343 #. type: SH
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "HISTORY"
348 msgstr "ИСТОРИЯ"
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
354 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
355
356 #. type: SH
357 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "CAVEATS"
360 msgstr ""
361
362 #. type: Plain text
363 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
364 #, fuzzy
365 #| msgid ""
366 #| "Be cautious when using these functions. If you do use them, note that:"
367 msgid "Be cautious when using this function. If you do use it, note that:"
368 msgstr "Используйте данные функции с осторожностью. Учитывайте, что:"
369
370 #. type: IP
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "\\[bu]"
375 msgstr "\\[bu]"
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid "The identity of the delimiting byte is lost."
381 msgstr "Теряется идентичность байта-разделителя."
382
383 #. type: Plain text
384 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
385 #, fuzzy
386 #| msgid ""
387 #| "The B<strtok>() function uses a static buffer while parsing, so it's not "
388 #| "thread safe. Use B<strtok_r>() if this matters to you."
389 msgid ""
390 "The B<strtok>() function uses a static buffer while parsing, so it's not "
391 "thread safe. Use B<strtok_r>(3) if this matters to you."
392 msgstr ""
393 "При анализе функция B<strtok>() использует статический буфер, поэтому не "
394 "является безопасной для нитей. Используйте B<strtok_r>() в этом случае."
395
396 #. type: SH
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "EXAMPLES"
401 msgstr "ПРИМЕРЫ"
402
403 #. type: Plain text
404 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
405 #, fuzzy
406 #| msgid "See B<aio>(7)."
407 msgid "See B<getaddrinfo_a>(3)."
408 msgstr "Смотрите B<aio>(7)."
409
410 #. type: SH
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "SEE ALSO"
415 msgstr "СМОТРИТЕ ТАКЖЕ"
416
417 #. type: Plain text
418 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
419 #, fuzzy
420 #| msgid ""
421 #| "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
422 #| "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wcstok>(3)"
423 msgid ""
424 "B<memchr>(3), B<strchr>(3), B<string>(3), B<strpbrk>(3), B<strsep>(3), "
425 "B<strspn>(3), B<strstr>(3), B<strtok_r>(3), B<wcstok>(3)"
426 msgstr ""
427 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
428 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wcstok>(3)"
429
430 #. type: TH
431 #: debian-trixie
432 #, no-wrap
433 msgid "2024-06-16"
434 msgstr "16 июня 2024 г."
435
436 #. type: TH
437 #: debian-trixie
438 #, no-wrap
439 msgid "Linux man-pages 6.9.1"
440 msgstr "Страницы руководства Linux 6.9.1"
441
442 #. type: Plain text
443 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
444 msgid "strtok, strtok_r - extract tokens from strings"
445 msgstr "strtok, strtok_r - извлечение элементов (токенов) из строки"
446
447 #. type: Plain text
448 #: debian-trixie
449 msgid "Standard C library (I<libc>, I<-lc>)"
450 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
451
452 #. type: Plain text
453 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
454 #, fuzzy, no-wrap
455 #| msgid ""
456 #| "B<int strfromd(char *restrict >I<str>B<, size_t >I<n>B<,>\n"
457 #| "B< const char *restrict >I<format>B<, double >I<fp>B<);>\n"
458 #| "B<int strfromf(char *restrict >I<str>B<, size_t >I<n>B<,>\n"
459 #| "B< const char *restrict >I<format>B<, float >I<fp>B<);>\n"
460 #| "B<int strfroml(char *restrict >I<str>B<, size_t >I<n>B<,>\n"
461 #| "B< const char *restrict >I<format>B<, long double >I<fp>B<);>\n"
462 msgid ""
463 "B<char *strtok(char *_Nullable restrict >I<str>B<, const char *restrict >I<delim>B<);>\n"
464 "B<char *strtok_r(char *_Nullable restrict >I<str>B<, const char *restrict >I<delim>B<,>\n"
465 "B< char **restrict >I<saveptr>B<);>\n"
466 msgstr ""
467 "B<int strfromd(char *restrict >I<str>B<, size_t >I<n>B<,>\n"
468 "B< const char *restrict >I<format>B<, double >I<fp>B<);>\n"
469 "B<int strfromf(char *restrict >I<str>B<, size_t >I<n>B<,>\n"
470 "B< const char *restrict >I<format>B<, float >I<fp>B<);>\n"
471 "B<int strfroml(char *restrict >I<str>B<, size_t >I<n>B<,>\n"
472 "B< const char *restrict >I<format>B<, long double >I<fp>B<);>\n"
473
474 #. type: Plain text
475 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
476 msgid ""
477 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
478 msgstr ""
479 "Требования макроса тестирования свойств для glibc (см. "
480 "B<feature_test_macros>(7)):"
481
482 #. type: Plain text
483 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
484 #, fuzzy
485 #| msgid "B<strtok_r>()"
486 msgid "B<strtok_r>():"
487 msgstr "B<strtok_r>()"
488
489 #. type: Plain text
490 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
491 #, no-wrap
492 msgid ""
493 " _POSIX_C_SOURCE\n"
494 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
495 msgstr ""
496 " _POSIX_C_SOURCE\n"
497 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
498
499 #. type: Plain text
500 #: debian-trixie fedora-44 fedora-rawhide
501 msgid ""
502 "From the above description, it follows that a sequence of two or more "
503 "contiguous delimiter bytes in the parsed string is considered to be a single "
504 "delimiter, and that delimiter bytes at the start or end of the string are "
505 "ignored. Put another way: the tokens returned by B<strtok>() are always "
506 "nonempty strings. Thus, for example, given the string \"I<aaa;;bbb,>\", "
507 "successive calls to B<strtok>() that specify the delimiter string \"I<;,>\" "
508 "would return the strings \"I<aaa>\" and \"I<bbb>\", and then a null pointer."
509 msgstr ""
510 "Из описания выше следует, что последовательность из двух и более непрерывных "
511 "байтов-разделителей в просматриваемой строке считается одним разделителем, а "
512 "байты-разделители в начале или конце строки игнорируются. Другими словами, "
513 "токены, возвращаемые B<strtok>() — всегда не пустые строки. То есть, "
514 "например, если есть строка «I<aaa;;bbb,>», то последующие вызовы B<strtok>() "
515 "с заданными разделителями строк «I<;,>» вернули бы строки «I<aaa>» и "
516 "«I<bbb>», а затем указатель null."
517
518 #. type: Plain text
519 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
520 #, fuzzy
521 #| msgid ""
522 #| "The B<strtok_r>() function is a reentrant version B<strtok>(). The "
523 #| "I<saveptr> argument is a pointer to a I<char\\ *> variable that is used "
524 #| "internally by B<strtok_r>() in order to maintain context between "
525 #| "successive calls that parse the same string."
526 msgid ""
527 "The B<strtok_r>() function is a reentrant version of B<strtok>(). The "
528 "I<saveptr> argument is a pointer to a I<char\\ *> variable that is used "
529 "internally by B<strtok_r>() in order to maintain context between successive "
530 "calls that parse the same string."
531 msgstr ""
532 "Функция B<strtok_r>() является реентерабельной версией B<strtok>(). Аргумент "
533 "I<saveptr> является указателем на переменную I<char\\ *>, которая "
534 "используется внутри B<strtok_r>() для учёта контекста между последующими "
535 "вызовами при анализе одной и той же строки."
536
537 #. type: Plain text
538 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
539 #, fuzzy
540 #| msgid ""
541 #| "On the first call to B<strtok_r>(), I<str> should point to the string to "
542 #| "be parsed, and the value of I<*saveptr> is ignored (but see NOTES). In "
543 #| "subsequent calls, I<str> should be NULL, and I<saveptr> (and the buffer "
544 #| "that it points to) should be unchanged since the previous call."
545 msgid ""
546 "On the first call to B<strtok_r>(), I<str> should point to the string to be "
547 "parsed, and the value of I<*saveptr> is ignored (but see VERSIONS). In "
548 "subsequent calls, I<str> should be NULL, and I<saveptr> (and the buffer that "
549 "it points to) should be unchanged since the previous call."
550 msgstr ""
551 "При первом вызове B<strtok_r>() значение I<str> должно указывать на "
552 "анализируемую строку, а значение I<*saveptr> игнорируется (но смотрите "
553 "ЗАМЕЧАНИЯ). При последующих вызовах значение I<str> должно быть NULL, а "
554 "значение I<saveptr> (и буфер, на который оно указывает) не должно изменяться "
555 "с момента предыдущего вызова."
556
557 #. type: Plain text
558 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
559 msgid ""
560 "Different strings may be parsed concurrently using sequences of calls to "
561 "B<strtok_r>() that specify different I<saveptr> arguments."
562 msgstr ""
563 "Одновременно могут анализироваться разные строки при нескольких запусках "
564 "B<strtok_r>() с различными аргументами I<saveptr>."
565
566 #. type: Plain text
567 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
568 msgid ""
569 "The B<strtok>() and B<strtok_r>() functions return a pointer to the next "
570 "token, or NULL if there are no more tokens."
571 msgstr ""
572 "Функции B<strtok>() и B<strtok_r>() возвращают указатель на следующий токен "
573 "или NULL, если больше токенов нет."
574
575 #. type: TP
576 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
577 #, no-wrap
578 msgid "B<strtok_r>()"
579 msgstr "B<strtok_r>()"
580
581 #. type: tbl table
582 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
583 #, no-wrap
584 msgid "MT-Safe"
585 msgstr "MT-Safe"
586
587 #. type: SH
588 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
589 #, no-wrap
590 msgid "VERSIONS"
591 msgstr "ВЕРСИИ"
592
593 #. Tru64, according to its manual page
594 #. type: Plain text
595 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
596 msgid ""
597 "On some implementations, I<*saveptr> is required to be NULL on the first "
598 "call to B<strtok_r>() that is being used to parse I<str>."
599 msgstr ""
600 "В некоторых реализациях значение I<*saveptr> должно быть равно NULL при "
601 "первом вызове B<strtok_r>(), который используется для разбора I<str>."
602
603 #. type: Plain text
604 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
605 msgid "POSIX.1-2008."
606 msgstr "POSIX.1-2008."
607
608 #. type: Plain text
609 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
610 msgid "POSIX.1-2001."
611 msgstr "POSIX.1-2001."
612
613 #. type: SH
614 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
615 #, no-wrap
616 msgid "BUGS"
617 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
618
619 #. type: Plain text
620 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
621 msgid "Be cautious when using these functions. If you do use them, note that:"
622 msgstr "Используйте данные функции с осторожностью. Учитывайте, что:"
623
624 #. type: Plain text
625 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
626 msgid "These functions modify their first argument."
627 msgstr "Эти функции изменяют свой первый аргумент."
628
629 #. type: Plain text
630 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
631 msgid "These functions cannot be used on constant strings."
632 msgstr "Эти функции не могут использоваться со строками-константами."
633
634 #. type: Plain text
635 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
636 msgid ""
637 "The B<strtok>() function uses a static buffer while parsing, so it's not "
638 "thread safe. Use B<strtok_r>() if this matters to you."
639 msgstr ""
640 "При анализе функция B<strtok>() использует статический буфер, поэтому не "
641 "является безопасной для нитей. Используйте B<strtok_r>() в этом случае."
642
643 #. type: Plain text
644 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
645 msgid ""
646 "The program below uses nested loops that employ B<strtok_r>() to break a "
647 "string into a two-level hierarchy of tokens. The first command-line "
648 "argument specifies the string to be parsed. The second argument specifies "
649 "the delimiter byte(s) to be used to separate that string into \"major\" "
650 "tokens. The third argument specifies the delimiter byte(s) to be used to "
651 "separate the \"major\" tokens into subtokens."
652 msgstr ""
653 "В программе, представленной далее, используются вложенные циклы, которые "
654 "вызывают B<strtok_r>() для разделения строки на составляющие её токены. В "
655 "первом параметре командной строки задаётся анализируемая строка. Во втором "
656 "параметре задаётся байт(ы)- разделитель, который используется для деления "
657 "строки на «составные» токены. В третьем параметре указывается байт(ы)- "
658 "разделитель, который используется для разделения «составных» токенов на "
659 "подтокены."
660
661 #. type: Plain text
662 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
663 msgid "An example of the output produced by this program is the following:"
664 msgstr "Пример результата вывода программы:"
665
666 #. type: Plain text
667 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
668 #, fuzzy, no-wrap
669 #| msgid ""
670 #| "$B< ./a.out \\(aqa/bbb///cc;xxx:yyy:\\(aq \\(aq:;\\(aq \\(aq/\\(aq>\n"
671 #| "1: a/bbb///cc\n"
672 #| " --E<gt> a\n"
673 #| " --E<gt> bbb\n"
674 #| " --E<gt> cc\n"
675 #| "2: xxx\n"
676 #| " --E<gt> xxx\n"
677 #| "3: yyy\n"
678 #| " --E<gt> yyy\n"
679 msgid ""
680 "$B< ./a.out \\[aq]a/bbb///cc;xxx:yyy:\\[aq] \\[aq]:;\\[aq] \\[aq]/\\[aq]>\n"
681 "1: a/bbb///cc\n"
682 " --E<gt> a\n"
683 " --E<gt> bbb\n"
684 " --E<gt> cc\n"
685 "2: xxx\n"
686 " --E<gt> xxx\n"
687 "3: yyy\n"
688 " --E<gt> yyy\n"
689 msgstr ""
690 "$B< ./a.out \\(aqa/bbb///cc;xxx:yyy:\\(aq \\(aq:;\\(aq \\(aq/\\(aq>\n"
691 "1: a/bbb///cc\n"
692 " --E<gt> a\n"
693 " --E<gt> bbb\n"
694 " --E<gt> cc\n"
695 "2: xxx\n"
696 " --E<gt> xxx\n"
697 "3: yyy\n"
698 " --E<gt> yyy\n"
699
700 #. type: SS
701 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
702 #, no-wrap
703 msgid "Program source"
704 msgstr "Исходный код программы"
705
706 #. type: Plain text
707 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
708 #, no-wrap
709 msgid ""
710 "#include E<lt>stdio.hE<gt>\n"
711 "#include E<lt>stdlib.hE<gt>\n"
712 "#include E<lt>string.hE<gt>\n"
713 "\\&\n"
714 "int\n"
715 "main(int argc, char *argv[])\n"
716 "{\n"
717 " char *str1, *str2, *token, *subtoken;\n"
718 " char *saveptr1, *saveptr2;\n"
719 " int j;\n"
720 "\\&\n"
721 " if (argc != 4) {\n"
722 " fprintf(stderr, \"Usage: %s string delim subdelim\\[rs]n\",\n"
723 " argv[0]);\n"
724 " exit(EXIT_FAILURE);\n"
725 " }\n"
726 "\\&\n"
727 " for (j = 1, str1 = argv[1]; ; j++, str1 = NULL) {\n"
728 " token = strtok_r(str1, argv[2], &saveptr1);\n"
729 " if (token == NULL)\n"
730 " break;\n"
731 " printf(\"%d: %s\\[rs]n\", j, token);\n"
732 "\\&\n"
733 " for (str2 = token; ; str2 = NULL) {\n"
734 " subtoken = strtok_r(str2, argv[3], &saveptr2);\n"
735 " if (subtoken == NULL)\n"
736 " break;\n"
737 " printf(\"\\[rs]t --E<gt> %s\\[rs]n\", subtoken);\n"
738 " }\n"
739 " }\n"
740 "\\&\n"
741 " exit(EXIT_SUCCESS);\n"
742 "}\n"
743 msgstr ""
744
745 #. type: Plain text
746 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
747 msgid ""
748 "Another example program using B<strtok>() can be found in "
749 "B<getaddrinfo_a>(3)."
750 msgstr ""
751 "Ещё один пример программы, использующей B<strtok>(), можно найти в "
752 "B<getaddrinfo_a>(3)."
753
754 #. type: Plain text
755 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
756 #, fuzzy
757 #| msgid ""
758 #| "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
759 #| "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wcstok>(3)"
760 msgid ""
761 "B<memchr>(3), B<strchr>(3), B<string>(3), B<strpbrk>(3), B<strsep>(3), "
762 "B<strspn>(3), B<strstr>(3), B<wcstok>(3)"
763 msgstr ""
764 "B<index>(3), B<memchr>(3), B<rindex>(3), B<strchr>(3), B<string>(3), "
765 "B<strpbrk>(3), B<strsep>(3), B<strspn>(3), B<strstr>(3), B<wcstok>(3)"
766
767 #. type: TH
768 #: fedora-44 fedora-rawhide
769 #, no-wrap
770 msgid "2024-07-23"
771 msgstr "23 июля 2024 г."
772
773 #. type: TH
774 #: fedora-44 fedora-rawhide
775 #, no-wrap
776 msgid "Linux man-pages 6.13"
777 msgstr "Страницы руководства Linux 6.13"
778
779 #. type: TH
780 #: mageia-cauldron
781 #, no-wrap
782 msgid "2026-02-08"
783 msgstr "8 февраля 2026 г."
784
785 #. type: TH
786 #: mageia-cauldron
787 #, no-wrap
788 msgid "Linux man-pages 6.17"
789 msgstr "Страницы руководства Linux 6.17"
790
791 #. type: TH
792 #: opensuse-leap-16-1 opensuse-tumbleweed
793 #, no-wrap
794 msgid "Linux man-pages (unreleased)"
795 msgstr "Страницы руководства Linux (не выпущены)"