Debian Codegraph @

po/de/man3/strcpy.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 # Dr. Tobias Quathamer <[email protected]>, 2010-2012.
6 # Helge Kreutzmann <[email protected]>, 2012.
7 # Martin Eberhard Schauer <[email protected]>, 2012.
8 # Mario Blättermann <[email protected]>, 2014, 2021-2023.
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: manpages-l10n 4.30.1\n"
12 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
13 "PO-Revision-Date: 2026-05-01 10:20+0200\n"
14 "Last-Translator: Mario Blättermann <[email protected]>\n"
15 "Language-Team: German <[email protected]>\n"
16 "Language: de\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "X-Generator: Lokalize 23.04.3\n"
21 "Plural-Forms: nplurals=2; plural=n != 1;\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 "strcpy"
28 msgstr "strcpy"
29
30 #. type: TH
31 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
32 #, no-wrap
33 msgid "2026-02-25"
34 msgstr "25. Februar 2026"
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, no-wrap
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.18"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "BEZEICHNUNG"
48
49 #. type: Plain text
50 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "strcpy, strcat - copy or catenate a string"
52 msgstr "strcpy, strcat - eine Zeichenkette kopieren oder verketten"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "BIBLIOTHEK"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "ÜBERSICHT"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>string.hE<gt>>\n"
79 msgstr "B<#include E<lt>string.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
86 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
87 msgstr ""
88 "B<char *strcpy(char *restrict >I<Ziel>B<, const char *restrict >I<Quelle>B<);>\n"
89 "B<char *strcat(char *restrict >I<Ziel>B<, const char *restrict >I<Quelle>B<);>\n"
90
91 #. type: SH
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "DESCRIPTION"
96 msgstr "BESCHREIBUNG"
97
98 #. type: TP
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "B<strcpy>()"
103 msgstr "B<strcpy>()"
104
105 #. type: Plain text
106 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
107 msgid ""
108 "This function copies the string pointed to by I<src>, into a string at the "
109 "buffer pointed to by I<dst>. The programmer is responsible for allocating a "
110 "destination buffer large enough, that is, I<strlen(src) + 1>."
111 msgstr ""
112 "Diese Funktion verkettet die Zeichenkette, auf die I<Quelle> zeigt, in eine "
113 "Zeichenkette am Puffer, auf den I<Ziel> zeigt. Der Programmierer muss selbst "
114 "dafür sorgen, dass der Zielpuffer groß genug ist, was I<strlen(Quelle) + 1> "
115 "bedeutet."
116
117 #. type: Plain text
118 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
119 msgid "It is equivalent to"
120 msgstr "Sie ist gleichbedeutend mit"
121
122 #. type: Plain text
123 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid "stpcpy(dst, src), dst\n"
126 msgstr "stpcpy(Ziel, Quelle), dst\n"
127
128 #. #-#-#-#-# archlinux: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
129 #. type: TP
130 #. #-#-#-#-# debian-trixie: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
131 #. type: TQ
132 #. #-#-#-#-# debian-unstable: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
133 #. type: TP
134 #. #-#-#-#-# fedora-44: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
135 #. type: TQ
136 #. #-#-#-#-# fedora-rawhide: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
137 #. type: TQ
138 #. #-#-#-#-# mageia-cauldron: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
139 #. type: TQ
140 #. #-#-#-#-# opensuse-leap-16-1: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
141 #. type: TP
142 #. #-#-#-#-# opensuse-tumbleweed: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
143 #. type: TP
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, no-wrap
147 msgid "B<strcat>()"
148 msgstr "B<strcat>()"
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "This function catenates the string pointed to by I<src>, after the string "
155 "pointed to by I<dst> (overwriting its terminating null byte). The "
156 "programmer is responsible for allocating a destination buffer large enough, "
157 "that is, I<strlen(dst) + strlen(src) + 1>."
158 msgstr ""
159 "Diese Funktion verkettet die Zeichenkette, auf die I<Quelle> zeigt, nach der "
160 "Zeichenkette, auf die I<Ziel> zeigt, und zwar so, dass deren beendendes Null-"
161 "Byte überschrieben wird. Der Programmierer muss selbst dafür sorgen, dass "
162 "der Zielpuffer groß genug ist, was I<strlen(Ziel) + strlen(Quelle) + 1> "
163 "bedeutet."
164
165 #. type: Plain text
166 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid "stpcpy(strnul(dst), src), dst\n"
169 msgstr "stpcpy(strnul(Ziel), Quelle), dst\n"
170
171 #. type: SH
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 #, no-wrap
175 msgid "RETURN VALUE"
176 msgstr "RÜCKGABEWERT"
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid "These functions return I<dst>."
182 msgstr "Diese Funktionen liefern I<Ziel> zurück."
183
184 #. type: SH
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "ATTRIBUTES"
189 msgstr "ATTRIBUTE"
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "For an explanation of the terms used in this section, see B<attributes>(7)."
196 msgstr ""
197 "Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt "
198 "verwandten Ausdrücke."
199
200 #. type: tbl table
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "Interface"
205 msgstr "Schnittstelle"
206
207 #. type: tbl table
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "Attribute"
212 msgstr "Attribut"
213
214 #. type: tbl table
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, no-wrap
218 msgid "Value"
219 msgstr "Wert"
220
221 #. type: tbl table
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid ".na\n"
226 msgstr ".na\n"
227
228 #. type: tbl table
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid ".nh\n"
233 msgstr ".nh\n"
234
235 #. type: tbl table
236 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid ""
239 "B<strcpy>(),\n"
240 "B<strcat>()"
241 msgstr ""
242 "B<strcpy>(),\n"
243 "B<strcat>()"
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 "Thread safety"
250 msgstr "Multithread-Fähigkeit"
251
252 #. type: tbl table
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "MT-Safe"
257 msgstr "MT-Sicher"
258
259 #. type: SH
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "STANDARDS"
264 msgstr "STANDARDS"
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid "C11, POSIX.1-2008."
270 msgstr "C11, POSIX.1-2008."
271
272 #. type: SH
273 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "HISTORY"
276 msgstr "GESCHICHTE"
277
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
282 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
283
284 #. type: SH
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "CAVEATS"
289 msgstr "WARNUNGEN"
290
291 #. type: Plain text
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 msgid "The strings I<src> and I<dst> may not overlap."
295 msgstr "Die Zeichenketten I<Quelle> und I<Ziel> dürfen sich nicht überlappen."
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 ""
301 "If the destination buffer is not large enough, the behavior is undefined. "
302 "See B<_FORTIFY_SOURCE> in B<feature_test_macros>(7)."
303 msgstr ""
304 "Falls der Zielpuffer nicht groß genug ist, dann ist das Verhalten nicht "
305 "definiert. Siehe B<_FORTIFY_SOURCE> in B<feature_test_macros>(7)."
306
307 #. type: Plain text
308 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
309 #: opensuse-tumbleweed
310 msgid ""
311 "B<strcat>() can be very inefficient. Read about E<.UR https:\\://"
312 "www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the "
313 "painter E<.UE .>"
314 msgstr ""
315 "B<strcat>() kann sehr ineffizient sein. Lesen Sie zum Thema E<.UR https:\\://"
316 "www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the "
317 "painter E<.UE .>"
318
319 #. type: SH
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "EXAMPLES"
324 msgstr "BEISPIELE"
325
326 #. type: Plain text
327 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid ""
330 "#include E<lt>err.hE<gt>\n"
331 "#include E<lt>stdio.hE<gt>\n"
332 "#include E<lt>stdlib.hE<gt>\n"
333 "#include E<lt>string.hE<gt>\n"
334 "\\&\n"
335 "int\n"
336 "main(void)\n"
337 "{\n"
338 " char *buf1;\n"
339 " size_t len, size;\n"
340 "\\&\n"
341 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
342 " buf1 = malloc(sizeof(*buf1) * size);\n"
343 " if (buf1 == NULL)\n"
344 " err(EXIT_FAILURE, \"malloc()\");\n"
345 "\\&\n"
346 " strcpy(buf1, \"Hello \");\n"
347 " strcat(buf1, \"world\");\n"
348 " strcat(buf1, \"!\");\n"
349 " len = strlen(buf1);\n"
350 "\\&\n"
351 " printf(\"[len = %zu]: \", len);\n"
352 " puts(buf1); // \"Hello world!\"\n"
353 " free(buf1);\n"
354 "\\&\n"
355 " exit(EXIT_SUCCESS);\n"
356 "}\n"
357 msgstr ""
358 "#include E<lt>err.hE<gt>\n"
359 "#include E<lt>stdio.hE<gt>\n"
360 "#include E<lt>stdlib.hE<gt>\n"
361 "#include E<lt>string.hE<gt>\n"
362 "\\&\n"
363 "int\n"
364 "main(void)\n"
365 "{\n"
366 " char *buf1;\n"
367 " size_t len, size;\n"
368 "\\&\n"
369 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
370 " buf1 = malloc(sizeof(*buf1) * size);\n"
371 " if (buf1 == NULL)\n"
372 " err(EXIT_FAILURE, \"malloc()\");\n"
373 " buf2 = malloc(sizeof(*buf2) * size);\n"
374 " if (buf2 == NULL)\n"
375 " err(EXIT_FAILURE, \"malloc()\");\n"
376 "\\&\n"
377 " strcpy(buf1, \"Hello \");\n"
378 " strcat(buf1, \"world\");\n"
379 " strcat(buf1, \"!\");\n"
380 " len = strlen(buf1);\n"
381 "\\&\n"
382 " printf(\"[len = %zu]: \", len);\n"
383 " puts(buf1); // \"Hello world!\"\n"
384 " free(buf1);\n"
385 "\\&\n"
386 " exit(EXIT_SUCCESS);\n"
387 "}\n"
388
389 #. SRC END
390 #. type: SH
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "SEE ALSO"
395 msgstr "SIEHE AUCH"
396
397 #. type: Plain text
398 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
399 msgid ""
400 "B<stpcpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
401 msgstr ""
402 "B<stpcpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
403
404 #. type: TH
405 #: debian-trixie
406 #, no-wrap
407 msgid "2024-06-15"
408 msgstr "15. Juni 2024"
409
410 #. type: TH
411 #: debian-trixie
412 #, no-wrap
413 msgid "Linux man-pages 6.9.1"
414 msgstr "Linux man-pages 6.9.1"
415
416 #. type: Plain text
417 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
418 msgid "stpcpy, strcpy, strcat - copy or catenate a string"
419 msgstr "stpcpy, strcpy, strcat - eine Zeichenkette kopieren oder verketten"
420
421 #. type: Plain text
422 #: debian-trixie
423 msgid "Standard C library (I<libc>, I<-lc>)"
424 msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)"
425
426 #. type: Plain text
427 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
428 #, no-wrap
429 msgid ""
430 "B<char *stpcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
431 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
432 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
433 msgstr ""
434 "B<char *stpcpy(char *restrict >I<Ziel>B<, const char *restrict >I<Quelle>B<);>\n"
435 "B<char *strcpy(char *restrict >I<Ziel>B<, const char *restrict >I<Quelle>B<);>\n"
436 "B<char *strcat(char *restrict >I<Ziel>B<, const char *restrict >I<Quelle>B<);>\n"
437
438 #. type: Plain text
439 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
440 msgid ""
441 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
442 msgstr ""
443 "Mit Glibc erforderliche Feature-Test-Makros (siehe "
444 "B<feature_test_macros>(7)):"
445
446 #. type: Plain text
447 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
448 msgid "B<stpcpy>():"
449 msgstr "B<stpcpy>():"
450
451 #. type: Plain text
452 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
453 #, no-wrap
454 msgid ""
455 " Since glibc 2.10:\n"
456 " _POSIX_C_SOURCE E<gt>= 200809L\n"
457 " Before glibc 2.10:\n"
458 " _GNU_SOURCE\n"
459 msgstr ""
460 " Seit Glibc 2.10:\n"
461 " _POSIX_C_SOURCE E<gt>= 200809L\n"
462 " Vor Glibc 2.10:\n"
463 " _GNU_SOURCE\n"
464
465 #. type: TP
466 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
467 #, no-wrap
468 msgid "B<stpcpy>()"
469 msgstr "B<stpcpy>()"
470
471 #. type: Plain text
472 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
473 msgid ""
474 "These functions copy the string pointed to by I<src>, into a string at the "
475 "buffer pointed to by I<dst>. The programmer is responsible for allocating a "
476 "destination buffer large enough, that is, I<strlen(src) + 1>. For the "
477 "difference between the two functions, see RETURN VALUE."
478 msgstr ""
479 "Diese Funktionen verketten die Zeichenkette, auf die I<Quelle> zeigt, in "
480 "eine Zeichenkette am Puffer, auf den I<Ziel> zeigt. Der Programmierer muss "
481 "selbst dafür sorgen, dass der Zielpuffer groß genug ist, was "
482 "I<strlen(Quelle) + 1> bedeutet. Lesen Sie in RÜCKGABEWERT über den "
483 "Unterschied zwischen den beiden Funktionen."
484
485 #. type: Plain text
486 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
487 msgid "An implementation of these functions might be:"
488 msgstr "Eine Implementierung dieser Funktionen könnte wie folgt aussehen:"
489
490 #. type: Plain text
491 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
492 #, no-wrap
493 msgid ""
494 "char *\n"
495 "stpcpy(char *restrict dst, const char *restrict src)\n"
496 "{\n"
497 " char *p;\n"
498 "\\&\n"
499 " p = mempcpy(dst, src, strlen(src));\n"
500 " *p = \\[aq]\\[rs]0\\[aq];\n"
501 "\\&\n"
502 " return p;\n"
503 "}\n"
504 "\\&\n"
505 "char *\n"
506 "strcpy(char *restrict dst, const char *restrict src)\n"
507 "{\n"
508 " stpcpy(dst, src);\n"
509 " return dst;\n"
510 "}\n"
511 "\\&\n"
512 "char *\n"
513 "strcat(char *restrict dst, const char *restrict src)\n"
514 "{\n"
515 " stpcpy(dst + strlen(dst), src);\n"
516 " return dst;\n"
517 "}\n"
518 msgstr ""
519 "char *\n"
520 "stpcpy(char *restrict dst, const char *restrict src)\n"
521 "{\n"
522 " char *p;\n"
523 "\\&\n"
524 " p = mempcpy(dst, src, strlen(src));\n"
525 " *p = \\[aq]\\[rs]0\\[aq];\n"
526 "\\&\n"
527 " return p;\n"
528 "}\n"
529 "\\&\n"
530 "char *\n"
531 "strcpy(char *restrict dst, const char *restrict src)\n"
532 "{\n"
533 " stpcpy(dst, src);\n"
534 " return dst;\n"
535 "}\n"
536 "\\&\n"
537 "char *\n"
538 "strcat(char *restrict dst, const char *restrict src)\n"
539 "{\n"
540 " stpcpy(dst + strlen(dst), src);\n"
541 " return dst;\n"
542 "}\n"
543
544 #. type: Plain text
545 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
546 msgid ""
547 "This function returns a pointer to the terminating null byte of the copied "
548 "string."
549 msgstr ""
550 "Diese Funktionen geben liefern Zeiger auf das beendende Null-Byte der "
551 "kopierten Zeichenkette zurück."
552
553 #. type: tbl table
554 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
555 #, no-wrap
556 msgid ""
557 "B<stpcpy>(),\n"
558 "B<strcpy>(),\n"
559 "B<strcat>()"
560 msgstr ""
561 "B<stpcpy>(),\n"
562 "B<strcpy>(),\n"
563 "B<strcat>()"
564
565 #. type: Plain text
566 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
567 msgid "POSIX.1-2008."
568 msgstr "POSIX.1-2008."
569
570 #. type: Plain text
571 #: debian-trixie fedora-44 fedora-rawhide
572 msgid ""
573 "B<strcat>() can be very inefficient. Read about E<.UR https://"
574 "www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the "
575 "painter E<.UE .>"
576 msgstr ""
577 "B<strcat>() kann sehr ineffizient sein. Lesen Sie zum Thema E<.UR https://"
578 "www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the "
579 "painter E<.UE .>"
580
581 #. type: Plain text
582 #: debian-trixie
583 #, no-wrap
584 msgid ""
585 "#include E<lt>err.hE<gt>\n"
586 "#include E<lt>stdio.hE<gt>\n"
587 "#include E<lt>stdlib.hE<gt>\n"
588 "#include E<lt>string.hE<gt>\n"
589 "\\&\n"
590 "int\n"
591 "main(void)\n"
592 "{\n"
593 " char *p;\n"
594 " char *buf1;\n"
595 " char *buf2;\n"
596 " size_t len, maxsize;\n"
597 "\\&\n"
598 " maxsize = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
599 " buf1 = malloc(sizeof(*buf1) * maxsize);\n"
600 " if (buf1 == NULL)\n"
601 " err(EXIT_FAILURE, \"malloc()\");\n"
602 " buf2 = malloc(sizeof(*buf2) * maxsize);\n"
603 " if (buf2 == NULL)\n"
604 " err(EXIT_FAILURE, \"malloc()\");\n"
605 "\\&\n"
606 " p = buf1;\n"
607 " p = stpcpy(p, \"Hello \");\n"
608 " p = stpcpy(p, \"world\");\n"
609 " p = stpcpy(p, \"!\");\n"
610 " len = p - buf1;\n"
611 "\\&\n"
612 " printf(\"[len = %zu]: \", len);\n"
613 " puts(buf1); // \"Hello world!\"\n"
614 " free(buf1);\n"
615 "\\&\n"
616 " strcpy(buf2, \"Hello \");\n"
617 " strcat(buf2, \"world\");\n"
618 " strcat(buf2, \"!\");\n"
619 " len = strlen(buf2);\n"
620 "\\&\n"
621 " printf(\"[len = %zu]: \", len);\n"
622 " puts(buf2); // \"Hello world!\"\n"
623 " free(buf2);\n"
624 "\\&\n"
625 " exit(EXIT_SUCCESS);\n"
626 "}\n"
627 msgstr ""
628 "#include E<lt>err.hE<gt>\n"
629 "#include E<lt>stdio.hE<gt>\n"
630 "#include E<lt>stdlib.hE<gt>\n"
631 "#include E<lt>string.hE<gt>\n"
632 "\\&\n"
633 "int\n"
634 "main(void)\n"
635 "{\n"
636 " char *p;\n"
637 " char *buf1;\n"
638 " char *buf2;\n"
639 " size_t len, maxsize;\n"
640 "\\&\n"
641 " maxsize = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
642 " buf1 = malloc(sizeof(*buf1) * maxsize);\n"
643 " if (buf1 == NULL)\n"
644 " err(EXIT_FAILURE, \"malloc()\");\n"
645 " buf2 = malloc(sizeof(*buf2) * maxsize);\n"
646 " if (buf2 == NULL)\n"
647 " err(EXIT_FAILURE, \"malloc()\");\n"
648 "\\&\n"
649 " p = buf1;\n"
650 " p = stpcpy(p, \"Hello \");\n"
651 " p = stpcpy(p, \"world\");\n"
652 " p = stpcpy(p, \"!\");\n"
653 " len = p - buf1;\n"
654 "\\&\n"
655 " printf(\"[len = %zu]: \", len);\n"
656 " puts(buf1); // \"Hello world!\"\n"
657 " free(buf1);\n"
658 "\\&\n"
659 " strcpy(buf2, \"Hello \");\n"
660 " strcat(buf2, \"world\");\n"
661 " strcat(buf2, \"!\");\n"
662 " len = strlen(buf2);\n"
663 "\\&\n"
664 " printf(\"[len = %zu]: \", len);\n"
665 " puts(buf2); // \"Hello world!\"\n"
666 " free(buf2);\n"
667 "\\&\n"
668 " exit(EXIT_SUCCESS);\n"
669 "}\n"
670
671 #. type: Plain text
672 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
673 msgid "B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
674 msgstr "B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
675
676 #. type: TH
677 #: fedora-44 fedora-rawhide
678 #, no-wrap
679 msgid "2024-11-17"
680 msgstr "17. November 2024"
681
682 #. type: TH
683 #: fedora-44 fedora-rawhide
684 #, no-wrap
685 msgid "Linux man-pages 6.13"
686 msgstr "Linux man-pages 6.13"
687
688 #. type: Plain text
689 #: fedora-44 fedora-rawhide mageia-cauldron
690 #, no-wrap
691 msgid ""
692 "#include E<lt>err.hE<gt>\n"
693 "#include E<lt>stdio.hE<gt>\n"
694 "#include E<lt>stdlib.hE<gt>\n"
695 "#include E<lt>string.hE<gt>\n"
696 "\\&\n"
697 "int\n"
698 "main(void)\n"
699 "{\n"
700 " char *p;\n"
701 " char *buf1;\n"
702 " char *buf2;\n"
703 " size_t len, size;\n"
704 "\\&\n"
705 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
706 " buf1 = malloc(sizeof(*buf1) * size);\n"
707 " if (buf1 == NULL)\n"
708 " err(EXIT_FAILURE, \"malloc()\");\n"
709 " buf2 = malloc(sizeof(*buf2) * size);\n"
710 " if (buf2 == NULL)\n"
711 " err(EXIT_FAILURE, \"malloc()\");\n"
712 "\\&\n"
713 " p = buf1;\n"
714 " p = stpcpy(p, \"Hello \");\n"
715 " p = stpcpy(p, \"world\");\n"
716 " p = stpcpy(p, \"!\");\n"
717 " len = p - buf1;\n"
718 "\\&\n"
719 " printf(\"[len = %zu]: \", len);\n"
720 " puts(buf1); // \"Hello world!\"\n"
721 " free(buf1);\n"
722 "\\&\n"
723 " strcpy(buf2, \"Hello \");\n"
724 " strcat(buf2, \"world\");\n"
725 " strcat(buf2, \"!\");\n"
726 " len = strlen(buf2);\n"
727 "\\&\n"
728 " printf(\"[len = %zu]: \", len);\n"
729 " puts(buf2); // \"Hello world!\"\n"
730 " free(buf2);\n"
731 "\\&\n"
732 " exit(EXIT_SUCCESS);\n"
733 "}\n"
734 msgstr ""
735 "#include E<lt>err.hE<gt>\n"
736 "#include E<lt>stdio.hE<gt>\n"
737 "#include E<lt>stdlib.hE<gt>\n"
738 "#include E<lt>string.hE<gt>\n"
739 "\\&\n"
740 "int\n"
741 "main(void)\n"
742 "{\n"
743 " char *p;\n"
744 " char *buf1;\n"
745 " char *buf2;\n"
746 " size_t len, size;\n"
747 "\\&\n"
748 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
749 " buf1 = malloc(sizeof(*buf1) * size);\n"
750 " if (buf1 == NULL)\n"
751 " err(EXIT_FAILURE, \"malloc()\");\n"
752 " buf2 = malloc(sizeof(*buf2) * size);\n"
753 " if (buf2 == NULL)\n"
754 " err(EXIT_FAILURE, \"malloc()\");\n"
755 "\\&\n"
756 " p = buf1;\n"
757 " p = stpcpy(p, \"Hello \");\n"
758 " p = stpcpy(p, \"world\");\n"
759 " p = stpcpy(p, \"!\");\n"
760 " len = p - buf1;\n"
761 "\\&\n"
762 " printf(\"[len = %zu]: \", len);\n"
763 " puts(buf1); // \"Hello world!\"\n"
764 " free(buf1);\n"
765 "\\&\n"
766 " strcpy(buf2, \"Hello \");\n"
767 " strcat(buf2, \"world\");\n"
768 " strcat(buf2, \"!\");\n"
769 " len = strlen(buf2);\n"
770 "\\&\n"
771 " printf(\"[len = %zu]: \", len);\n"
772 " puts(buf2); // \"Hello world!\"\n"
773 " free(buf2);\n"
774 "\\&\n"
775 " exit(EXIT_SUCCESS);\n"
776 "}\n"
777
778 #. type: TH
779 #: mageia-cauldron
780 #, no-wrap
781 msgid "2025-12-25"
782 msgstr "25. Dezember 2025"
783
784 #. type: TH
785 #: mageia-cauldron
786 #, no-wrap
787 msgid "Linux man-pages 6.17"
788 msgstr "Linux man-pages 6.17"
789
790 #. type: TH
791 #: opensuse-leap-16-1 opensuse-tumbleweed
792 #, no-wrap
793 msgid "Linux man-pages (unreleased)"
794 msgstr "Linux man-pages (unveröffentlicht)"