Debian Codegraph @

po/ar/man3/qsort.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:39+0200\n"
9 "PO-Revision-Date: 2026-06-03 18:00+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 "qsort"
25 msgstr "qsort"
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 "qsort, qsort_r - sort an array"
51 msgstr "qsort, qsort_r - ترتيب مصفوفة"
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-unstable mageia-cauldron opensuse-leap-16-1
82 #: opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<void qsort(>size_t n, size_t size;\n"
86 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
87 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<]))>\n"
88 "B< *>I<compar>B<);>\n"
89 "B<void qsort_r(>size_t n, size_t size;\n"
90 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
91 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<], void *))>\n"
92 "B< *>I<compar>B<,>\n"
93 "B< void *>I<arg>B<);>\n"
94 msgstr ""
95 "B<void qsort(>size_t n, size_t size;\n"
96 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
97 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<]))>\n"
98 "B< *>I<compar>B<);>\n"
99 "B<void qsort_r(>size_t n, size_t size;\n"
100 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
101 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<], void *))>\n"
102 "B< *>I<compar>B<,>\n"
103 "B< void *>I<arg>B<);>\n"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
110 msgstr ""
111 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid "B<qsort_r>():"
117 msgstr "B<qsort_r>():"
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 #, no-wrap
123 msgid " _GNU_SOURCE\n"
124 msgstr " _GNU_SOURCE\n"
125
126 #. type: SH
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 #, no-wrap
130 msgid "DESCRIPTION"
131 msgstr "الوصف"
132
133 #. type: Plain text
134 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
135 #: opensuse-leap-16-1 opensuse-tumbleweed
136 msgid ""
137 "The B<qsort>() function sorts an array with I<n> elements of size I<size>. "
138 "The I<base> argument points to the start of the array."
139 msgstr ""
140 "الدالة B<qsort>() ترتب مصفوفة تحتوي على I<n> عنصر بحجم I<size>. المعامل "
141 "I<base> يشير إلى بداية المصفوفة."
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 msgid ""
147 "The contents of the array are sorted in ascending order according to a "
148 "comparison function pointed to by I<compar>, which is called with two "
149 "arguments that point to the objects being compared."
150 msgstr ""
151 "تُرتب محتويات المصفوفة بترتيب تصاعدي وفقًا لدالة مقارنة يشير إليها I<compar>، "
152 "والتي تُستدعى بمعاملين يشيران إلى الكائنات الجاري مقارنتها."
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "The comparison function must return an integer less than, equal to, or "
159 "greater than zero if the first argument is considered to be respectively "
160 "less than, equal to, or greater than the second. If two members compare as "
161 "equal, their order in the sorted array is undefined."
162 msgstr ""
163 "يجب أن تُرجع دالة المقارنة عددًا صحيحًا أقل من الصفر أو مساويًا له أو أكبر منه "
164 "إذا كان المعامل الأول يُعتبر على التوالي أقل من الثاني أو مساويًا له أو أكبر "
165 "منه. إذا تساوى عضوان في المقارنة، فإن ترتيبهما في المصفوفة المرتبة غير محدد."
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "The B<qsort_r>() function is identical to B<qsort>() except that the "
172 "comparison function I<compar> takes a third argument. A pointer is passed "
173 "to the comparison function via I<arg>. In this way, the comparison function "
174 "does not need to use global variables to pass through arbitrary arguments, "
175 "and is therefore reentrant and safe to use in threads."
176 msgstr ""
177 "الدالة B<qsort_r>() مطابقة لـ B<qsort>() باستثناء أن دالة المقارنة "
178 "I<compar> تأخذ معاملًا ثالثًا. يُمرر مؤشر إلى دالة المقارنة عبر I<arg>. بهذه "
179 "الطريقة، لا تحتاج دالة المقارنة إلى استخدام متغيرات عامة لتمرير معاملات "
180 "عشوائية، وبالتالي فهي قابلة لإعادة الدخول وآمنة للاستخدام في الخيوط."
181
182 #. type: SH
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, no-wrap
186 msgid "RETURN VALUE"
187 msgstr "قيمة الإرجاع"
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid "The B<qsort>() and B<qsort_r>() functions return no value."
193 msgstr "الدالتان B<qsort>() و B<qsort_r>() لا تُرجعان أي قيمة."
194
195 #. type: SH
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 #, no-wrap
199 msgid "ATTRIBUTES"
200 msgstr "السمات"
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 msgid ""
206 "For an explanation of the terms used in this section, see B<attributes>(7)."
207 msgstr ""
208 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
209
210 #. type: tbl table
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid "Interface"
215 msgstr "الواجهة"
216
217 #. type: tbl table
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid "Attribute"
222 msgstr "السمة"
223
224 #. type: tbl table
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "Value"
229 msgstr "القيمة"
230
231 #. type: tbl table
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid ".na\n"
236 msgstr ".na\n"
237
238 #. type: tbl table
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid ".nh\n"
243 msgstr ".nh\n"
244
245 #. type: tbl table
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid ""
250 "B<qsort>(),\n"
251 "B<qsort_r>()"
252 msgstr ""
253 "B<qsort>(),\n"
254 "B<qsort_r>()"
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 "Thread safety"
261 msgstr "سلامة الخيوط"
262
263 #. type: tbl table
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "MT-Safe"
268 msgstr "MT-Safe"
269
270 #. type: SH
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "STANDARDS"
275 msgstr "المعايير"
276
277 #. type: TP
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "B<qsort>()"
282 msgstr "B<qsort>()"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid "C11, POSIX.1-2008."
288 msgstr "C11, POSIX.1-2008."
289
290 #. type: SH
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "HISTORY"
295 msgstr "التاريخ"
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
301 msgstr "POSIX.1-2001، C89، SVr4، 4.3BSD."
302
303 #. type: TP
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "B<qsort_r>()"
308 msgstr "B<qsort_r>()"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid "glibc 2.8."
314 msgstr "glibc 2.8."
315
316 #. type: SH
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "NOTES"
321 msgstr "ملاحظات"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "To compare C strings, the comparison function can call B<strcmp>(3), as "
328 "shown in the example below."
329 msgstr ""
330 "لمقارنة سلاسل محارف C، يمكن لدالة المقارنة استدعاء B<strcmp>(3)، كما هو موضح "
331 "في المثال أدناه."
332
333 #. type: SH
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, no-wrap
337 msgid "EXAMPLES"
338 msgstr "أمثلة"
339
340 #. type: Plain text
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 msgid "For one example of use, see the example under B<bsearch>(3)."
344 msgstr "لمثال على الاستخدام، انظر المثال تحت B<bsearch>(3)."
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid ""
350 "Another example is the following program, which sorts the strings given in "
351 "its command-line arguments:"
352 msgstr ""
353 "مثال آخر هو البرنامج التالي، الذي يرتب السلاسل المحرفية المعطاة في معاملات "
354 "سطر الأوامر:"
355
356 #. type: Plain text
357 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
358 #: opensuse-tumbleweed
359 #, no-wrap
360 msgid ""
361 "#include E<lt>stdio.hE<gt>\n"
362 "#include E<lt>stdlib.hE<gt>\n"
363 "#include E<lt>string.hE<gt>\n"
364 "\\&\n"
365 "static int\n"
366 "cmpstringp(const void *p1, const void *p2)\n"
367 "{\n"
368 " /* The actual arguments to this function are \"pointers to\n"
369 " pointers to char\", but strcmp(3) arguments are \"pointers\n"
370 " to char\", hence the following cast plus dereference. */\n"
371 "\\&\n"
372 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
373 "}\n"
374 "\\&\n"
375 "int\n"
376 "main(int argc, char *argv[])\n"
377 "{\n"
378 " if (argc E<lt> 2) {\n"
379 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\[rs]n\", argv[0]);\n"
380 " exit(EXIT_FAILURE);\n"
381 " }\n"
382 "\\&\n"
383 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
384 "\\&\n"
385 " for (size_t j = 1; j E<lt> argc; j++)\n"
386 " puts(argv[j]);\n"
387 " exit(EXIT_SUCCESS);\n"
388 "}\n"
389 msgstr ""
390 "#include E<lt>stdio.hE<gt>\n"
391 "#include E<lt>stdlib.hE<gt>\n"
392 "#include E<lt>string.hE<gt>\n"
393 "\\&\n"
394 "static int\n"
395 "cmpstringp(const void *p1, const void *p2)\n"
396 "{\n"
397 " /* المعاملات الفعلية لهذه الدالة هي \"مؤشرات إلى\n"
398 " مؤشرات إلى char\"، لكن معاملات strcmp(3) هي \"مؤشرات\n"
399 " إلى char\"، ومن هنا جاء التحويل التالي مع إلغاء الإشارة. */\n"
400 "\\&\n"
401 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
402 "}\n"
403 "\\&\n"
404 "int\n"
405 "main(int argc, char *argv[])\n"
406 "{\n"
407 " if (argc E<lt> 2) {\n"
408 " fprintf(stderr, \"الاستخدام: %s E<lt>سلسلةE<gt>...\\[rs]n\", argv[0]);\n"
409 " exit(EXIT_FAILURE);\n"
410 " }\n"
411 "\\&\n"
412 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
413 "\\&\n"
414 " for (size_t j = 1; j E<lt> argc; j++)\n"
415 " puts(argv[j]);\n"
416 " exit(EXIT_SUCCESS);\n"
417 "}\n"
418
419 #. SRC END
420 #. type: SH
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 #, no-wrap
424 msgid "SEE ALSO"
425 msgstr "انظر أيضًا"
426
427 #. type: Plain text
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 msgid "B<sort>(1), B<alphasort>(3), B<strcmp>(3), B<versionsort>(3)"
431 msgstr "B<sort>(1), B<alphasort>(3), B<strcmp>(3), B<versionsort>(3)"
432
433 #. type: TH
434 #: debian-trixie
435 #, no-wrap
436 msgid "2024-06-15"
437 msgstr "15 يونيو 2024"
438
439 #. type: TH
440 #: debian-trixie
441 #, no-wrap
442 msgid "Linux man-pages 6.9.1"
443 msgstr "صفحات دليل لينكس 6.9.1"
444
445 #. type: Plain text
446 #: debian-trixie
447 msgid "Standard C library (I<libc>, I<-lc>)"
448 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
449
450 #. type: Plain text
451 #: debian-trixie
452 #, no-wrap
453 msgid ""
454 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
455 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
456 "B<void qsort_r(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
457 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<], void *),>\n"
458 "B< void *>I<arg>B<);>\n"
459 msgstr ""
460 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
461 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
462 "B<void qsort_r(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
463 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<], void *),>\n"
464 "B< void *>I<arg>B<);>\n"
465
466 #. type: Plain text
467 #: debian-trixie
468 msgid ""
469 "The B<qsort>() function sorts an array with I<nmemb> elements of size "
470 "I<size>. The I<base> argument points to the start of the array."
471 msgstr ""
472 "الدالة B<qsort>() ترتب مصفوفة تحتوي على I<nmemb> عنصر بحجم I<size>. "
473 "المعامل I<base> يشير إلى بداية المصفوفة."
474
475 #. type: Plain text
476 #: debian-trixie fedora-44 fedora-rawhide
477 #, no-wrap
478 msgid ""
479 "#include E<lt>stdio.hE<gt>\n"
480 "#include E<lt>stdlib.hE<gt>\n"
481 "#include E<lt>string.hE<gt>\n"
482 "\\&\n"
483 "static int\n"
484 "cmpstringp(const void *p1, const void *p2)\n"
485 "{\n"
486 " /* The actual arguments to this function are \"pointers to\n"
487 " pointers to char\", but strcmp(3) arguments are \"pointers\n"
488 " to char\", hence the following cast plus dereference. */\n"
489 "\\&\n"
490 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
491 "}\n"
492 "\\&\n"
493 "int\n"
494 "main(int argc, char *argv[])\n"
495 "{\n"
496 " if (argc E<lt> 2) {\n"
497 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\[rs]n\", argv[0]);\n"
498 " exit(EXIT_FAILURE);\n"
499 " }\n"
500 "\\&\n"
501 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
502 "\\&\n"
503 " for (size_t j = 1; j E<lt> argc; j++)\n"
504 " puts(argv[j]);\n"
505 " exit(EXIT_SUCCESS);\n"
506 "}\n"
507 msgstr ""
508 "#include E<lt>stdio.hE<gt>\n"
509 "#include E<lt>stdlib.hE<gt>\n"
510 "#include E<lt>string.hE<gt>\n"
511 "\\&\n"
512 "static int\n"
513 "cmpstringp(const void *p1, const void *p2)\n"
514 "{\n"
515 " /* المعاملات الفعلية لهذه الدالة هي \"مؤشرات إلى\n"
516 " مؤشرات إلى char\"، لكن معاملات strcmp(3) هي \"مؤشرات\n"
517 " إلى char\"، ومن هنا جاء التحويل التالي مع إلغاء الإشارة. */\n"
518 "\\&\n"
519 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
520 "}\n"
521 "\\&\n"
522 "int\n"
523 "main(int argc, char *argv[])\n"
524 "{\n"
525 " if (argc E<lt> 2) {\n"
526 " fprintf(stderr, \"الاستخدام: %s E<lt>سلسلةE<gt>...\\[rs]n\", argv[0]);\n"
527 " exit(EXIT_FAILURE);\n"
528 " }\n"
529 "\\&\n"
530 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
531 "\\&\n"
532 " for (size_t j = 1; j E<lt> argc; j++)\n"
533 " puts(argv[j]);\n"
534 " exit(EXIT_SUCCESS);\n"
535 "}\n"
536
537 #. type: TH
538 #: fedora-44 fedora-rawhide
539 #, no-wrap
540 msgid "2024-12-13"
541 msgstr "13 ديسمبر 2024"
542
543 #. type: TH
544 #: fedora-44 fedora-rawhide
545 #, no-wrap
546 msgid "Linux man-pages 6.13"
547 msgstr "صفحات دليل لينكس 6.13"
548
549 #. type: Plain text
550 #: fedora-44 fedora-rawhide
551 #, no-wrap
552 msgid ""
553 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
554 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n"
555 "B< *>I<compar>B<);>\n"
556 "B<void qsort_r(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
557 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<], void *))>\n"
558 "B< *>I<compar>B<,>\n"
559 "B< void *>I<arg>B<);>\n"
560 msgstr ""
561 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
562 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n"
563 "B< *>I<compar>B<);>\n"
564 "B<void qsort_r(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
565 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<], void *))>\n"
566 "B< *>I<compar>B<,>\n"
567 "B< void *>I<arg>B<);>\n"
568
569 #. type: TH
570 #: mageia-cauldron
571 #, no-wrap
572 msgid "Linux man-pages 6.17"
573 msgstr "صفحات دليل لينكس 6.17"
574
575 #. type: TH
576 #: opensuse-leap-16-1 opensuse-tumbleweed
577 #, no-wrap
578 msgid "Linux man-pages (unreleased)"
579 msgstr "صفحات دليل لينكس (لم تصدر بعد)"