Debian Codegraph @

templates/man3/qsort.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "qsort"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
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 "qsort, qsort_r - sort an array"
50 msgstr ""
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 ""
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>stdlib.hE<gt>>\n"
77 msgstr ""
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<void qsort(>size_t n, size_t size;\n"
85 "B< void >I<base>B<[>I<n>B< * >I<size>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
86 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<]))>\n"
87 "B< *>I<compar>B<);>\n"
88 "B<void qsort_r(>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<], void *))>\n"
91 "B< *>I<compar>B<,>\n"
92 "B< void *>I<arg>B<);>\n"
93 msgstr ""
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
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 msgid "B<qsort_r>():"
106 msgstr ""
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 #, no-wrap
112 msgid " _GNU_SOURCE\n"
113 msgstr ""
114
115 #. type: SH
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid "DESCRIPTION"
120 msgstr ""
121
122 #. type: Plain text
123 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
124 #: opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "The B<qsort>() function sorts an array with I<n> elements of size I<size>. "
127 "The I<base> argument points to the start of the array."
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "The contents of the array are sorted in ascending order according to a "
135 "comparison function pointed to by I<compar>, which is called with two "
136 "arguments that point to the objects being compared."
137 msgstr ""
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "The comparison function must return an integer less than, equal to, or "
144 "greater than zero if the first argument is considered to be respectively "
145 "less than, equal to, or greater than the second. If two members compare as "
146 "equal, their order in the sorted array is undefined."
147 msgstr ""
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid ""
153 "The B<qsort_r>() function is identical to B<qsort>() except that the "
154 "comparison function I<compar> takes a third argument. A pointer is passed "
155 "to the comparison function via I<arg>. In this way, the comparison function "
156 "does not need to use global variables to pass through arbitrary arguments, "
157 "and is therefore reentrant and safe to use in threads."
158 msgstr ""
159
160 #. type: SH
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid "RETURN VALUE"
165 msgstr ""
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 "The B<qsort>() and B<qsort_r>() functions return no value."
171 msgstr ""
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
187 #. type: tbl table
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, no-wrap
191 msgid "Interface"
192 msgstr ""
193
194 #. type: tbl table
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "Attribute"
199 msgstr ""
200
201 #. type: tbl table
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 #, no-wrap
205 msgid "Value"
206 msgstr ""
207
208 #. type: tbl table
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid ".na\n"
213 msgstr ""
214
215 #. type: tbl table
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid ".nh\n"
220 msgstr ""
221
222 #. type: tbl table
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid ""
227 "B<qsort>(),\n"
228 "B<qsort_r>()"
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 "Thread safety"
236 msgstr ""
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 "MT-Safe"
243 msgstr ""
244
245 #. type: SH
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid "STANDARDS"
250 msgstr ""
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<qsort>()"
257 msgstr ""
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 "C11, POSIX.1-2008."
263 msgstr ""
264
265 #. type: SH
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "HISTORY"
270 msgstr ""
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 "POSIX.1-2001, C89, SVr4, 4.3BSD."
276 msgstr ""
277
278 #. type: TP
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid "B<qsort_r>()"
283 msgstr ""
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 msgid "glibc 2.8."
289 msgstr ""
290
291 #. type: SH
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 #, no-wrap
295 msgid "NOTES"
296 msgstr ""
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "To compare C strings, the comparison function can call B<strcmp>(3), as "
303 "shown in the example below."
304 msgstr ""
305
306 #. type: SH
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "EXAMPLES"
311 msgstr ""
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 msgid "For one example of use, see the example under B<bsearch>(3)."
317 msgstr ""
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 msgid ""
323 "Another example is the following program, which sorts the strings given in "
324 "its command-line arguments:"
325 msgstr ""
326
327 #. type: Plain text
328 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
329 #: opensuse-tumbleweed
330 #, no-wrap
331 msgid ""
332 "#include E<lt>stdio.hE<gt>\n"
333 "#include E<lt>stdlib.hE<gt>\n"
334 "#include E<lt>string.hE<gt>\n"
335 "\\&\n"
336 "static int\n"
337 "cmpstringp(const void *p1, const void *p2)\n"
338 "{\n"
339 " /* The actual arguments to this function are \"pointers to\n"
340 " pointers to char\", but strcmp(3) arguments are \"pointers\n"
341 " to char\", hence the following cast plus dereference. */\n"
342 "\\&\n"
343 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
344 "}\n"
345 "\\&\n"
346 "int\n"
347 "main(int argc, char *argv[])\n"
348 "{\n"
349 " if (argc E<lt> 2) {\n"
350 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\[rs]n\", argv[0]);\n"
351 " exit(EXIT_FAILURE);\n"
352 " }\n"
353 "\\&\n"
354 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
355 "\\&\n"
356 " for (size_t j = 1; j E<lt> argc; j++)\n"
357 " puts(argv[j]);\n"
358 " exit(EXIT_SUCCESS);\n"
359 "}\n"
360 msgstr ""
361
362 #. SRC END
363 #. type: SH
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "SEE ALSO"
368 msgstr ""
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid "B<sort>(1), B<alphasort>(3), B<strcmp>(3), B<versionsort>(3)"
374 msgstr ""
375
376 #. type: TH
377 #: debian-trixie
378 #, no-wrap
379 msgid "2024-06-15"
380 msgstr ""
381
382 #. type: TH
383 #: debian-trixie
384 #, no-wrap
385 msgid "Linux man-pages 6.9.1"
386 msgstr ""
387
388 #. type: Plain text
389 #: debian-trixie
390 msgid "Standard C library (I<libc>, I<-lc>)"
391 msgstr ""
392
393 #. type: Plain text
394 #: debian-trixie
395 #, no-wrap
396 msgid ""
397 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<nmemb>B<], size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
398 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
399 "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"
400 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<], void *),>\n"
401 "B< void *>I<arg>B<);>\n"
402 msgstr ""
403
404 #. type: Plain text
405 #: debian-trixie
406 msgid ""
407 "The B<qsort>() function sorts an array with I<nmemb> elements of size "
408 "I<size>. The I<base> argument points to the start of the array."
409 msgstr ""
410
411 #. type: Plain text
412 #: debian-trixie fedora-44 fedora-rawhide
413 #, no-wrap
414 msgid ""
415 "#include E<lt>stdio.hE<gt>\n"
416 "#include E<lt>stdlib.hE<gt>\n"
417 "#include E<lt>string.hE<gt>\n"
418 "\\&\n"
419 "static int\n"
420 "cmpstringp(const void *p1, const void *p2)\n"
421 "{\n"
422 " /* The actual arguments to this function are \"pointers to\n"
423 " pointers to char\", but strcmp(3) arguments are \"pointers\n"
424 " to char\", hence the following cast plus dereference. */\n"
425 "\\&\n"
426 " return strcmp(*(const char **) p1, *(const char **) p2);\n"
427 "}\n"
428 "\\&\n"
429 "int\n"
430 "main(int argc, char *argv[])\n"
431 "{\n"
432 " if (argc E<lt> 2) {\n"
433 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>...\\[rs]n\", argv[0]);\n"
434 " exit(EXIT_FAILURE);\n"
435 " }\n"
436 "\\&\n"
437 " qsort(&argv[1], argc - 1, sizeof(char *), cmpstringp);\n"
438 "\\&\n"
439 " for (size_t j = 1; j E<lt> argc; j++)\n"
440 " puts(argv[j]);\n"
441 " exit(EXIT_SUCCESS);\n"
442 "}\n"
443 msgstr ""
444
445 #. type: TH
446 #: fedora-44 fedora-rawhide
447 #, no-wrap
448 msgid "2024-12-13"
449 msgstr ""
450
451 #. type: TH
452 #: fedora-44 fedora-rawhide
453 #, no-wrap
454 msgid "Linux man-pages 6.13"
455 msgstr ""
456
457 #. type: Plain text
458 #: fedora-44 fedora-rawhide
459 #, no-wrap
460 msgid ""
461 "B<void qsort(void >I<base>B<[.>I<size>B< * .>I<n>B<], size_t >I<n>B<, size_t >I<size>B<,>\n"
462 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n"
463 "B< *>I<compar>B<);>\n"
464 "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"
465 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<], void *))>\n"
466 "B< *>I<compar>B<,>\n"
467 "B< void *>I<arg>B<);>\n"
468 msgstr ""
469
470 #. type: TH
471 #: mageia-cauldron
472 #, no-wrap
473 msgid "Linux man-pages 6.17"
474 msgstr ""
475
476 #. type: TH
477 #: opensuse-leap-16-1 opensuse-tumbleweed
478 #, no-wrap
479 msgid "Linux man-pages (unreleased)"
480 msgstr ""