Debian Codegraph @

po/de/man3/strcmp.3.po

raw
1 # German translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Markus Schmitt <[email protected]>
5 # Martin Eberhard Schauer <[email protected]>, 2010.
6 # Helge Kreutzmann <[email protected]>, 2020, 2023, 2026.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n 4.30.1\n"
10 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
11 "PO-Revision-Date: 2026-05-03 06:05+0200\n"
12 "Last-Translator: Helge Kreutzmann <[email protected]>\n"
13 "Language-Team: German <[email protected]>\n"
14 "Language: de\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 "strcmp"
24 msgstr "strcmp"
25
26 #. type: TH
27 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-03-16"
30 msgstr "16. März 2026"
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr "Linux man-pages 6.18"
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr "BEZEICHNUNG"
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "strcmp, strncmp - compare two strings"
49 msgstr "strcmp, strncmp - Vergleich zweier Zeichenketten"
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "LIBRARY"
56 msgstr "BIBLIOTHEK"
57
58 #. type: Plain text
59 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
60 #: opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "Standard C library (I<libc>,\\ I<-lc>)"
62 msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr "ÜBERSICHT"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "B<#include E<lt>string.hE<gt>>\n"
76 msgstr "B<#include E<lt>string.hE<gt>>\n"
77
78 #. type: Plain text
79 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
80 #: opensuse-tumbleweed
81 #, no-wrap
82 msgid ""
83 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
84 "B<int strncmp(const char >s1B<[], const char >s2B<[], size_t >nB<);>\n"
85 msgstr ""
86 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
87 "B<int strncmp(const char >s1B<[], const char >s2B<[], size_t >nB<);>\n"
88
89 #. type: SH
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "DESCRIPTION"
94 msgstr "BESCHREIBUNG"
95
96 #. type: TP
97 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
98 #, no-wrap
99 msgid "B<strcmp>()"
100 msgstr "B<strcmp>()"
101
102 #. type: Plain text
103 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "The B<strcmp>() function compares the two strings I<s1> and I<s2>, as if by "
106 "calling B<memcmp>(3)."
107 msgstr ""
108 "Die Funktion B<strcmp>() vergleicht zwei Zeichenketten I<s1> und I<s2>, als "
109 "ob B<memcmp>(3) aufgerufen worden wäre."
110
111 #. type: Plain text
112 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
113 msgid ""
114 "The locale is not taken into account (for a locale-aware comparison, see "
115 "B<strcoll>(3))."
116 msgstr ""
117 "Die Locale wird nicht berücksichtigt (für einen Vergleich, der die Locale "
118 "berücksichtigt, lesen Sie B<strcoll>(3))."
119
120 #. type: Plain text
121 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
122 msgid "It is equivalent to"
123 msgstr "Sie ist gleichbedeutend mit"
124
125 #. type: Plain text
126 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid "memcmp(s1, s2, MIN(strlen(s1),strlen(s2))+1)\n"
129 msgstr "memcmp(s1, s2, MIN(strlen(s1),strlen(s2))+1)\n"
130
131 #. type: TP
132 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "B<strncmp>()"
135 msgstr "B<strncmp>()"
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "The B<strncmp>() function is similar, except it compares only the first (at "
142 "most) I<n> bytes of I<s1> and I<s2>."
143 msgstr ""
144 "Die Funktion B<strncmp>() ist ähnlich. Der Unterschied ist, dass "
145 "B<strncmp>() (höchstens) die ersten I<n> Bytes von I<s1> und I<s2> "
146 "vergleicht."
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 "RÜCKGABEWERT"
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 "Die Funktionen B<strcmp>() und B<strncmp>() geben eine ganze Zahl zurück. "
170 "Die Zahl ist kleiner, gleich oder größer als Null, wenn I<s1> gefunden wurde "
171 "und kleiner, gleich oder größer als I<s2> ist (bzw. die ersten I<n> Byte von "
172 "I<s1>)."
173
174 #. type: SH
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 #, no-wrap
178 msgid "ATTRIBUTES"
179 msgstr "ATTRIBUTE"
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "For an explanation of the terms used in this section, see B<attributes>(7)."
186 msgstr ""
187 "Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt "
188 "verwandten Ausdrücke."
189
190 #. type: tbl table
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 #, no-wrap
194 msgid "Interface"
195 msgstr "Schnittstelle"
196
197 #. type: tbl table
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 #, no-wrap
201 msgid "Attribute"
202 msgstr "Attribut"
203
204 #. type: tbl table
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "Value"
209 msgstr "Wert"
210
211 #. type: tbl table
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid ".na\n"
216 msgstr ".na\n"
217
218 #. type: tbl table
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid ".nh\n"
223 msgstr ".nh\n"
224
225 #. type: tbl table
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid ""
230 "B<strcmp>(),\n"
231 "B<strncmp>()"
232 msgstr ""
233 "B<strcmp>(),\n"
234 "B<strncmp>()"
235
236 #. type: tbl table
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid "Thread safety"
241 msgstr "Multithread-Fähigkeit"
242
243 #. type: tbl table
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "MT-Safe"
248 msgstr "MT-Sicher"
249
250 #. type: SH
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "VERSIONS"
255 msgstr "VERSIONEN"
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 msgid "POSIX.1 specifies only that:"
261 msgstr "POSIX.1 spezifiziert nur, dass:"
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "The sign of a nonzero return value shall be determined by the sign of the "
268 "difference between the values of the first pair of bytes (both interpreted "
269 "as type I<unsigned char>) that differ in the strings being compared."
270 msgstr ""
271 "Das Vorzeichen eines von 0 verschiedenen Rückgabewertes muss durch das "
272 "Vorzeichen des Unterschiedes zwischen den Werten des ersten Byte-Paares, die "
273 "sich in den zu vergleichenden Zeichenketten unterscheiden, bestimmt werden, "
274 "wobei beide Bytes als Typ I<unsigned char> interpretiert werden."
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "In glibc, as in most other implementations, the return value is the "
281 "arithmetic result of subtracting the last compared byte in I<s2> from the "
282 "last compared byte in I<s1>. (If the two characters are equal, this "
283 "difference is 0.)"
284 msgstr ""
285 "In Glibc, wie auch den meisten anderen Implementierungen, ist der "
286 "Rückgabewert das arithmetische Ergebnis der Rechnung, bei der das letzte "
287 "verglichene Byte in I<s2> vom letzten verglichenen Byte in I<s1> abgezogen "
288 "wird. (Falls die zwei Zeichen identisch sind, ist die Differenz 0.)"
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 "STANDARDS"
295 msgstr "STANDARDS"
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 "C11, POSIX.1-2008."
301 msgstr "C11, POSIX.1-2008."
302
303 #. type: SH
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "HISTORY"
308 msgstr "GESCHICHTE"
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 "POSIX.1-2001, C89, SVr4, 4.3BSD."
314 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
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 "EXAMPLES"
321 msgstr "BEISPIELE"
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 "The program below can be used to demonstrate the operation of B<strcmp>() "
328 "(when given two arguments) and B<strncmp>() (when given three arguments). "
329 "First, some examples using B<strcmp>():"
330 msgstr ""
331 "Das nachfolgende Programm kann zur Darstellung der Aktion von B<strcmp>() "
332 "(wenn zwei Argumente übergeben werden) und B<strncmp>() (wenn drei Argumente "
333 "übergeben werden) verwandt werden. Zuerst ein paar Beispiele zum Einsatz von "
334 "B<strcmp>():"
335
336 #. type: Plain text
337 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
338 #: opensuse-tumbleweed
339 #, no-wrap
340 msgid ""
341 "$B< ./string_comp ABC ABC>;\n"
342 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
343 "$B< ./string_comp ABC AB>; # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
344 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
345 "$B< ./string_comp ABA ABZ>; # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
346 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
347 "$B< ./string_comp ABJ ABC>;\n"
348 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
349 "$B< ./string_comp $\\[aq]\\[rs]201\\[aq] A>; # 0201 - 0101 = 0100 (or 64 decimal)\n"
350 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
351 msgstr ""
352 "$B< ./string_comp ABC ABC>;\n"
353 "E<lt>str1E<gt> und E<lt>str2E<gt> sind identisch\n"
354 "$B< ./string_comp ABC AB>; # »C« ist ASCII 67; »C« - »\\[rs]0« = 67\n"
355 "E<lt>str1E<gt> ist größer als E<lt>str2E<gt> (67)\n"
356 "$B< ./string_comp ABA ABZ>; # »A« ist ASCII 65; »Z« ist ASCII 90\n"
357 "E<lt>str1E<gt> ist kleiner als E<lt>str2E<gt> (-25)\n"
358 "$B< ./string_comp ABJ ABC>;\n"
359 "E<lt>str1E<gt> ist größer als E<lt>str2E<gt> (7)\n"
360 "$B< ./string_comp $\\[aq]\\[rs]201\\[aq] A>; # 0201 - 0101 = 0100 (oder 64 dezimal)\n"
361 "E<lt>str1E<gt> ist größer als E<lt>str2E<gt> (64)\n"
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "The last example uses B<bash>(1)-specific syntax to produce a string "
368 "containing an 8-bit ASCII code; the result demonstrates that the string "
369 "comparison uses unsigned characters."
370 msgstr ""
371 "Das letzte Beispiel verwendet eine B<bash>(1)-spezifische Syntax, um eine "
372 "Zeichenkette zu erzeugen, die einen 8-Bit-ASCII-Code enthält; das Ergebnis "
373 "zeigt, dass der Zeichenkettenvergleich vorzeichenlose Zeichen verwendet."
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 msgid "And then some examples using B<strncmp>():"
379 msgstr "Und dann ein paar Beispiele mit B<strncmp>():"
380
381 #. type: Plain text
382 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
383 #: opensuse-tumbleweed
384 #, no-wrap
385 msgid ""
386 "$B< ./string_comp ABC AB 3>;\n"
387 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
388 "$B< ./string_comp ABC AB 2>;\n"
389 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
390 msgstr ""
391 "$B< ./string_comp ABC AB 3>;\n"
392 "E<lt>str1E<gt> ist größer als E<lt>str2E<gt> (67)\n"
393 "$B< ./string_comp ABC AB 2>;\n"
394 "E<lt>str1E<gt> und E<lt>str2E<gt> sind identisch in den ersten 2 Byte\n"
395
396 #. type: SS
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "Program source"
401 msgstr "Programmquelltext"
402
403 #. type: Plain text
404 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
405 #: opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid ""
408 "/* string_comp.c\n"
409 "\\&\n"
410 " Licensed under GNU General Public License v2 or later.\n"
411 "*/\n"
412 "#include E<lt>stdio.hE<gt>\n"
413 "#include E<lt>stdlib.hE<gt>\n"
414 "#include E<lt>string.hE<gt>\n"
415 "\\&\n"
416 "int\n"
417 "main(int argc, char *argv[])\n"
418 "{\n"
419 " int res;\n"
420 "\\&\n"
421 " if (argc E<lt> 3) {\n"
422 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
423 " exit(EXIT_FAILURE);\n"
424 " }\n"
425 "\\&\n"
426 " if (argc == 3)\n"
427 " res = strcmp(argv[1], argv[2]);\n"
428 " else\n"
429 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
430 "\\&\n"
431 " if (res == 0) {\n"
432 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
433 " if (argc E<gt> 3)\n"
434 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
435 " printf(\"\\[rs]n\");\n"
436 " } else if (res E<lt> 0) {\n"
437 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
438 " } else {\n"
439 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
440 " }\n"
441 "\\&\n"
442 " exit(EXIT_SUCCESS);\n"
443 "}\n"
444 msgstr ""
445 "/* string_comp.c\n"
446 "\\&\n"
447 " Lizensiert unter der GNU General Public License v2 oder neuer.\n"
448 "*/\n"
449 "#include E<lt>stdio.hE<gt>\n"
450 "#include E<lt>stdlib.hE<gt>\n"
451 "#include E<lt>string.hE<gt>\n"
452 "\\&\n"
453 "int\n"
454 "main(int argc, char *argv[])\n"
455 "{\n"
456 " int res;\n"
457 "\\&\n"
458 " if (argc E<lt> 3) {\n"
459 " fprintf(stderr, \"Aufruf: %s E<lt>zeichenkette1E<gt> E<lt>zeichenkette2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
460 " exit(EXIT_FAILURE);\n"
461 " }\n"
462 "\\&\n"
463 " if (argc == 3)\n"
464 " res = strcmp(argv[1], argv[2]);\n"
465 " else\n"
466 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
467 "\\&\n"
468 " if (res == 0) {\n"
469 " printf(\"E<lt>zeichenkette1E<gt> und E<lt>zeichenkette2E<gt> sind gleich\");\n"
470 " if (argc E<gt> 3)\n"
471 " printf(\" in den ersten %d byte\\[rs]n\", atoi(argv[3]));\n"
472 " printf(\"\\[rs]n\");\n"
473 " } else if (res E<lt> 0) {\n"
474 " printf(\"E<lt>zeichenkette1E<gt> ist kleiner als E<lt>zeichenkette2E<gt> (%d)\\[rs]n\", res);\n"
475 " } else {\n"
476 " printf(\"E<lt>zeichenkette1E<gt> ist größer als E<lt>zeichenkette2E<gt> (%d)\\[rs]n\", res);\n"
477 " }\n"
478 "\\&\n"
479 " exit(EXIT_SUCCESS);\n"
480 "}\n"
481
482 #. SRC END
483 #. type: SH
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 #, no-wrap
487 msgid "SEE ALSO"
488 msgstr "SIEHE AUCH"
489
490 #. type: Plain text
491 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
492 msgid ""
493 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<streq>(3), B<string>(3), "
494 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
495 msgstr ""
496 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<streq>(3), B<string>(3), "
497 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
498
499 #. type: TH
500 #: debian-trixie
501 #, no-wrap
502 msgid "2024-06-15"
503 msgstr "15. Juni 2024"
504
505 #. type: TH
506 #: debian-trixie
507 #, no-wrap
508 msgid "Linux man-pages 6.9.1"
509 msgstr "Linux man-pages 6.9.1"
510
511 #. type: Plain text
512 #: debian-trixie
513 msgid "Standard C library (I<libc>, I<-lc>)"
514 msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)"
515
516 #. type: Plain text
517 #: debian-trixie fedora-44 fedora-rawhide
518 #, no-wrap
519 msgid ""
520 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
521 "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"
522 msgstr ""
523 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
524 "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"
525
526 #. type: Plain text
527 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
528 msgid ""
529 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. The "
530 "locale is not taken into account (for a locale-aware comparison, see "
531 "B<strcoll>(3)). The comparison is done using unsigned characters."
532 msgstr ""
533 "Die Funktion B<strcmp>() vergleicht die beiden Zeichenketten I<s1> und I<s2> "
534 "miteinander. Die Locale wird nicht berücksichtigt (für eine Locale-"
535 "berücksichtigende Vergleichsfunktion siehe B<strcoll>(3)). Der Vergleich "
536 "erfolgt mittels Zeichen (»character«) ohne Vorzeichen."
537
538 #. type: Plain text
539 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
540 msgid ""
541 "B<strcmp>() returns an integer indicating the result of the comparison, as "
542 "follows:"
543 msgstr ""
544 "B<strcmp>() liefert eine Ganzzahl zurück, die das Ergebnis des Vergleichs "
545 "wie folgt anzeigt:"
546
547 #. type: IP
548 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
549 #, no-wrap
550 msgid "\\[bu]"
551 msgstr "\\[bu]"
552
553 #. type: Plain text
554 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
555 msgid "0, if the I<s1> and I<s2> are equal;"
556 msgstr "0, falls I<s1> und I<s2> identisch sind;"
557
558 #. type: Plain text
559 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
560 msgid "a negative value if I<s1> is less than I<s2>;"
561 msgstr "ein negativer Wert, falls I<s1> kleiner als I<s2> ist;"
562
563 #. type: Plain text
564 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
565 msgid "a positive value if I<s1> is greater than I<s2>."
566 msgstr "ein positiver Wert, falls I<s1> größer als I<s2> ist."
567
568 #. type: Plain text
569 #: debian-trixie fedora-44 fedora-rawhide
570 #, no-wrap
571 msgid ""
572 "$ B<./string_comp ABC ABC>\n"
573 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
574 "$ B<./string_comp ABC AB> # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
575 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
576 "$ B<./string_comp ABA ABZ> # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
577 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
578 "$ B<./string_comp ABJ ABC>\n"
579 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
580 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (or 64 decimal)\n"
581 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
582 msgstr ""
583 "$ B<./string_comp ABC ABC>\n"
584 "E<lt>str1E<gt> und E<lt>str2E<gt> sind identisch\n"
585 "$ B<./string_comp ABC AB> # »C« ist ASCII 67; »C« - »\\[rs]0« = 67\n"
586 "E<lt>str1E<gt> ist größer als E<lt>str2E<gt> (67)\n"
587 "$ B<./string_comp ABA ABZ> # »A« ist ASCII 65; »Z« ist ASCII 90\n"
588 "E<lt>str1E<gt> ist kleiner als E<lt>str2E<gt> (-25)\n"
589 "$ B<./string_comp ABJ ABC>\n"
590 "E<lt>str1E<gt> ist größer als E<lt>str2E<gt> (7)\n"
591 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (oder 64 dezimal)\n"
592 "E<lt>str1E<gt> ist größer als E<lt>str2E<gt> (64)\n"
593
594 #. type: Plain text
595 #: debian-trixie fedora-44 fedora-rawhide
596 #, no-wrap
597 msgid ""
598 "$ B<./string_comp ABC AB 3>\n"
599 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
600 "$ B<./string_comp ABC AB 2>\n"
601 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
602 msgstr ""
603 "$ B<./string_comp ABC AB 3>\n"
604 "E<lt>str1E<gt> ist größer als E<lt>str2E<gt> (67)\n"
605 "$ B<./string_comp ABC AB 2>\n"
606 "E<lt>str1E<gt> und E<lt>str2E<gt> sind identisch in den ersten 2 Byte\n"
607
608 #. type: Plain text
609 #: debian-trixie
610 #, no-wrap
611 msgid ""
612 "/* string_comp.c\n"
613 "\\&\n"
614 " Licensed under GNU General Public License v2 or later.\n"
615 "*/\n"
616 "#include E<lt>stdio.hE<gt>\n"
617 "#include E<lt>stdlib.hE<gt>\n"
618 "#include E<lt>string.hE<gt>\n"
619 "\\&\n"
620 "int\n"
621 "main(int argc, char *argv[])\n"
622 "{\n"
623 " int res;\n"
624 "\\&\n"
625 " if (argc E<lt> 3) {\n"
626 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>lenE<gt>]\\[rs]n\", argv[0]);\n"
627 " exit(EXIT_FAILURE);\n"
628 " }\n"
629 "\\&\n"
630 " if (argc == 3)\n"
631 " res = strcmp(argv[1], argv[2]);\n"
632 " else\n"
633 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
634 "\\&\n"
635 " if (res == 0) {\n"
636 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
637 " if (argc E<gt> 3)\n"
638 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
639 " printf(\"\\[rs]n\");\n"
640 " } else if (res E<lt> 0) {\n"
641 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
642 " } else {\n"
643 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
644 " }\n"
645 "\\&\n"
646 " exit(EXIT_SUCCESS);\n"
647 "}\n"
648 msgstr ""
649 "/* string_comp.c\n"
650 "\\&\n"
651 " Lizensiert unter der GNU General Public License v2 oder neuer.\n"
652 "*/\n"
653 "#include E<lt>stdio.hE<gt>\n"
654 "#include E<lt>stdlib.hE<gt>\n"
655 "#include E<lt>string.hE<gt>\n"
656 "\\&\n"
657 "int\n"
658 "main(int argc, char *argv[])\n"
659 "{\n"
660 " int res;\n"
661 "\\&\n"
662 " if (argc E<lt> 3) {\n"
663 " fprintf(stderr, \"Aufruf: %s E<lt>zeichenkette1E<gt> E<lt>zeichenkette2E<gt> [E<lt>länE<gt>]\\[rs]n\", argv[0]);\n"
664 " exit(EXIT_FAILURE);\n"
665 " }\n"
666 "\\&\n"
667 " if (argc == 3)\n"
668 " res = strcmp(argv[1], argv[2]);\n"
669 " else\n"
670 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
671 "\\&\n"
672 " if (res == 0) {\n"
673 " printf(\"E<lt>zeichenkette1E<gt> und E<lt>zeichenkette2E<gt> sind gleich\");\n"
674 " if (argc E<gt> 3)\n"
675 " printf(\" in den ersten %d byte\\[rs]n\", atoi(argv[3]));\n"
676 " printf(\"\\[rs]n\");\n"
677 " } else if (res E<lt> 0) {\n"
678 " printf(\"E<lt>zeichenkette1E<gt> ist kleiner als E<lt>zeichenkette2E<gt> (%d)\\[rs]n\", res);\n"
679 " } else {\n"
680 " printf(\"E<lt>zeichenkette1E<gt> ist größer als E<lt>zeichenkette2E<gt> (%d)\\[rs]n\", res);\n"
681 " }\n"
682 "\\&\n"
683 " exit(EXIT_SUCCESS);\n"
684 "}\n"
685
686 #. type: Plain text
687 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
688 msgid ""
689 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
690 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
691 msgstr ""
692 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
693 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
694
695 #. type: TH
696 #: fedora-44 fedora-rawhide
697 #, no-wrap
698 msgid "2024-11-17"
699 msgstr "17. November 2024"
700
701 #. type: TH
702 #: fedora-44 fedora-rawhide
703 #, no-wrap
704 msgid "Linux man-pages 6.13"
705 msgstr "Linux man-pages 6.13"
706
707 #. type: TH
708 #: mageia-cauldron
709 #, no-wrap
710 msgid "2026-02-08"
711 msgstr "8. Februar 2026"
712
713 #. type: TH
714 #: mageia-cauldron
715 #, no-wrap
716 msgid "Linux man-pages 6.17"
717 msgstr "Linux man-pages 6.17"
718
719 #. type: TH
720 #: opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid "Linux man-pages (unreleased)"
723 msgstr "Linux man-pages (unveröffentlicht)"