Debian Codegraph @

po/pl/man3/strcpy.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 # Jarosław Beczek <[email protected]>, 2000.
5 # Robert Luberda <[email protected]>, 2014, 2017, 2019.
6 # Michał Kułach <[email protected]>, 2014, 2016, 2024, 2025, 2026.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-pl\n"
10 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
11 "PO-Revision-Date: 2026-06-22 21:43+0200\n"
12 "Last-Translator: Michał Kułach <[email protected]>\n"
13 "Language-Team: Polish <[email protected]>\n"
14 "Language: pl\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
19 "|| n%100>=20) ? 1 : 2);\n"
20 "X-Generator: Lokalize 25.04.0\n"
21
22 #. type: TH
23 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
24 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
25 #, no-wrap
26 msgid "strcpy"
27 msgstr "strcpy"
28
29 #. type: TH
30 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-25"
33 msgstr "25 lutego 2026 r."
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, no-wrap
38 msgid "Linux man-pages 6.18"
39 msgstr "Linux man-pages 6.18"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NAZWA"
47
48 #. type: Plain text
49 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "strcpy, strcat - copy or catenate a string"
51 msgstr "strcpy, strcat - kopiuje lub łączy łańcuch znaków"
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 "BIBLIOTEKA"
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 "Standardowa biblioteka C (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 "SKŁADNIA"
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>string.hE<gt>>\n"
78 msgstr "B<#include E<lt>string.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
85 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
86 msgstr ""
87 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
88 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "DESCRIPTION"
95 msgstr "OPIS"
96
97 #. type: TP
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid "B<strcpy>()"
102 msgstr "B<strcpy>()"
103
104 #. type: Plain text
105 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
106 msgid ""
107 "This function copies the string pointed to by I<src>, into a string at the "
108 "buffer pointed to by I<dst>. The programmer is responsible for allocating a "
109 "destination buffer large enough, that is, I<strlen(src) + 1>."
110 msgstr ""
111 "Funkcja kopiuje łańcuch, na który wskazuje I<src>, do łańcucha w buforze, na "
112 "który wskazuje I<dst>. To programista jest odpowiedzialny za alokację "
113 "odpowiednio dużego bufora docelowego tj. I<strlen(src) + 1>."
114
115 #. type: Plain text
116 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
117 msgid "It is equivalent to"
118 msgstr "Jest to równoznaczne z"
119
120 #. type: Plain text
121 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
122 #, no-wrap
123 msgid "stpcpy(dst, src), dst\n"
124 msgstr "stpcpy(dst, src), dst\n"
125
126 #. #-#-#-#-# archlinux: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
127 #. type: TP
128 #. #-#-#-#-# debian-trixie: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
129 #. type: TQ
130 #. #-#-#-#-# debian-unstable: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
131 #. type: TP
132 #. #-#-#-#-# fedora-44: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
133 #. type: TQ
134 #. #-#-#-#-# fedora-rawhide: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
135 #. type: TQ
136 #. #-#-#-#-# mageia-cauldron: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
137 #. type: TQ
138 #. #-#-#-#-# opensuse-leap-16-1: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
139 #. type: TP
140 #. #-#-#-#-# opensuse-tumbleweed: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
141 #. type: TP
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 #, no-wrap
145 msgid "B<strcat>()"
146 msgstr "B<strcat>()"
147
148 #. type: Plain text
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 msgid ""
152 "This function catenates the string pointed to by I<src>, after the string "
153 "pointed to by I<dst> (overwriting its terminating null byte). The "
154 "programmer is responsible for allocating a destination buffer large enough, "
155 "that is, I<strlen(dst) + strlen(src) + 1>."
156 msgstr ""
157 "Funkcja dołącza łańcuch, na który wskazuje I<src>, po łańcuchu, na który "
158 "wskazuje I<dst> (nadpisując jego końcowy bajt null). To programista jest "
159 "odpowiedzialny za alokację odpowiednio dużego bufora docelowego, tj. "
160 "I<strlen(dst) + strlen(src) + 1>."
161
162 #. type: Plain text
163 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
164 #, no-wrap
165 msgid "stpcpy(strnul(dst), src), dst\n"
166 msgstr "stpcpy(strnul(dst), src), dst\n"
167
168 #. type: SH
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "RETURN VALUE"
173 msgstr "WARTOŚĆ ZWRACANA"
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid "These functions return I<dst>."
179 msgstr "Funkcje te zwracają I<dst>."
180
181 #. type: SH
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "ATTRIBUTES"
186 msgstr "ATRYBUTY"
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "For an explanation of the terms used in this section, see B<attributes>(7)."
193 msgstr ""
194 "Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku "
195 "B<attributes>(7)."
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 "Interface"
202 msgstr "Interfejs"
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 "Attribute"
209 msgstr "Atrybut"
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 "Value"
216 msgstr "Wartość"
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 ".na\n"
223 msgstr ".na\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 ".nh\n"
230 msgstr ".nh\n"
231
232 #. type: tbl table
233 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid ""
236 "B<strcpy>(),\n"
237 "B<strcat>()"
238 msgstr ""
239 "B<strcpy>(),\n"
240 "B<strcat>()"
241
242 #. type: tbl table
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "Thread safety"
247 msgstr "Bezpieczeństwo wątkowe"
248
249 #. type: tbl table
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "MT-Safe"
254 msgstr "MT-bezpieczne"
255
256 #. type: SH
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "STANDARDS"
261 msgstr "STANDARDY"
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 "C11, POSIX.1-2008."
267 msgstr "C11, POSIX.1-2008."
268
269 #. type: SH
270 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "HISTORY"
273 msgstr "HISTORIA"
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
279 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
280
281 #. type: SH
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "CAVEATS"
286 msgstr "ZASTRZEŻENIA"
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid "The strings I<src> and I<dst> may not overlap."
292 msgstr "Łańcuchy I<src> i I<dst> nie mogą na siebie nachodzić."
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid ""
298 "If the destination buffer is not large enough, the behavior is undefined. "
299 "See B<_FORTIFY_SOURCE> in B<feature_test_macros>(7)."
300 msgstr ""
301 "Jeśli bufor docelowy nie jest wystarczającą duży, zachowanie jest "
302 "niezdefiniowane. Zob. opis B<_FORTIFY_SOURCE> w podręczniku "
303 "B<feature_test_macros>(7)."
304
305 #. type: Plain text
306 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
307 #: opensuse-tumbleweed
308 msgid ""
309 "B<strcat>() can be very inefficient. Read about E<.UR https:\\://"
310 "www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the "
311 "painter E<.UE .>"
312 msgstr ""
313 "B<strcat>() może być bardzo mało wydajny. Proszę zapoznać się z historią o "
314 "E<.UR https:\\://www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> "
315 "malarzu Shlemielu E<.UE .>"
316
317 #. type: SH
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "EXAMPLES"
322 msgstr "PRZYKŁADY"
323
324 #. type: Plain text
325 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid ""
328 "#include E<lt>err.hE<gt>\n"
329 "#include E<lt>stdio.hE<gt>\n"
330 "#include E<lt>stdlib.hE<gt>\n"
331 "#include E<lt>string.hE<gt>\n"
332 "\\&\n"
333 "int\n"
334 "main(void)\n"
335 "{\n"
336 " char *buf1;\n"
337 " size_t len, size;\n"
338 "\\&\n"
339 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
340 " buf1 = malloc(sizeof(*buf1) * size);\n"
341 " if (buf1 == NULL)\n"
342 " err(EXIT_FAILURE, \"malloc()\");\n"
343 "\\&\n"
344 " strcpy(buf1, \"Hello \");\n"
345 " strcat(buf1, \"world\");\n"
346 " strcat(buf1, \"!\");\n"
347 " len = strlen(buf1);\n"
348 "\\&\n"
349 " printf(\"[len = %zu]: \", len);\n"
350 " puts(buf1); // \"Hello world!\"\n"
351 " free(buf1);\n"
352 "\\&\n"
353 " exit(EXIT_SUCCESS);\n"
354 "}\n"
355 msgstr ""
356 "#include E<lt>err.hE<gt>\n"
357 "#include E<lt>stdio.hE<gt>\n"
358 "#include E<lt>stdlib.hE<gt>\n"
359 "#include E<lt>string.hE<gt>\n"
360 "\\&\n"
361 "int\n"
362 "main(void)\n"
363 "{\n"
364 " char *buf1;\n"
365 " size_t len, size;\n"
366 "\\&\n"
367 " size = strlen(\"Witaj \") + strlen(\"świecie\") + strlen(\"!\") + 1;\n"
368 " buf1 = malloc(sizeof(*buf1) * size);\n"
369 " if (buf1 == NULL)\n"
370 " err(EXIT_FAILURE, \"malloc()\");\n"
371 "\\&\n"
372 " strcpy(buf1, \"Witaj \");\n"
373 " strcat(buf1, \"świecie\");\n"
374 " strcat(buf1, \"!\");\n"
375 " len = strlen(buf1);\n"
376 "\\&\n"
377 " printf(\"[len = %zu]: \", len);\n"
378 " puts(buf1); // \"Witaj świecie!\"\n"
379 " free(buf1);\n"
380 "\\&\n"
381 " exit(EXIT_SUCCESS);\n"
382 "}\n"
383
384 #. SRC END
385 #. type: SH
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid "SEE ALSO"
390 msgstr "ZOBACZ TAKŻE"
391
392 #. type: Plain text
393 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ""
395 "B<stpcpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
396 msgstr ""
397 "B<stpcpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
398
399 #. type: TH
400 #: debian-trixie
401 #, no-wrap
402 msgid "2024-06-15"
403 msgstr "15 czerwca 2024 r."
404
405 #. type: TH
406 #: debian-trixie
407 #, no-wrap
408 msgid "Linux man-pages 6.9.1"
409 msgstr "Linux man-pages 6.9.1"
410
411 #. type: Plain text
412 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
413 msgid "stpcpy, strcpy, strcat - copy or catenate a string"
414 msgstr "stpcpy, strcpy, strcat - kopiuje lub łączy łańcuch znaków"
415
416 #. type: Plain text
417 #: debian-trixie
418 msgid "Standard C library (I<libc>, I<-lc>)"
419 msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)"
420
421 #. type: Plain text
422 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
423 #, no-wrap
424 msgid ""
425 "B<char *stpcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
426 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
427 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
428 msgstr ""
429 "B<char *stpcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
430 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
431 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
432
433 #. type: Plain text
434 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
435 msgid ""
436 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
437 msgstr ""
438 "Wymagane ustawienia makr biblioteki glibc (patrz B<feature_test_macros>(7)):"
439
440 #. type: Plain text
441 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
442 msgid "B<stpcpy>():"
443 msgstr "B<stpcpy>():"
444
445 #. type: Plain text
446 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
447 #, no-wrap
448 msgid ""
449 " Since glibc 2.10:\n"
450 " _POSIX_C_SOURCE E<gt>= 200809L\n"
451 " Before glibc 2.10:\n"
452 " _GNU_SOURCE\n"
453 msgstr ""
454 " Od glibc 2.10:\n"
455 " _POSIX_C_SOURCE E<gt>= 200809L\n"
456 " Przed glibc 2.10:\n"
457 " _GNU_SOURCE\n"
458
459 #. type: TP
460 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
461 #, no-wrap
462 msgid "B<stpcpy>()"
463 msgstr "B<stpcpy>()"
464
465 #. type: Plain text
466 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
467 msgid ""
468 "These functions copy the string pointed to by I<src>, into a string at the "
469 "buffer pointed to by I<dst>. The programmer is responsible for allocating a "
470 "destination buffer large enough, that is, I<strlen(src) + 1>. For the "
471 "difference between the two functions, see RETURN VALUE."
472 msgstr ""
473 "Funkcje kopiują łańcuch, na który wskazuje I<src>, do łańcucha w buforze, na "
474 "który wskazuje I<dst>. To programista jest odpowiedzialny za alokację "
475 "odpowiednio dużego bufora docelowego tj. I<strlen(src) + 1>. Różnicę "
476 "pomiędzy obiema funkcjami opisano w rozdziale WARTOŚĆ ZWRACANA."
477
478 #. type: Plain text
479 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
480 msgid "An implementation of these functions might be:"
481 msgstr "Implementacja tych funkcji mogłaby wyglądać tak:"
482
483 #. type: Plain text
484 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
485 #, no-wrap
486 msgid ""
487 "char *\n"
488 "stpcpy(char *restrict dst, const char *restrict src)\n"
489 "{\n"
490 " char *p;\n"
491 "\\&\n"
492 " p = mempcpy(dst, src, strlen(src));\n"
493 " *p = \\[aq]\\[rs]0\\[aq];\n"
494 "\\&\n"
495 " return p;\n"
496 "}\n"
497 "\\&\n"
498 "char *\n"
499 "strcpy(char *restrict dst, const char *restrict src)\n"
500 "{\n"
501 " stpcpy(dst, src);\n"
502 " return dst;\n"
503 "}\n"
504 "\\&\n"
505 "char *\n"
506 "strcat(char *restrict dst, const char *restrict src)\n"
507 "{\n"
508 " stpcpy(dst + strlen(dst), src);\n"
509 " return dst;\n"
510 "}\n"
511 msgstr ""
512 "char *\n"
513 "stpcpy(char *restrict dst, const char *restrict src)\n"
514 "{\n"
515 " char *p;\n"
516 "\\&\n"
517 " p = mempcpy(dst, src, strlen(src));\n"
518 " *p = \\[aq]\\[rs]0\\[aq];\n"
519 "\\&\n"
520 " return p;\n"
521 "}\n"
522 "\\&\n"
523 "char *\n"
524 "strcpy(char *restrict dst, const char *restrict src)\n"
525 "{\n"
526 " stpcpy(dst, src);\n"
527 " return dst;\n"
528 "}\n"
529 "\\&\n"
530 "char *\n"
531 "strcat(char *restrict dst, const char *restrict src)\n"
532 "{\n"
533 " stpcpy(dst + strlen(dst), src);\n"
534 " return dst;\n"
535 "}\n"
536
537 #. type: Plain text
538 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
539 msgid ""
540 "This function returns a pointer to the terminating null byte of the copied "
541 "string."
542 msgstr "Funkcja zwraca wskaźnik do końcowego bajtu null kopiowanego łańcucha."
543
544 #. type: tbl table
545 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
546 #, no-wrap
547 msgid ""
548 "B<stpcpy>(),\n"
549 "B<strcpy>(),\n"
550 "B<strcat>()"
551 msgstr ""
552 "B<stpcpy>(),\n"
553 "B<strcpy>(),\n"
554 "B<strcat>()"
555
556 #. type: Plain text
557 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
558 msgid "POSIX.1-2008."
559 msgstr "POSIX.1-2008."
560
561 #. type: Plain text
562 #: debian-trixie fedora-44 fedora-rawhide
563 msgid ""
564 "B<strcat>() can be very inefficient. Read about E<.UR https://"
565 "www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the "
566 "painter E<.UE .>"
567 msgstr ""
568 "B<strcat>() może być bardzo mało wydajny. Proszę zapoznać się z historią o "
569 "E<.UR https://www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> "
570 "malarzu Shlemielu E<.UE .>"
571
572 #. type: Plain text
573 #: debian-trixie
574 #, no-wrap
575 msgid ""
576 "#include E<lt>err.hE<gt>\n"
577 "#include E<lt>stdio.hE<gt>\n"
578 "#include E<lt>stdlib.hE<gt>\n"
579 "#include E<lt>string.hE<gt>\n"
580 "\\&\n"
581 "int\n"
582 "main(void)\n"
583 "{\n"
584 " char *p;\n"
585 " char *buf1;\n"
586 " char *buf2;\n"
587 " size_t len, maxsize;\n"
588 "\\&\n"
589 " maxsize = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
590 " buf1 = malloc(sizeof(*buf1) * maxsize);\n"
591 " if (buf1 == NULL)\n"
592 " err(EXIT_FAILURE, \"malloc()\");\n"
593 " buf2 = malloc(sizeof(*buf2) * maxsize);\n"
594 " if (buf2 == NULL)\n"
595 " err(EXIT_FAILURE, \"malloc()\");\n"
596 "\\&\n"
597 " p = buf1;\n"
598 " p = stpcpy(p, \"Hello \");\n"
599 " p = stpcpy(p, \"world\");\n"
600 " p = stpcpy(p, \"!\");\n"
601 " len = p - buf1;\n"
602 "\\&\n"
603 " printf(\"[len = %zu]: \", len);\n"
604 " puts(buf1); // \"Hello world!\"\n"
605 " free(buf1);\n"
606 "\\&\n"
607 " strcpy(buf2, \"Hello \");\n"
608 " strcat(buf2, \"world\");\n"
609 " strcat(buf2, \"!\");\n"
610 " len = strlen(buf2);\n"
611 "\\&\n"
612 " printf(\"[len = %zu]: \", len);\n"
613 " puts(buf2); // \"Hello world!\"\n"
614 " free(buf2);\n"
615 "\\&\n"
616 " exit(EXIT_SUCCESS);\n"
617 "}\n"
618 msgstr ""
619 "#include E<lt>err.hE<gt>\n"
620 "#include E<lt>stdio.hE<gt>\n"
621 "#include E<lt>stdlib.hE<gt>\n"
622 "#include E<lt>string.hE<gt>\n"
623 "\\&\n"
624 "int\n"
625 "main(void)\n"
626 "{\n"
627 " char *p;\n"
628 " char *buf1;\n"
629 " char *buf2;\n"
630 " size_t len, maxsize;\n"
631 "\\&\n"
632 " maxsize = strlen(\"Witaj \") + strlen(\"świecie\") + strlen(\"!\") + 1;\n"
633 " buf1 = malloc(sizeof(*buf1) * maxsize);\n"
634 " if (buf1 == NULL)\n"
635 " err(EXIT_FAILURE, \"malloc()\");\n"
636 " buf2 = malloc(sizeof(*buf2) * maxsize);\n"
637 " if (buf2 == NULL)\n"
638 " err(EXIT_FAILURE, \"malloc()\");\n"
639 "\\&\n"
640 " p = buf1;\n"
641 " p = stpcpy(p, \"Witaj \");\n"
642 " p = stpcpy(p, \"świecie\");\n"
643 " p = stpcpy(p, \"!\");\n"
644 " len = p - buf1;\n"
645 "\\&\n"
646 " printf(\"[len = %zu]: \", len);\n"
647 " puts(buf1); // \"Witaj świecie!\"\n"
648 " free(buf1);\n"
649 "\\&\n"
650 " strcpy(buf2, \"Witaj \");\n"
651 " strcat(buf2, \"świecie\");\n"
652 " strcat(buf2, \"!\");\n"
653 " len = strlen(buf2);\n"
654 "\\&\n"
655 " printf(\"[len = %zu]: \", len);\n"
656 " puts(buf2); // \"Witaj świecie!\"\n"
657 " free(buf2);\n"
658 "\\&\n"
659 " exit(EXIT_SUCCESS);\n"
660 "}\n"
661
662 #. type: Plain text
663 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
664 msgid "B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
665 msgstr "B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
666
667 #. type: TH
668 #: fedora-44 fedora-rawhide
669 #, no-wrap
670 msgid "2024-11-17"
671 msgstr "17 listopada 2024 r."
672
673 #. type: TH
674 #: fedora-44 fedora-rawhide
675 #, no-wrap
676 msgid "Linux man-pages 6.13"
677 msgstr "Linux man-pages 6.13"
678
679 #. type: Plain text
680 #: fedora-44 fedora-rawhide mageia-cauldron
681 #, no-wrap
682 msgid ""
683 "#include E<lt>err.hE<gt>\n"
684 "#include E<lt>stdio.hE<gt>\n"
685 "#include E<lt>stdlib.hE<gt>\n"
686 "#include E<lt>string.hE<gt>\n"
687 "\\&\n"
688 "int\n"
689 "main(void)\n"
690 "{\n"
691 " char *p;\n"
692 " char *buf1;\n"
693 " char *buf2;\n"
694 " size_t len, size;\n"
695 "\\&\n"
696 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
697 " buf1 = malloc(sizeof(*buf1) * size);\n"
698 " if (buf1 == NULL)\n"
699 " err(EXIT_FAILURE, \"malloc()\");\n"
700 " buf2 = malloc(sizeof(*buf2) * size);\n"
701 " if (buf2 == NULL)\n"
702 " err(EXIT_FAILURE, \"malloc()\");\n"
703 "\\&\n"
704 " p = buf1;\n"
705 " p = stpcpy(p, \"Hello \");\n"
706 " p = stpcpy(p, \"world\");\n"
707 " p = stpcpy(p, \"!\");\n"
708 " len = p - buf1;\n"
709 "\\&\n"
710 " printf(\"[len = %zu]: \", len);\n"
711 " puts(buf1); // \"Hello world!\"\n"
712 " free(buf1);\n"
713 "\\&\n"
714 " strcpy(buf2, \"Hello \");\n"
715 " strcat(buf2, \"world\");\n"
716 " strcat(buf2, \"!\");\n"
717 " len = strlen(buf2);\n"
718 "\\&\n"
719 " printf(\"[len = %zu]: \", len);\n"
720 " puts(buf2); // \"Hello world!\"\n"
721 " free(buf2);\n"
722 "\\&\n"
723 " exit(EXIT_SUCCESS);\n"
724 "}\n"
725 msgstr ""
726 "#include E<lt>err.hE<gt>\n"
727 "#include E<lt>stdio.hE<gt>\n"
728 "#include E<lt>stdlib.hE<gt>\n"
729 "#include E<lt>string.hE<gt>\n"
730 "\\&\n"
731 "int\n"
732 "main(void)\n"
733 "{\n"
734 " char *p;\n"
735 " char *buf1;\n"
736 " char *buf2;\n"
737 " size_t len, size;\n"
738 "\\&\n"
739 " size = strlen(\"Witaj \") + strlen(\"świecie\") + strlen(\"!\") + 1;\n"
740 " buf1 = malloc(sizeof(*buf1) * size);\n"
741 " if (buf1 == NULL)\n"
742 " err(EXIT_FAILURE, \"malloc()\");\n"
743 " buf2 = malloc(sizeof(*buf2) * size);\n"
744 " if (buf2 == NULL)\n"
745 " err(EXIT_FAILURE, \"malloc()\");\n"
746 "\\&\n"
747 " p = buf1;\n"
748 " p = stpcpy(p, \"Witaj \");\n"
749 " p = stpcpy(p, \"świecie\");\n"
750 " p = stpcpy(p, \"!\");\n"
751 " len = p - buf1;\n"
752 "\\&\n"
753 " printf(\"[len = %zu]: \", len);\n"
754 " puts(buf1); // \"Witaj świecie!\"\n"
755 " free(buf1);\n"
756 "\\&\n"
757 " strcpy(buf2, \"Witaj \");\n"
758 " strcat(buf2, \"świecie\");\n"
759 " strcat(buf2, \"!\");\n"
760 " len = strlen(buf2);\n"
761 "\\&\n"
762 " printf(\"[len = %zu]: \", len);\n"
763 " puts(buf2); // \"Witaj świecie!\"\n"
764 " free(buf2);\n"
765 "\\&\n"
766 " exit(EXIT_SUCCESS);\n"
767 "}\n"
768
769 #. type: TH
770 #: mageia-cauldron
771 #, no-wrap
772 msgid "2025-12-25"
773 msgstr "25 grudnia 2025 r."
774
775 #. type: TH
776 #: mageia-cauldron
777 #, no-wrap
778 msgid "Linux man-pages 6.17"
779 msgstr "Linux man-pages 6.17"
780
781 #. type: TH
782 #: opensuse-leap-16-1 opensuse-tumbleweed
783 #, no-wrap
784 msgid "Linux man-pages (unreleased)"
785 msgstr "Linux man-pages (niewydane)"