Debian Codegraph @

po/ar/man3/strtok.3.po

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