Debian Codegraph @

po/ar/man3/strtol.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 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
9 "PO-Revision-Date: 2026-06-03 18:39+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "strtol"
25 msgstr "strtol"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 فبراير 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-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "strtol, strtoll, strtoq - convert a string to a long integer"
51 msgstr "strtol, strtoll, strtoq - تحويل سلسلة محارف إلى عدد صحيح طويل"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "المكتبة"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "موجز"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
78 msgstr "B<#include E<lt>stdlib.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<long strtol(const char *restrict >I<nptr>B<,>\n"
86 "B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n"
87 "B<long long strtoll(const char *restrict >I<nptr>B<,>\n"
88 "B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n"
89 msgstr ""
90 "B<long strtol(const char *restrict >I<nptr>B<,>\n"
91 "B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n"
92 "B<long long strtoll(const char *restrict >I<nptr>B<,>\n"
93 "B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
100 msgstr ""
101 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid "B<strtoll>():"
107 msgstr "B<strtoll>():"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, no-wrap
113 msgid ""
114 " _ISOC99_SOURCE\n"
115 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
116 msgstr ""
117 " _ISOC99_SOURCE\n"
118 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
119
120 #. type: SH
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 #, no-wrap
124 msgid "DESCRIPTION"
125 msgstr "الوصف"
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid ""
131 "The B<strtol>() function converts the initial part of the string in I<nptr> "
132 "to a long integer value according to the given I<base>, which must be "
133 "between 2 and 36 inclusive, or be the special value 0."
134 msgstr ""
135 "تحوّل الدالة B<strtol>() الجزء الأولي من السلسلة في I<nptr> إلى قيمة عدد صحيح "
136 "طويل وفقًا لـ I<base> المُعطى، والذي يجب أن يكون بين 2 و36 شاملًا، أو أن يكون "
137 "القيمة الخاصة 0."
138
139 #. type: Plain text
140 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
141 #: opensuse-tumbleweed
142 msgid ""
143 "The string may begin with an arbitrary amount of white space (as determined "
144 "by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] or \\[aq]-"
145 "\\[aq] sign. If I<base> is zero or 16, the string may then include a \"0x\" "
146 "or \"0X\" prefix, and the number will be read in base 16; if I<base> is zero "
147 "or 2, the string may then include a \"0b\" or \"0B\" prefix, and the number "
148 "will be read in base 2; otherwise, a zero I<base> is taken as 10 (decimal) "
149 "unless the next character is \\[aq]0\\[aq], in which case it is taken as 8 "
150 "(octal)."
151 msgstr ""
152 "قد تبدأ السلسلة بكمية اختيارية من المسافات البيضاء (كما يحددها "
153 "B<isspace>(3)) تليها علامة \\[aq]+\\[aq] أو \\[aq]-\\[aq] اختيارية واحدة. "
154 "إذا كانت I<base> صفرًا أو 16، فقد تتضمن السلسلة بادئة \"0x\" أو \"0X\"، "
155 "وسيُقرأ الرقم بالأساس 16؛ أما إذا كانت I<base> صفرًا أو 2، فقد تتضمن السلسلة "
156 "بادئة \"0b\" أو \"0B\"، وسيُقرأ الرقم بالأساس 2؛ وخلاف ذلك، تُتخذ I<base> "
157 "الصفرية على أنها 10 (عشري) ما لم يكن المحرف التالي هو \\[aq]0\\[aq]، وفي هذه "
158 "الحالة تُتخذ على أنها 8 (ثماني)."
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "The remainder of the string is converted to a I<long> value in the obvious "
165 "manner, stopping at the first character which is not a valid digit in the "
166 "given base. (In bases above 10, the letter \\[aq]A\\[aq] in either "
167 "uppercase or lowercase represents 10, \\[aq]B\\[aq] represents 11, and so "
168 "forth, with \\[aq]Z\\[aq] representing 35.)"
169 msgstr ""
170 "يُحوّل باقي السلسلة إلى قيمة I<long> بالطريقة الواضحة، ويتوقف عند أول محرف ليس "
171 "رقمًا صالحًا في الأساس المُعطى. (في الأساسات فوق 10، يمثل الحرف \\[aq]A\\[aq] "
172 "سواء بالأحرف الكبيرة أو الصغيرة 10، ويمثل \\[aq]B\\[aq] 11، وهكذا، مع "
173 "\\[aq]Z\\[aq] الذي يمثل 35.)"
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "If I<endptr> is not NULL, and the I<base> is supported, B<strtol>() stores "
180 "the address of the first invalid character in I<*endptr>. If there were no "
181 "digits at all, B<strtol>() stores the original value of I<nptr> in "
182 "I<*endptr> (and returns 0). In particular, if I<*nptr> is not "
183 "\\[aq]\\[rs]0\\[aq] but I<**endptr> is \\[aq]\\[rs]0\\[aq] on return, the "
184 "entire string is valid."
185 msgstr ""
186 "إذا لم يكن I<endptr> فارغًا (NULL)، وكان I<base> مدعومًا، تخزّن B<strtol>() "
187 "عنوان أول محرف غير صالح في I<*endptr>. إذا لم تكن هناك أرقام على الإطلاق، "
188 "تخزّن B<strtol>() القيمة الأصلية لـ I<nptr> في I<*endptr> (وتُعيد 0). على وجه "
189 "الخصوص، إذا لم يكن I<*nptr> هو \\[aq]\\[rs]0\\[aq] ولكن I<**endptr> هو "
190 "\\[aq]\\[rs]0\\[aq] عند الإرجاع، تكون السلسلة بأكملها صالحة."
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "The B<strtoll>() function works just like the B<strtol>() function but "
197 "returns a I<long long> integer value."
198 msgstr ""
199 "تعمل الدالة B<strtoll>() تمامًا مثل الدالة B<strtol>() ولكنها تُعيد قيمة عدد "
200 "صحيح من نوع I<long long>."
201
202 #. type: SH
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "RETURN VALUE"
207 msgstr "قيمة الإرجاع"
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "The B<strtol>() function returns the result of the conversion, unless the "
214 "value would underflow or overflow. If an underflow occurs, B<strtol>() "
215 "returns B<LONG_MIN>. If an overflow occurs, B<strtol>() returns "
216 "B<LONG_MAX>. In both cases, I<errno> is set to B<ERANGE>. Precisely the "
217 "same holds for B<strtoll>() (with B<LLONG_MIN> and B<LLONG_MAX> instead of "
218 "B<LONG_MIN> and B<LONG_MAX>)."
219 msgstr ""
220 "تُعيد الدالة B<strtol>() نتيجة التحويل، إلا إذا كانت القيمة ستؤدي إلى تجاوز "
221 "سفلي أو تجاوز علوي. إذا حدث تجاوز سفلي، تُعيد B<strtol>() B<LONG_MIN>. إذا "
222 "حدث تجاوز علوي، تُعيد B<strtol>() B<LONG_MAX>. في كلتا الحالتين، يُضبط "
223 "I<errno> على B<ERANGE>. ينطبق نفس الشيء تمامًا على B<strtoll>() (مع "
224 "B<LLONG_MIN> وB<LLONG_MAX> بدلاً من B<LONG_MIN> وB<LONG_MAX>)."
225
226 #. type: SH
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "ERRORS"
231 msgstr "الأخطاء"
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 msgid "This function does not modify I<errno> on success."
237 msgstr "لا تعدل هذه الدالة I<errno> عند النجاح."
238
239 #. type: TP
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 #, no-wrap
243 msgid "B<EINVAL>"
244 msgstr "B<EINVAL>"
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid "(not in C99) The given I<base> contains an unsupported value."
250 msgstr "(ليس في C99) يحتوي I<الأساس> المعطى على قيمة غير مدعومة."
251
252 #. type: TP
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "B<ERANGE>"
257 msgstr "B<ERANGE>"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid "The resulting value was out of range."
263 msgstr "القيمة الناتجة كانت خارج النطاق."
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid ""
269 "The implementation may also set I<errno> to B<EINVAL> in case no conversion "
270 "was performed (no digits seen, and 0 returned)."
271 msgstr ""
272 "قد يقوم التنفيذ أيضًا بضبط I<errno> على B<EINVAL> في حالة عدم إجراء أي تحويل "
273 "(لم تُرَ أي أرقام، وأُرْجِعَ 0)."
274
275 #. type: SH
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "ATTRIBUTES"
280 msgstr "السمات"
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid ""
286 "For an explanation of the terms used in this section, see B<attributes>(7)."
287 msgstr ""
288 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
289
290 #. type: tbl table
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "Interface"
295 msgstr "الواجهة"
296
297 #. type: tbl table
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "Attribute"
302 msgstr "السمة"
303
304 #. type: tbl table
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "Value"
309 msgstr "القيمة"
310
311 #. type: tbl table
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid ".na\n"
316 msgstr ".na\n"
317
318 #. type: tbl table
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid ".nh\n"
323 msgstr ".nh\n"
324
325 #. type: tbl table
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid ""
330 "B<strtol>(),\n"
331 "B<strtoll>(),\n"
332 "B<strtoq>()"
333 msgstr ""
334 "B<strtol>(),\n"
335 "B<strtoll>(),\n"
336 "B<strtoq>()"
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 "Thread safety"
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 "MT-Safe locale"
350 msgstr "المنطقة (locale) آمنة لتعدد المسالك (MT-Safe)"
351
352 #. type: SH
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "VERSIONS"
357 msgstr "الإصدارات"
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid ""
363 "According to POSIX.1, in locales other than \"C\" and \"POSIX\", these "
364 "functions may accept other, implementation-defined numeric strings."
365 msgstr ""
366 "وفقًا لـ POSIX.1، في الإعدادات المحلية غير \"C\" و\"POSIX\"، قد تقبل هذه "
367 "الدوال سلاسل رقمية أخرى محددة بالتنفيذ."
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 msgid "BSD also has"
373 msgstr "يمتلك BSD أيضًا"
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "B<quad_t strtoq(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
380 msgstr "B<quad_t strtoq(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n"
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "with completely analogous definition. Depending on the wordsize of the "
387 "current architecture, this may be equivalent to B<strtoll>() or to "
388 "B<strtol>()."
389 msgstr ""
390 "بتعريف مشابه تمامًا. اعتمادًا على حجم الكلمة في البنية الحالية، قد يكون هذا "
391 "مكافئًا لـ B<strtoll>() أو لـ B<strtol>()."
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 "STANDARDS"
398 msgstr "المعايير"
399
400 #. type: Plain text
401 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
402 #: opensuse-tumbleweed
403 msgid "C23, POSIX.1-2024."
404 msgstr "C23، ‏POSIX.1-2024."
405
406 #. type: SH
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 #, no-wrap
410 msgid "HISTORY"
411 msgstr "التاريخ"
412
413 #. type: TP
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "B<strtol>()"
418 msgstr "B<strtol>()"
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 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
424 msgstr "POSIX.1-2001، C89، SVr4، 4.3BSD."
425
426 #. type: TP
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "B<strtoll>()"
431 msgstr "B<strtoll>()"
432
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 msgid "POSIX.1-2001, C99."
437 msgstr "POSIX.1-2001، C99."
438
439 #. type: TP
440 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
441 #: opensuse-tumbleweed
442 #, no-wrap
443 msgid "\"0b\", \"0B\""
444 msgstr "\"0b\"، \"0B\""
445
446 #. type: Plain text
447 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
448 #: opensuse-tumbleweed
449 msgid "C23. glibc 2.38. (Not in POSIX.)"
450 msgstr "C23. glibc 2.38. (ليس في POSIX.)"
451
452 #. type: SH
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "CAVEATS"
457 msgstr "تحذيرات"
458
459 #. type: SS
460 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
461 #: opensuse-tumbleweed
462 #, no-wrap
463 msgid "Range checks"
464 msgstr "فحوصات النطاق"
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 msgid ""
470 "Since B<strtol>() can legitimately return 0, B<LONG_MAX>, or B<LONG_MIN> "
471 "(B<LLONG_MAX> or B<LLONG_MIN> for B<strtoll>()) on both success and "
472 "failure, the calling program should set I<errno> to 0 before the call, and "
473 "then determine if an error occurred by checking whether I<errno == ERANGE> "
474 "after the call."
475 msgstr ""
476 "نظرًا لأن B<strtol>() يمكنها قانونيًا إرجاع 0 أو B<LONG_MAX> أو B<LONG_MIN> "
477 "(B<LLONG_MAX> أو B<LLONG_MIN> لـ B<strtoll>()) في كل من النجاح والفشل، يجب "
478 "على البرنامج المستدعي ضبط I<errno> على 0 قبل الاستدعاء، ثم تحديد ما إذا حدث "
479 "خطأ بالتحقق مما إذا كان I<errno == ERANGE> بعد الاستدعاء."
480
481 #. type: Plain text
482 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
483 #: opensuse-tumbleweed
484 #, no-wrap
485 msgid ""
486 "errno = 0;\n"
487 "n = strtol(s, &end, base);\n"
488 "if (end == s)\n"
489 "\tgoto no_number;\n"
490 "if ((errno == ERANGE && n == _Minof(long)) || n E<lt> min)\n"
491 "\tgoto too_low;\n"
492 "if ((errno == ERANGE && n == _Maxof(long)) || n E<gt> max)\n"
493 "\tgoto too_high;\n"
494 msgstr ""
495 "errno = 0;\n"
496 "n = strtol(s, &end, base);\n"
497 "if (end == s)\n"
498 "\tgoto no_number;\n"
499 "if ((errno == ERANGE && n == _Minof(long)) || n E<lt> min)\n"
500 "\tgoto too_low;\n"
501 "if ((errno == ERANGE && n == _Maxof(long)) || n E<gt> max)\n"
502 "\tgoto too_high;\n"
503
504 #. type: SS
505 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
506 #: opensuse-tumbleweed
507 #, no-wrap
508 msgid "base"
509 msgstr "base"
510
511 #. type: Plain text
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 msgid ""
515 "If the I<base> needs to be tested, it should be tested in a call where the "
516 "string is known to succeed. Otherwise, it's impossible to portably "
517 "differentiate the errors."
518 msgstr ""
519 "إذا كان I<base> بحاجة إلى الاختبار، فيجب اختباره في استدعاء حيث من المعروف "
520 "أن السلسلة ستنجح. وإلا، فمن المستحيل التمييز بين الأخطاء بشكل محمول."
521
522 #. type: Plain text
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 #, no-wrap
526 msgid ""
527 "errno = 0;\n"
528 "strtol(\"0\", NULL, base);\n"
529 "if (errno == EINVAL)\n"
530 " goto unsupported_base;\n"
531 msgstr ""
532 "errno = 0;\n"
533 "strtol(\"0\", NULL, base);\n"
534 "if (errno == EINVAL)\n"
535 " goto unsupported_base;\n"
536
537 #. type: SH
538 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
539 #: opensuse-tumbleweed
540 #, no-wrap
541 msgid "BUGS"
542 msgstr "العلل"
543
544 #. type: SS
545 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
546 #: opensuse-tumbleweed
547 #, no-wrap
548 msgid "White space"
549 msgstr "مساحة فارغة"
550
551 #. type: Plain text
552 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
553 #: opensuse-tumbleweed
554 msgid ""
555 "These functions silently accept leading white space. To reject white space, "
556 "call B<isspace>(3) before B<strtol>()."
557 msgstr ""
558 "تقبل هذه الدوال المسافات البيضاء البادئة بصمت. لرفض المسافات البيضاء، استدع "
559 "B<isspace>(3) قبل B<strtol>()."
560
561 #. type: SH
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 #, no-wrap
565 msgid "EXAMPLES"
566 msgstr "أمثلة"
567
568 #. type: Plain text
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 msgid ""
572 "The program shown below demonstrates the use of B<strtol>(). The first "
573 "command-line argument specifies a string from which B<strtol>() should "
574 "parse a number. The second (optional) argument specifies the base to be "
575 "used for the conversion. (This argument is converted to numeric form using "
576 "B<atoi>(3), a function that performs no error checking and has a simpler "
577 "interface than B<strtol>().) Some examples of the results produced by this "
578 "program are the following:"
579 msgstr ""
580 "يُظهر البرنامج الموضح أدناه استخدام B<strtol>(). يُحدد وسيط سطر الأوامر الأولى "
581 "سلسلة محارف يجب أن تحلل منها B<strtol>() رقمًا. يُحدد الوسيط الثاني "
582 "(الاختياري) الأساس المستخدم للتحويل. (يُحوَّل هذا الوسيط إلى شكل رقمي باستخدام "
583 "B<atoi>(3)، وهي دالة لا تؤدي فحص الأخطاء ولها واجهة أبسط من B<strtol>().) "
584 "بعض الأمثلة على النتائج التي ينتجها هذا البرنامج هي التالية:"
585
586 #. type: Plain text
587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
589 #, no-wrap
590 msgid ""
591 "$B< ./a.out 123>\n"
592 "strtol() returned 123\n"
593 "$B< ./a.out \\[aq] 123\\[aq]>\n"
594 "strtol() returned 123\n"
595 "$B< ./a.out 123abc>\n"
596 "strtol() returned 123\n"
597 "Further characters after number: \"abc\"\n"
598 "$B< ./a.out 123abc 55>\n"
599 "strtol: Invalid argument\n"
600 "$B< ./a.out \\[aq]\\[aq]>\n"
601 "No digits were found\n"
602 "$B< ./a.out 4000000000>\n"
603 "strtol: Numerical result out of range\n"
604 msgstr ""
605 "$B< ./a.out 123>\n"
606 "strtol() returned 123\n"
607 "$B< ./a.out \\[aq] 123\\[aq]>\n"
608 "strtol() returned 123\n"
609 "$B< ./a.out 123abc>\n"
610 "strtol() returned 123\n"
611 "Further characters after number: \"abc\"\n"
612 "$B< ./a.out 123abc 55>\n"
613 "strtol: Invalid argument\n"
614 "$B< ./a.out \\[aq]\\[aq]>\n"
615 "No digits were found\n"
616 "$B< ./a.out 4000000000>\n"
617 "strtol: Numerical result out of range\n"
618
619 #. type: SS
620 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
621 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
622 #, no-wrap
623 msgid "Program source"
624 msgstr "مصدر البرنامج"
625
626 #. type: Plain text
627 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
628 #: opensuse-tumbleweed
629 #, no-wrap
630 msgid ""
631 "#include E<lt>errno.hE<gt>\n"
632 "#include E<lt>stdio.hE<gt>\n"
633 "#include E<lt>stdlib.hE<gt>\n"
634 "\\&\n"
635 "int\n"
636 "main(int argc, char *argv[])\n"
637 "{\n"
638 " int base;\n"
639 " char *endptr, *str;\n"
640 " long val;\n"
641 "\\&\n"
642 " if (argc E<lt> 2) {\n"
643 " fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n"
644 " exit(EXIT_FAILURE);\n"
645 " }\n"
646 "\\&\n"
647 " str = argv[1];\n"
648 " base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n"
649 "\\&\n"
650 " errno = 0; /* To distinguish success/failure after call */\n"
651 " strtol(\"0\", NULL, base);\n"
652 " if (errno == EINVAL) {\n"
653 " perror(\"strtol\");\n"
654 " exit(EXIT_FAILURE);\n"
655 " }\n"
656 "\\&\n"
657 " errno = 0; /* To distinguish success/failure after call */\n"
658 " val = strtol(str, &endptr, base);\n"
659 "\\&\n"
660 " /* Check for various possible errors. */\n"
661 "\\&\n"
662 " if (errno == ERANGE) {\n"
663 " perror(\"strtol\");\n"
664 " exit(EXIT_FAILURE);\n"
665 " }\n"
666 "\\&\n"
667 " if (endptr == str) {\n"
668 " fprintf(stderr, \"No digits were found\\[rs]n\");\n"
669 " exit(EXIT_FAILURE);\n"
670 " }\n"
671 "\\&\n"
672 " /* If we got here, strtol() successfully parsed a number. */\n"
673 "\\&\n"
674 " printf(\"strtol() returned %ld\\[rs]n\", val);\n"
675 "\\&\n"
676 " if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error. */\n"
677 " printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n"
678 "\\&\n"
679 " exit(EXIT_SUCCESS);\n"
680 "}\n"
681 msgstr ""
682 "#include E<lt>errno.hE<gt>\n"
683 "#include E<lt>stdio.hE<gt>\n"
684 "#include E<lt>stdlib.hE<gt>\n"
685 "\\&\n"
686 "int\n"
687 "main(int argc, char *argv[])\n"
688 "{\n"
689 " int base;\n"
690 " char *endptr, *str;\n"
691 " long val;\n"
692 "\\&\n"
693 " if (argc E<lt> 2) {\n"
694 " fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n"
695 " exit(EXIT_FAILURE);\n"
696 " }\n"
697 "\\&\n"
698 " str = argv[1];\n"
699 " base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n"
700 "\\&\n"
701 " errno = 0; /* To distinguish success/failure after call */\n"
702 " strtol(\"0\", NULL, base);\n"
703 " if (errno == EINVAL) {\n"
704 " perror(\"strtol\");\n"
705 " exit(EXIT_FAILURE);\n"
706 " }\n"
707 "\\&\n"
708 " errno = 0; /* To distinguish success/failure after call */\n"
709 " val = strtol(str, &endptr, base);\n"
710 "\\&\n"
711 " /* Check for various possible errors. */\n"
712 "\\&\n"
713 " if (errno == ERANGE) {\n"
714 " perror(\"strtol\");\n"
715 " exit(EXIT_FAILURE);\n"
716 " }\n"
717 "\\&\n"
718 " if (endptr == str) {\n"
719 " fprintf(stderr, \"No digits were found\\[rs]n\");\n"
720 " exit(EXIT_FAILURE);\n"
721 " }\n"
722 "\\&\n"
723 " /* If we got here, strtol() successfully parsed a number. */\n"
724 "\\&\n"
725 " printf(\"strtol() returned %ld\\[rs]n\", val);\n"
726 "\\&\n"
727 " if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error. */\n"
728 " printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n"
729 "\\&\n"
730 " exit(EXIT_SUCCESS);\n"
731 "}\n"
732
733 #. SRC END
734 #. type: SH
735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
737 #, no-wrap
738 msgid "SEE ALSO"
739 msgstr "انظر أيضًا"
740
741 #. type: Plain text
742 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
743 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
744 msgid ""
745 "B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3), "
746 "B<strtoul>(3)"
747 msgstr ""
748 "B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3), "
749 "B<strtoul>(3)"
750
751 #. type: TH
752 #: debian-trixie
753 #, no-wrap
754 msgid "2024-06-16"
755 msgstr "16 يونيو 2024"
756
757 #. type: TH
758 #: debian-trixie
759 #, no-wrap
760 msgid "Linux man-pages 6.9.1"
761 msgstr "صفحات دليل لينكس 6.9.1"
762
763 #. type: Plain text
764 #: debian-trixie
765 msgid "Standard C library (I<libc>, I<-lc>)"
766 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
767
768 #. type: Plain text
769 #: debian-trixie fedora-44 fedora-rawhide
770 msgid ""
771 "The string may begin with an arbitrary amount of white space (as determined "
772 "by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] or \\[aq]-"
773 "\\[aq] sign. If I<base> is zero or 16, the string may then include a \"0x\" "
774 "or \"0X\" prefix, and the number will be read in base 16; otherwise, a zero "
775 "I<base> is taken as 10 (decimal) unless the next character is \\[aq]0\\[aq], "
776 "in which case it is taken as 8 (octal)."
777 msgstr ""
778 "قد تبدأ السلسلة بمقدار عشوائي من المسافات البيضاء (كما يُحدد بواسطة "
779 "B<isspace>(3)) متبوعًا بإشارة اختيارية واحدة \\[aq]+\\[aq] أو \\[aq]-\\[aq]. "
780 "إذا كان I<base> صفرًا أو 16، فقد تتضمن السلسلة بعد ذلك بادئة \"0x\" أو "
781 "\"0X\"، وسيُقرأ الرقم في الأساس 16؛ وإلا، يُؤخذ I<base> الصفري على أنه 10 "
782 "(عشري) ما لم يكن الحرف التالي هو \\[aq]0\\[aq]، وفي هذه الحالة يُؤخذ على أنه "
783 "8 (ثماني)."
784
785 #. type: Plain text
786 #: debian-trixie fedora-44 fedora-rawhide
787 msgid "C11, POSIX.1-2008."
788 msgstr "C11, POSIX.1-2008."
789
790 #. type: Plain text
791 #: debian-trixie fedora-44 fedora-rawhide
792 #, no-wrap
793 msgid ""
794 "#include E<lt>errno.hE<gt>\n"
795 "#include E<lt>stdio.hE<gt>\n"
796 "#include E<lt>stdlib.hE<gt>\n"
797 "\\&\n"
798 "int\n"
799 "main(int argc, char *argv[])\n"
800 "{\n"
801 " int base;\n"
802 " char *endptr, *str;\n"
803 " long val;\n"
804 "\\&\n"
805 " if (argc E<lt> 2) {\n"
806 " fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n"
807 " exit(EXIT_FAILURE);\n"
808 " }\n"
809 "\\&\n"
810 " str = argv[1];\n"
811 " base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n"
812 "\\&\n"
813 " errno = 0; /* To distinguish success/failure after call */\n"
814 " strtol(\"0\", NULL, base);\n"
815 " if (errno == EINVAL) {\n"
816 " perror(\"strtol\");\n"
817 " exit(EXIT_FAILURE);\n"
818 " }\n"
819 "\\&\n"
820 " errno = 0; /* To distinguish success/failure after call */\n"
821 " val = strtol(str, &endptr, base);\n"
822 "\\&\n"
823 " /* Check for various possible errors. */\n"
824 "\\&\n"
825 " if (errno == ERANGE) {\n"
826 " perror(\"strtol\");\n"
827 " exit(EXIT_FAILURE);\n"
828 " }\n"
829 "\\&\n"
830 " if (endptr == str) {\n"
831 " fprintf(stderr, \"No digits were found\\[rs]n\");\n"
832 " exit(EXIT_FAILURE);\n"
833 " }\n"
834 "\\&\n"
835 " /* If we got here, strtol() successfully parsed a number. */\n"
836 "\\&\n"
837 " printf(\"strtol() returned %ld\\[rs]n\", val);\n"
838 "\\&\n"
839 " if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error... */\n"
840 " printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n"
841 "\\&\n"
842 " exit(EXIT_SUCCESS);\n"
843 "}\n"
844 msgstr ""
845 "#include E<lt>errno.hE<gt>\n"
846 "#include E<lt>stdio.hE<gt>\n"
847 "#include E<lt>stdlib.hE<gt>\n"
848 "\\&\n"
849 "int\n"
850 "main(int argc, char *argv[])\n"
851 "{\n"
852 " int base;\n"
853 " char *endptr, *str;\n"
854 " long val;\n"
855 "\\&\n"
856 " if (argc E<lt> 2) {\n"
857 " fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n"
858 " exit(EXIT_FAILURE);\n"
859 " }\n"
860 "\\&\n"
861 " str = argv[1];\n"
862 " base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n"
863 "\\&\n"
864 " errno = 0; /* To distinguish success/failure after call */\n"
865 " strtol(\"0\", NULL, base);\n"
866 " if (errno == EINVAL) {\n"
867 " perror(\"strtol\");\n"
868 " exit(EXIT_FAILURE);\n"
869 " }\n"
870 "\\&\n"
871 " errno = 0; /* To distinguish success/failure after call */\n"
872 " val = strtol(str, &endptr, base);\n"
873 "\\&\n"
874 " /* Check for various possible errors. */\n"
875 "\\&\n"
876 " if (errno == ERANGE) {\n"
877 " perror(\"strtol\");\n"
878 " exit(EXIT_FAILURE);\n"
879 " }\n"
880 "\\&\n"
881 " if (endptr == str) {\n"
882 " fprintf(stderr, \"No digits were found\\[rs]n\");\n"
883 " exit(EXIT_FAILURE);\n"
884 " }\n"
885 "\\&\n"
886 " /* If we got here, strtol() successfully parsed a number. */\n"
887 "\\&\n"
888 " printf(\"strtol() returned %ld\\[rs]n\", val);\n"
889 "\\&\n"
890 " if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error... */\n"
891 " printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n"
892 "\\&\n"
893 " exit(EXIT_SUCCESS);\n"
894 "}\n"
895
896 #. type: TH
897 #: fedora-44 fedora-rawhide
898 #, no-wrap
899 msgid "2024-07-23"
900 msgstr "23 يوليو 2024"
901
902 #. type: TH
903 #: fedora-44 fedora-rawhide
904 #, no-wrap
905 msgid "Linux man-pages 6.13"
906 msgstr "صفحات دليل لينكس 6.13"
907
908 #. type: TH
909 #: mageia-cauldron
910 #, no-wrap
911 msgid "Linux man-pages 6.17"
912 msgstr "صفحات دليل لينكس 6.17"
913
914 #. type: TH
915 #: opensuse-leap-16-1 opensuse-tumbleweed
916 #, no-wrap
917 msgid "Linux man-pages (unreleased)"
918 msgstr "صفحات دليل لينكس (لم تصدر بعد)"