Debian Codegraph @

po/pl/man3/qsort.3.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Przemek Borys <[email protected]>, 1999.
5 # Andrzej Krzysztofowicz <[email protected]>, 2001.
6 # Robert Luberda <[email protected]>, 2014, 2017, 2019.
7 # Michał Kułach <[email protected]>, 2016, 2024, 2025.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-pl\n"
11 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
12 "PO-Revision-Date: 2025-11-30 12:18+0100\n"
13 "Last-Translator: Michał Kułach <[email protected]>\n"
14 "Language-Team: Polish <[email protected]>\n"
15 "Language: pl\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
20 "|| n%100>=20) ? 1 : 2);\n"
21 "X-Generator: Lokalize 25.04.0\n"
22
23 #. type: TH
24 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
25 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
26 #, no-wrap
27 msgid "qsort"
28 msgstr "qsort"
29
30 #. type: TH
31 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
32 #: opensuse-tumbleweed
33 #, no-wrap
34 msgid "2026-02-08"
35 msgstr "8 lutego 2026 r."
36
37 #. type: TH
38 #: archlinux debian-unstable
39 #, no-wrap
40 msgid "Linux man-pages 6.18"
41 msgstr "Linux man-pages 6.18"
42
43 #. type: SH
44 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
45 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
46 #, no-wrap
47 msgid "NAME"
48 msgstr "NAZWA"
49
50 #. type: Plain text
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 msgid "qsort, qsort_r - sort an array"
54 msgstr "qsort, qsort_r - sortuje tablicę"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "BIBLIOTEKA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SKŁADNIA"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
81 msgstr "B<#include E<lt>stdlib.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
85 #: opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<void qsort(>size_t n, size_t size;\n"
89 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
90 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<]))>\n"
91 "B< *>I<compar>B<);>\n"
92 "B<void qsort_r(>size_t n, size_t size;\n"
93 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
94 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<], void *))>\n"
95 "B< *>I<compar>B<,>\n"
96 "B< void *>I<arg>B<);>\n"
97 msgstr ""
98 "B<void qsort(>size_t n, size_t size;\n"
99 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
100 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<]))>\n"
101 "B< *>I<compar>B<);>\n"
102 "B<void qsort_r(>size_t n, size_t size;\n"
103 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
104 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<], void *))>\n"
105 "B< *>I<compar>B<,>\n"
106 "B< void *>I<arg>B<);>\n"
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid ""
112 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
113 msgstr ""
114 "Wymagane ustawienia makr biblioteki glibc (patrz B<feature_test_macros>(7)):"
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid "B<qsort_r>():"
120 msgstr "B<qsort_r>():"
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 #, no-wrap
126 msgid " _GNU_SOURCE\n"
127 msgstr " _GNU_SOURCE\n"
128
129 #. type: SH
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid "DESCRIPTION"
134 msgstr "OPIS"
135
136 #. type: Plain text
137 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
138 #: opensuse-leap-16-1 opensuse-tumbleweed
139 msgid ""
140 "The B<qsort>() function sorts an array with I<n> elements of size I<size>. "
141 "The I<base> argument points to the start of the array."
142 msgstr ""
143 "Funkcja B<qsort>() sortuje tablicę I<n> elementów o rozmiarze I<size>. "
144 "Argument I<base> wskazuje na początek tablicy."
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "The contents of the array are sorted in ascending order according to a "
151 "comparison function pointed to by I<compar>, which is called with two "
152 "arguments that point to the objects being compared."
153 msgstr ""
154 "Zawartość tablicy jest sortowana w porządku rosnącym, zgodnie z funkcją "
155 "porównawczą, określoną przez wskaźnik I<compar>. Funkcja ta jest wołana z "
156 "dwoma argumentami, które wskazują na porównywane obiekty."
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid ""
162 "The comparison function must return an integer less than, equal to, or "
163 "greater than zero if the first argument is considered to be respectively "
164 "less than, equal to, or greater than the second. If two members compare as "
165 "equal, their order in the sorted array is undefined."
166 msgstr ""
167 "Funkcja porównująca musi zwracać liczbę całkowitą, która jest mniejsza, "
168 "równa, lub większa od zera. Oznacza to wtedy, odpowiednio, że pierwszy "
169 "argument jest mniejszy, równy, lub większy od drugiego. Jeśli oba "
170 "porównywane elementy są jednakowe, to ich kolejność w posortowanej tablicy "
171 "jest nieokreślona."
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "The B<qsort_r>() function is identical to B<qsort>() except that the "
178 "comparison function I<compar> takes a third argument. A pointer is passed "
179 "to the comparison function via I<arg>. In this way, the comparison function "
180 "does not need to use global variables to pass through arbitrary arguments, "
181 "and is therefore reentrant and safe to use in threads."
182 msgstr ""
183 "Funkcja B<qsort_r>() jest taka sama jak B<qsort>(), z wyjątkiem tego, że "
184 "funkcja porównująca I<compar> przyjmuje trzeci argument. Wskaźnik podany w "
185 "argumencie I<arg> jest przekazywany do funkcji porównującej. W ten sposób "
186 "funkcja porównująca nie potrzebuje zmiennych globalnych, by przekazywać "
187 "sobie dowolne argumenty i dlatego jest bezpieczna do używana w aplikacji "
188 "wielowątkowej."
189
190 #. type: SH
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 #, no-wrap
194 msgid "RETURN VALUE"
195 msgstr "WARTOŚĆ ZWRACANA"
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 msgid "The B<qsort>() and B<qsort_r>() functions return no value."
201 msgstr "Funkcje B<qsort>() i B<qsort_r>() nic nie zwracają."
202
203 #. type: SH
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, no-wrap
207 msgid "ATTRIBUTES"
208 msgstr "ATRYBUTY"
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "For an explanation of the terms used in this section, see B<attributes>(7)."
215 msgstr ""
216 "Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku "
217 "B<attributes>(7)."
218
219 #. type: tbl table
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid "Interface"
224 msgstr "Interfejs"
225
226 #. type: tbl table
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "Attribute"
231 msgstr "Atrybut"
232
233 #. type: tbl table
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "Value"
238 msgstr "Wartość"
239
240 #. type: tbl table
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid ".na\n"
245 msgstr ".na\n"
246
247 #. type: tbl table
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid ".nh\n"
252 msgstr ".nh\n"
253
254 #. type: tbl table
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid ""
259 "B<qsort>(),\n"
260 "B<qsort_r>()"
261 msgstr ""
262 "B<qsort>(),\n"
263 "B<qsort_r>()"
264
265 #. type: tbl table
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "Thread safety"
270 msgstr "Bezpieczeństwo wątkowe"
271
272 #. type: tbl table
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "MT-Safe"
277 msgstr "MT-bezpieczne"
278
279 #. type: SH
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "STANDARDS"
284 msgstr "STANDARDY"
285
286 #. type: TP
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "B<qsort>()"
291 msgstr "B<qsort>()"
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid "C11, POSIX.1-2008."
297 msgstr "C11, POSIX.1-2008."
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 "HISTORY"
304 msgstr "HISTORIA"
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 "POSIX.1-2001, C89, SVr4, 4.3BSD."
310 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
311
312 #. type: TP
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "B<qsort_r>()"
317 msgstr "B<qsort_r>()"
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 "glibc 2.8."
323 msgstr "glibc 2.8."
324
325 #. type: SH
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "NOTES"
330 msgstr "UWAGI"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid ""
336 "To compare C strings, the comparison function can call B<strcmp>(3), as "
337 "shown in the example below."
338 msgstr ""
339 "Aby porównać łańcuch znaków w stylu C, funkcja porównująca może wywołać "
340 "B<strcmp>(3), tak jak to pokazano w przykładzie poniżej."
341
342 #. type: SH
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "EXAMPLES"
347 msgstr "PRZYKŁADY"
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid "For one example of use, see the example under B<bsearch>(3)."
353 msgstr "Jeden przykład użycia można znaleźć w podręczniku B<bsearch>(3)."
354
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid ""
359 "Another example is the following program, which sorts the strings given in "
360 "its command-line arguments:"
361 msgstr ""
362 "Kolejnym przykładem jest następujący program, sortujący łańcuchy znaków "
363 "podane w argumentach linii poleceń:"
364
365 #. type: Plain text
366 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
367 #: opensuse-tumbleweed
368 #, no-wrap
369 msgid ""
370 "#include E<lt>stdio.hE<gt>\n"
371 "#include E<lt>stdlib.hE<gt>\n"
372 "#include E<lt>string.hE<gt>\n"
373 "\\&\n"
374 "static int\n"
375 "cmpstringp(const void *p1, const void *p2)\n"
376 "{\n"
377 " /* The actual arguments to this function are \"pointers to\n"
378 " pointers to char\", but strcmp(3) arguments are \"pointers\n"
379 " to char\", hence the following cast plus dereference. */\n"
380 "\\&\n"
381 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
382 "}\n"
383 "\\&\n"
384 "int\n"
385 "main(int argc, char *argv[])\n"
386 "{\n"
387 " if (argc E<lt> 2) {\n"
388 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\[rs]n\", argv[0]);\n"
389 " exit(EXIT_FAILURE);\n"
390 " }\n"
391 "\\&\n"
392 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
393 "\\&\n"
394 " for (size_t j = 1; j E<lt> argc; j++)\n"
395 " puts(argv[j]);\n"
396 " exit(EXIT_SUCCESS);\n"
397 "}\n"
398 msgstr ""
399 "#include E<lt>stdio.hE<gt>\n"
400 "#include E<lt>stdlib.hE<gt>\n"
401 "#include E<lt>string.hE<gt>\n"
402 "\\&\n"
403 "static int\n"
404 "cmpstringp(const void *p1, const void *p2)\n"
405 "{\n"
406 " /* Argumentami tej funkcji są \"wskaźniki do wskaźników\n"
407 " na znak\", ale argumentami strcmp(3) są \"wskaźniki na\n"
408 " znak\", dlatego potrzebne jest rzutowanie i dereferencja. */\n"
409 "\\&\n"
410 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
411 "}\n"
412 "\\&\n"
413 "int\n"
414 "main(int argc, char *argv[])\n"
415 "{\n"
416 " if (argc E<lt> 2) {\n"
417 " fprintf(stderr, \"Użycie: %s E<lt>łańcuchE<gt>...\\[rs]n\", argv[0]);\n"
418 " exit(EXIT_FAILURE);\n"
419 " }\n"
420 "\\&\n"
421 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
422 "\\&\n"
423 " for (size_t j = 1; j E<lt> argc; j++)\n"
424 " puts(argv[j]);\n"
425 " exit(EXIT_SUCCESS);\n"
426 "}\n"
427
428 #. SRC END
429 #. type: SH
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "SEE ALSO"
434 msgstr "ZOBACZ TAKŻE"
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid "B<sort>(1), B<alphasort>(3), B<strcmp>(3), B<versionsort>(3)"
440 msgstr "B<sort>(1), B<alphasort>(3), B<strcmp>(3), B<versionsort>(3)"
441
442 #. type: TH
443 #: debian-trixie
444 #, no-wrap
445 msgid "2024-06-15"
446 msgstr "15 czerwca 2024 r."
447
448 #. type: TH
449 #: debian-trixie
450 #, no-wrap
451 msgid "Linux man-pages 6.9.1"
452 msgstr "Linux man-pages 6.9.1"
453
454 #. type: Plain text
455 #: debian-trixie
456 msgid "Standard C library (I<libc>, I<-lc>)"
457 msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)"
458
459 #. type: Plain text
460 #: debian-trixie
461 #, no-wrap
462 msgid ""
463 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
464 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
465 "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"
466 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<], void *),>\n"
467 "B< void *>I<arg>B<);>\n"
468 msgstr ""
469 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
470 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
471 "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"
472 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<], void *),>\n"
473 "B< void *>I<arg>B<);>\n"
474
475 #. type: Plain text
476 #: debian-trixie
477 msgid ""
478 "The B<qsort>() function sorts an array with I<nmemb> elements of size "
479 "I<size>. The I<base> argument points to the start of the array."
480 msgstr ""
481 "Funkcja B<qsort>() sortuje tablicę I<nmemb> elementów o rozmiarze I<size>. "
482 "Argument I<base> wskazuje na początek tablicy."
483
484 #. type: Plain text
485 #: debian-trixie fedora-44 fedora-rawhide
486 #, no-wrap
487 msgid ""
488 "#include E<lt>stdio.hE<gt>\n"
489 "#include E<lt>stdlib.hE<gt>\n"
490 "#include E<lt>string.hE<gt>\n"
491 "\\&\n"
492 "static int\n"
493 "cmpstringp(const void *p1, const void *p2)\n"
494 "{\n"
495 " /* The actual arguments to this function are \"pointers to\n"
496 " pointers to char\", but strcmp(3) arguments are \"pointers\n"
497 " to char\", hence the following cast plus dereference. */\n"
498 "\\&\n"
499 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
500 "}\n"
501 "\\&\n"
502 "int\n"
503 "main(int argc, char *argv[])\n"
504 "{\n"
505 " if (argc E<lt> 2) {\n"
506 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\[rs]n\", argv[0]);\n"
507 " exit(EXIT_FAILURE);\n"
508 " }\n"
509 "\\&\n"
510 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
511 "\\&\n"
512 " for (size_t j = 1; j E<lt> argc; j++)\n"
513 " puts(argv[j]);\n"
514 " exit(EXIT_SUCCESS);\n"
515 "}\n"
516 msgstr ""
517 "#include E<lt>stdio.hE<gt>\n"
518 "#include E<lt>stdlib.hE<gt>\n"
519 "#include E<lt>string.hE<gt>\n"
520 "\\&\n"
521 "static int\n"
522 "cmpstringp(const void *p1, const void *p2)\n"
523 "{\n"
524 " /* Argumentami tej funkcji są \"wskaźniki do wskaźników\n"
525 " na znak\", ale argumentami strcmp(3) są \"wskaźniki na\n"
526 " znak\", dlatego potrzebne jest rzutowanie i dereferencja. */\n"
527 "\\&\n"
528 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
529 "}\n"
530 "\\&\n"
531 "int\n"
532 "main(int argc, char *argv[])\n"
533 "{\n"
534 " if (argc E<lt> 2) {\n"
535 " fprintf(stderr, \"Użycie: %s E<lt>łańcuchE<gt>...\\[rs]n\", argv[0]);\n"
536 " exit(EXIT_FAILURE);\n"
537 " }\n"
538 "\\&\n"
539 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
540 "\\&\n"
541 " for (size_t j = 1; j E<lt> argc; j++)\n"
542 " puts(argv[j]);\n"
543 " exit(EXIT_SUCCESS);\n"
544 "}\n"
545
546 #. type: TH
547 #: fedora-44 fedora-rawhide
548 #, no-wrap
549 msgid "2024-12-13"
550 msgstr "13 grudnia 2024 r."
551
552 #. type: TH
553 #: fedora-44 fedora-rawhide
554 #, no-wrap
555 msgid "Linux man-pages 6.13"
556 msgstr "Linux man-pages 6.13"
557
558 #. type: Plain text
559 #: fedora-44 fedora-rawhide
560 #, no-wrap
561 msgid ""
562 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
563 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n"
564 "B< *>I<compar>B<);>\n"
565 "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"
566 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<], void *))>\n"
567 "B< *>I<compar>B<,>\n"
568 "B< void *>I<arg>B<);>\n"
569 msgstr ""
570 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
571 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n"
572 "B< *>I<compar>B<);>\n"
573 "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"
574 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<], void *))>\n"
575 "B< *>I<compar>B<,>\n"
576 "B< void *>I<arg>B<);>\n"
577
578 #. type: TH
579 #: mageia-cauldron
580 #, no-wrap
581 msgid "Linux man-pages 6.17"
582 msgstr "Linux man-pages 6.17"
583
584 #. type: TH
585 #: opensuse-leap-16-1 opensuse-tumbleweed
586 #, no-wrap
587 msgid "Linux man-pages (unreleased)"
588 msgstr "Linux man-pages (niewydane)"