Debian Codegraph @

po/ar/man3/strcmp.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 19:28+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 "strcmp"
25 msgstr "strcmp"
26
27 #. type: TH
28 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-03-16"
31 msgstr "16 مارس 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "صفحات دليل لينكس 6.18"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr "الاسم"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "strcmp, strncmp - compare two strings"
50 msgstr "strcmp, strncmp - مقارنة سلسلتي محارف"
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 mageia-cauldron opensuse-leap-16-1
81 #: opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
85 "B<int strncmp(const char >s1B<[], const char >s2B<[], size_t >nB<);>\n"
86 msgstr ""
87 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
88 "B<int strncmp(const char >s1B<[], const char >s2B<[], size_t >nB<);>\n"
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "DESCRIPTION"
95 msgstr "الوصف"
96
97 #. type: TP
98 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "B<strcmp>()"
101 msgstr "B<strcmp>()"
102
103 #. type: Plain text
104 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "The B<strcmp>() function compares the two strings I<s1> and I<s2>, as if by "
107 "calling B<memcmp>(3)."
108 msgstr ""
109 "تقارن الدالة B<strcmp>() سلسلتي المحارف I<s1> و I<s2>، كما لو كانت تستدعي "
110 "B<memcmp>(3)."
111
112 #. type: Plain text
113 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
114 msgid ""
115 "The locale is not taken into account (for a locale-aware comparison, see "
116 "B<strcoll>(3))."
117 msgstr ""
118 "لا يُؤخذ الإعداد المحلي في الاعتبار (لمقارنة تراعي الإعداد المحلي، انظر "
119 "B<strcoll>(3))."
120
121 #. type: Plain text
122 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
123 msgid "It is equivalent to"
124 msgstr "يكافئ"
125
126 #. type: Plain text
127 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid "memcmp(s1, s2, MIN(strlen(s1),strlen(s2))+1)\n"
130 msgstr "memcmp(s1, s2, MIN(strlen(s1),strlen(s2))+1)\n"
131
132 #. type: TP
133 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
134 #, no-wrap
135 msgid "B<strncmp>()"
136 msgstr "B<strncmp>()"
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "The B<strncmp>() function is similar, except it compares only the first (at "
143 "most) I<n> bytes of I<s1> and I<s2>."
144 msgstr ""
145 "الدالة B<strncmp>() مماثلة، إلا أنها تقارن فقط أول (على الأكثر) I<n> بايت من "
146 "I<s1> و I<s2>."
147
148 #. type: Plain text
149 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "memcmp(s1, s2, MIN(MIN(strnlen(s1,n),strnlen(s2,n))+1, n))\n"
152 msgstr "memcmp(s1, s2, MIN(MIN(strnlen(s1,n),strnlen(s2,n))+1, n))\n"
153
154 #. type: SH
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid "RETURN VALUE"
159 msgstr "قيمة الإرجاع"
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 msgid ""
165 "The B<strcmp>() and B<strncmp>() functions return an integer less than, "
166 "equal to, or greater than zero if I<s1> (or the first I<n> bytes thereof) is "
167 "found, respectively, to be less than, to match, or be greater than I<s2>."
168 msgstr ""
169 "ترجع الدالتان B<strcmp>() و B<strncmp()> عددًا صحيحًا أقل من الصفر، أو مساويًا "
170 "له، أو أكبر منه إذا وُجد أن I<s1> (أو أول I<n> بايت منها) أقل من I<s2>، أو "
171 "مطابقًا له، أو أكبر منه، على التوالي."
172
173 #. type: SH
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 #, no-wrap
177 msgid "ATTRIBUTES"
178 msgstr "السمات"
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "For an explanation of the terms used in this section, see B<attributes>(7)."
185 msgstr ""
186 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
187
188 #. type: tbl table
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, no-wrap
192 msgid "Interface"
193 msgstr "الواجهة"
194
195 #. type: tbl table
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 #, no-wrap
199 msgid "Attribute"
200 msgstr "السمة"
201
202 #. type: tbl table
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "Value"
207 msgstr "القيمة"
208
209 #. type: tbl table
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid ".na\n"
214 msgstr ".na\n"
215
216 #. type: tbl table
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 #, no-wrap
220 msgid ".nh\n"
221 msgstr ".nh\n"
222
223 #. type: tbl table
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 #, no-wrap
227 msgid ""
228 "B<strcmp>(),\n"
229 "B<strncmp>()"
230 msgstr ""
231 "B<strcmp>(),\n"
232 "B<strncmp>()"
233
234 #. type: tbl table
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid "Thread safety"
239 msgstr "سلامة الخيوط"
240
241 #. type: tbl table
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "MT-Safe"
246 msgstr "MT-Safe"
247
248 #. type: SH
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "VERSIONS"
253 msgstr "الإصدارات"
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid "POSIX.1 specifies only that:"
259 msgstr "يحدد POSIX.1 فقط ما يلي:"
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid ""
265 "The sign of a nonzero return value shall be determined by the sign of the "
266 "difference between the values of the first pair of bytes (both interpreted "
267 "as type I<unsigned char>) that differ in the strings being compared."
268 msgstr ""
269 "يُحدد إشارة قيمة الإرجاع غير الصفرية بإشارة الفرق بين قيم أول زوج من البايتات "
270 "(كلاهما يُفسر كنوع I<unsigned char>) يختلفان في السلاسل التي تُقارن."
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid ""
276 "In glibc, as in most other implementations, the return value is the "
277 "arithmetic result of subtracting the last compared byte in I<s2> from the "
278 "last compared byte in I<s1>. (If the two characters are equal, this "
279 "difference is 0.)"
280 msgstr ""
281 "في glibc، كما في معظم التطبيقات الأخرى، قيمة الإرجاع هي النتيجة الحسابية "
282 "لطرح آخر بايت تمت مقارنته في I<s2> من آخر بايت تمت مقارنته في I<s1>. (إذا "
283 "كان الحرفان متساويين، فإن هذا الفرق هو 0.)"
284
285 #. type: SH
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "STANDARDS"
290 msgstr "المعايير"
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid "C11, POSIX.1-2008."
296 msgstr "C11, POSIX.1-2008."
297
298 #. type: SH
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "HISTORY"
303 msgstr "التاريخ"
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
309 msgstr "POSIX.1-2001، C89، SVr4، 4.3BSD."
310
311 #. type: SH
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "EXAMPLES"
316 msgstr "أمثلة"
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "The program below can be used to demonstrate the operation of B<strcmp>() "
323 "(when given two arguments) and B<strncmp>() (when given three arguments). "
324 "First, some examples using B<strcmp>():"
325 msgstr ""
326 "يمكن استخدام البرنامج أدناه لتوضيح عمل B<strcmp>() (عند إعطائه وسيطين) و "
327 "B<strncmp>() (عند إعطائه ثلاث وسائط). أولاً، بعض الأمثلة باستخدام B<strcmp>():"
328
329 #. type: Plain text
330 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
331 #: opensuse-tumbleweed
332 #, no-wrap
333 msgid ""
334 "$B< ./string_comp ABC ABC>;\n"
335 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
336 "$B< ./string_comp ABC AB>; # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
337 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
338 "$B< ./string_comp ABA ABZ>; # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
339 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
340 "$B< ./string_comp ABJ ABC>;\n"
341 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
342 "$B< ./string_comp $\\[aq]\\[rs]201\\[aq] A>; # 0201 - 0101 = 0100 (or 64 decimal)\n"
343 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
344 msgstr ""
345 "$B< ./string_comp ABC ABC>;\n"
346 "E<lt>str1E<gt> و E<lt>str2E<gt> متساويان\n"
347 "$B< ./string_comp ABC AB>; # \\[aq]C\\[aq] هو ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
348 "E<lt>str1E<gt> أكبر من E<lt>str2E<gt> (67)\n"
349 "$B< ./string_comp ABA ABZ>; # \\[aq]A\\[aq] هو ASCII 65; \\[aq]Z\\[aq] هو ASCII 90\n"
350 "E<lt>str1E<gt> أصغر من E<lt>str2E<gt> (-25)\n"
351 "$B< ./string_comp ABJ ABC>;\n"
352 "E<lt>str1E<gt> أكبر من E<lt>str2E<gt> (7)\n"
353 "$B< ./string_comp $\\[aq]\\[rs]201\\[aq] A>; # 0201 - 0101 = 0100 (أو 64 عشريًا)\n"
354 "E<lt>str1E<gt> أكبر من E<lt>str2E<gt> (64)\n"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid ""
360 "The last example uses B<bash>(1)-specific syntax to produce a string "
361 "containing an 8-bit ASCII code; the result demonstrates that the string "
362 "comparison uses unsigned characters."
363 msgstr ""
364 "يستخدم المثال الأخير بناء جملة خاصًا بـ B<bash>(1) لإنتاج سلسلة محارف تحتوي "
365 "على رمز ASCII 8-بت؛ تُظهر النتيجة أن مقارنة السلاسل تستخدم محارف غير مُوقَّعة."
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid "And then some examples using B<strncmp>():"
371 msgstr "ثم بعض الأمثلة باستخدام B<strncmp>():"
372
373 #. type: Plain text
374 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
375 #: opensuse-tumbleweed
376 #, no-wrap
377 msgid ""
378 "$B< ./string_comp ABC AB 3>;\n"
379 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
380 "$B< ./string_comp ABC AB 2>;\n"
381 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
382 msgstr ""
383 "$B< ./string_comp ABC AB 3>;\n"
384 "E<lt>str1E<gt> أكبر من E<lt>str2E<gt> (67)\n"
385 "$B< ./string_comp ABC AB 2>;\n"
386 "E<lt>str1E<gt> و E<lt>str2E<gt> متساويان في أول 2 بايت\n"
387
388 #. type: SS
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 #, no-wrap
392 msgid "Program source"
393 msgstr "مصدر البرنامج"
394
395 #. type: Plain text
396 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
397 #: opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid ""
400 "/* string_comp.c\n"
401 "\\&\n"
402 " Licensed under GNU General Public License v2 or later.\n"
403 "*/\n"
404 "#include E<lt>stdio.hE<gt>\n"
405 "#include E<lt>stdlib.hE<gt>\n"
406 "#include E<lt>string.hE<gt>\n"
407 "\\&\n"
408 "int\n"
409 "main(int argc, char *argv[])\n"
410 "{\n"
411 " int res;\n"
412 "\\&\n"
413 " if (argc E<lt> 3) {\n"
414 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
415 " exit(EXIT_FAILURE);\n"
416 " }\n"
417 "\\&\n"
418 " if (argc == 3)\n"
419 " res = strcmp(argv[1], argv[2]);\n"
420 " else\n"
421 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
422 "\\&\n"
423 " if (res == 0) {\n"
424 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
425 " if (argc E<gt> 3)\n"
426 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
427 " printf(\"\\[rs]n\");\n"
428 " } else if (res E<lt> 0) {\n"
429 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
430 " } else {\n"
431 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
432 " }\n"
433 "\\&\n"
434 " exit(EXIT_SUCCESS);\n"
435 "}\n"
436 msgstr ""
437 "/* string_comp.c\n"
438 "\\&\n"
439 " مرخص بموجب رخصة جنو العمومية العامة الإصدار 2 أو الأحدث.\n"
440 "*/\n"
441 "#include E<lt>stdio.hE<gt>\n"
442 "#include E<lt>stdlib.hE<gt>\n"
443 "#include E<lt>string.hE<gt>\n"
444 "\\&\n"
445 "int\n"
446 "main(int argc, char *argv[])\n"
447 "{\n"
448 " int res;\n"
449 "\\&\n"
450 " if (argc E<lt> 3) {\n"
451 " fprintf(stderr, \"الاستخدام: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
452 " exit(EXIT_FAILURE);\n"
453 " }\n"
454 "\\&\n"
455 " if (argc == 3)\n"
456 " res = strcmp(argv[1], argv[2]);\n"
457 " else\n"
458 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
459 "\\&\n"
460 " if (res == 0) {\n"
461 " printf(\"E<lt>str1E<gt> و E<lt>str2E<gt> متساويان\");\n"
462 " if (argc E<gt> 3)\n"
463 " printf(\" في أول %d بايت\\[rs]n\", atoi(argv[3]));\n"
464 " printf(\"\\[rs]n\");\n"
465 " } else if (res E<lt> 0) {\n"
466 " printf(\"E<lt>str1E<gt> أصغر من E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
467 " } else {\n"
468 " printf(\"E<lt>str1E<gt> أكبر من E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
469 " }\n"
470 "\\&\n"
471 " exit(EXIT_SUCCESS);\n"
472 "}\n"
473
474 #. SRC END
475 #. type: SH
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 #, no-wrap
479 msgid "SEE ALSO"
480 msgstr "انظر أيضًا"
481
482 #. type: Plain text
483 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
484 msgid ""
485 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<streq>(3), B<string>(3), "
486 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
487 msgstr ""
488 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<streq>(3), B<string>(3), "
489 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
490
491 #. type: TH
492 #: debian-trixie
493 #, no-wrap
494 msgid "2024-06-15"
495 msgstr "15 يونيو 2024"
496
497 #. type: TH
498 #: debian-trixie
499 #, no-wrap
500 msgid "Linux man-pages 6.9.1"
501 msgstr "صفحات دليل لينكس 6.9.1"
502
503 #. type: Plain text
504 #: debian-trixie
505 msgid "Standard C library (I<libc>, I<-lc>)"
506 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
507
508 #. type: Plain text
509 #: debian-trixie fedora-44 fedora-rawhide
510 #, no-wrap
511 msgid ""
512 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
513 "B<int strncmp(const char >I<s1>B<[.>I<n>B<], const char >I<s2>B<[.>I<n>B<], size_t >I<n>B<);>\n"
514 msgstr ""
515 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
516 "B<int strncmp(const char >I<s1>B<[.>I<n>B<], const char >I<s2>B<[.>I<n>B<], size_t >I<n>B<);>\n"
517
518 #. type: Plain text
519 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
520 msgid ""
521 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. The "
522 "locale is not taken into account (for a locale-aware comparison, see "
523 "B<strcoll>(3)). The comparison is done using unsigned characters."
524 msgstr ""
525 "الدالة B<strcmp>() تقارن سلسلتي المحارف I<s1> و I<s2>. لا يُؤخذ الإعداد "
526 "المحلي في الاعتبار (للمقارنة الواعية بالإعداد المحلي، انظر B<strcoll>(3)). "
527 "تُجرى المقارنة باستخدام محارف غير مُوقَّعة."
528
529 #. type: Plain text
530 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
531 msgid ""
532 "B<strcmp>() returns an integer indicating the result of the comparison, as "
533 "follows:"
534 msgstr "تُرجع B<strcmp>() عددًا صحيحًا يُشير إلى نتيجة المقارنة، كما يلي:"
535
536 #. type: IP
537 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
538 #, no-wrap
539 msgid "\\[bu]"
540 msgstr "\\[bu]"
541
542 #. type: Plain text
543 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
544 msgid "0, if the I<s1> and I<s2> are equal;"
545 msgstr "0، إذا كانت I<s1> و I<s2> متساويتين؛"
546
547 #. type: Plain text
548 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
549 msgid "a negative value if I<s1> is less than I<s2>;"
550 msgstr "قيمة سالبة إذا كانت I<s1> أصغر من I<s2>؛"
551
552 #. type: Plain text
553 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
554 msgid "a positive value if I<s1> is greater than I<s2>."
555 msgstr "قيمة موجبة إذا كانت I<s1> أكبر من I<s2>."
556
557 #. type: Plain text
558 #: debian-trixie fedora-44 fedora-rawhide
559 #, no-wrap
560 msgid ""
561 "$ B<./string_comp ABC ABC>\n"
562 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
563 "$ B<./string_comp ABC AB> # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
564 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
565 "$ B<./string_comp ABA ABZ> # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
566 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
567 "$ B<./string_comp ABJ ABC>\n"
568 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
569 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (or 64 decimal)\n"
570 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
571 msgstr ""
572 "$ B<./string_comp ABC ABC>\n"
573 "E<lt>str1E<gt> و E<lt>str2E<gt> متساويتان\n"
574 "$ B<./string_comp ABC AB> # \\[aq]C\\[aq] هو ASCII 67؛ \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
575 "E<lt>str1E<gt> أكبر من E<lt>str2E<gt> (67)\n"
576 "$ B<./string_comp ABA ABZ> # \\[aq]A\\[aq] هو ASCII 65؛ \\[aq]Z\\[aq] هو ASCII 90\n"
577 "E<lt>str1E<gt> أصغر من E<lt>str2E<gt> (-25)\n"
578 "$ B<./string_comp ABJ ABC>\n"
579 "E<lt>str1E<gt> أكبر من E<lt>str2E<gt> (7)\n"
580 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (أو 64 عشريًا)\n"
581 "E<lt>str1E<gt> أكبر من E<lt>str2E<gt> (64)\n"
582
583 #. type: Plain text
584 #: debian-trixie fedora-44 fedora-rawhide
585 #, no-wrap
586 msgid ""
587 "$ B<./string_comp ABC AB 3>\n"
588 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
589 "$ B<./string_comp ABC AB 2>\n"
590 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
591 msgstr ""
592 "$ B<./string_comp ABC AB 3>\n"
593 "E<lt>str1E<gt> أكبر من E<lt>str2E<gt> (67)\n"
594 "$ B<./string_comp ABC AB 2>\n"
595 "E<lt>str1E<gt> و E<lt>str2E<gt> متساويتان في أول 2 بايت\n"
596
597 #. type: Plain text
598 #: debian-trixie
599 #, no-wrap
600 msgid ""
601 "/* string_comp.c\n"
602 "\\&\n"
603 " Licensed under GNU General Public License v2 or later.\n"
604 "*/\n"
605 "#include E<lt>stdio.hE<gt>\n"
606 "#include E<lt>stdlib.hE<gt>\n"
607 "#include E<lt>string.hE<gt>\n"
608 "\\&\n"
609 "int\n"
610 "main(int argc, char *argv[])\n"
611 "{\n"
612 " int res;\n"
613 "\\&\n"
614 " if (argc E<lt> 3) {\n"
615 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>lenE<gt>]\\[rs]n\", argv[0]);\n"
616 " exit(EXIT_FAILURE);\n"
617 " }\n"
618 "\\&\n"
619 " if (argc == 3)\n"
620 " res = strcmp(argv[1], argv[2]);\n"
621 " else\n"
622 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
623 "\\&\n"
624 " if (res == 0) {\n"
625 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
626 " if (argc E<gt> 3)\n"
627 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
628 " printf(\"\\[rs]n\");\n"
629 " } else if (res E<lt> 0) {\n"
630 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
631 " } else {\n"
632 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
633 " }\n"
634 "\\&\n"
635 " exit(EXIT_SUCCESS);\n"
636 "}\n"
637 msgstr ""
638 "/* string_comp.c\n"
639 "\\&\n"
640 " مرخص بموجب رخصة جنو العمومية العامة الإصدار 2 أو الأحدث.\n"
641 "*/\n"
642 "#include E<lt>stdio.hE<gt>\n"
643 "#include E<lt>stdlib.hE<gt>\n"
644 "#include E<lt>string.hE<gt>\n"
645 "\\&\n"
646 "int\n"
647 "main(int argc, char *argv[])\n"
648 "{\n"
649 " int res;\n"
650 "\\&\n"
651 " if (argc E<lt> 3) {\n"
652 " fprintf(stderr, \"الاستخدام: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>lenE<gt>]\\[rs]n\", argv[0]);\n"
653 " exit(EXIT_FAILURE);\n"
654 " }\n"
655 "\\&\n"
656 " if (argc == 3)\n"
657 " res = strcmp(argv[1], argv[2]);\n"
658 " else\n"
659 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
660 "\\&\n"
661 " if (res == 0) {\n"
662 " printf(\"E<lt>str1E<gt> و E<lt>str2E<gt> متساويتان\");\n"
663 " if (argc E<gt> 3)\n"
664 " printf(\" في أول %d بايت\\[rs]n\", atoi(argv[3]));\n"
665 " printf(\"\\[rs]n\");\n"
666 " } else if (res E<lt> 0) {\n"
667 " printf(\"E<lt>str1E<gt> أصغر من E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
668 " } else {\n"
669 " printf(\"E<lt>str1E<gt> أكبر من E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
670 " }\n"
671 "\\&\n"
672 " exit(EXIT_SUCCESS);\n"
673 "}\n"
674
675 #. type: Plain text
676 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
677 msgid ""
678 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
679 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
680 msgstr ""
681 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
682 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
683
684 #. type: TH
685 #: fedora-44 fedora-rawhide
686 #, no-wrap
687 msgid "2024-11-17"
688 msgstr "17 نوفمبر 2024"
689
690 #. type: TH
691 #: fedora-44 fedora-rawhide
692 #, no-wrap
693 msgid "Linux man-pages 6.13"
694 msgstr "صفحات دليل لينكس 6.13"
695
696 #. type: TH
697 #: mageia-cauldron
698 #, no-wrap
699 msgid "2026-02-08"
700 msgstr "8 فبراير 2026"
701
702 #. type: TH
703 #: mageia-cauldron
704 #, no-wrap
705 msgid "Linux man-pages 6.17"
706 msgstr "صفحات دليل لينكس 6.17"
707
708 #. type: TH
709 #: opensuse-leap-16-1 opensuse-tumbleweed
710 #, no-wrap
711 msgid "Linux man-pages (unreleased)"
712 msgstr "صفحات دليل لينكس (لم تصدر بعد)"