Debian Codegraph @

po/ar/man3/strcpy.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
9 "PO-Revision-Date: 2026-06-03 18:33+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "strcpy"
25 msgstr "strcpy"
26
27 #. type: TH
28 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-25"
31 msgstr "25 فبراير 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "صفحات دليل لينكس 6.18"
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-unstable opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "strcpy, strcat - copy or catenate a string"
49 msgstr "strcpy، strcat - نسخ أو تسلسل سلسلة محارف"
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 "المكتبة"
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 "مكتبة سي المعيارية (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 "موجز"
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 opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid ""
82 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
83 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
84 msgstr ""
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
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr "الوصف"
94
95 #. type: TP
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 #, no-wrap
99 msgid "B<strcpy>()"
100 msgstr "B<strcpy>()"
101
102 #. type: Plain text
103 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "This function copies the string pointed to by I<src>, into a string at the "
106 "buffer pointed to by I<dst>. The programmer is responsible for allocating a "
107 "destination buffer large enough, that is, I<strlen(src) + 1>."
108 msgstr ""
109 "تنسخ هذه الدالة سلسلة المحارف المشار إليها بواسطة I<src>، إلى سلسلة محارف في "
110 "المخزن المؤقت المشار إليه بواسطة I<dst>. المبرمج مسؤول عن تخصيص مخزن وجهة "
111 "كبير بما يكفي، أي I<strlen(src) + 1>."
112
113 #. type: Plain text
114 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
115 msgid "It is equivalent to"
116 msgstr "يكافئ"
117
118 #. type: Plain text
119 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid "stpcpy(dst, src), dst\n"
122 msgstr "stpcpy(dst, src)، dst\n"
123
124 #. #-#-#-#-# archlinux: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
125 #. type: TP
126 #. #-#-#-#-# debian-trixie: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
127 #. type: TQ
128 #. #-#-#-#-# debian-unstable: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
129 #. type: TP
130 #. #-#-#-#-# fedora-44: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
131 #. type: TQ
132 #. #-#-#-#-# fedora-rawhide: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
133 #. type: TQ
134 #. #-#-#-#-# mageia-cauldron: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
135 #. type: TQ
136 #. #-#-#-#-# opensuse-leap-16-1: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
137 #. type: TP
138 #. #-#-#-#-# opensuse-tumbleweed: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-#
139 #. type: TP
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid "B<strcat>()"
144 msgstr "B<strcat>()"
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "This function catenates the string pointed to by I<src>, after the string "
151 "pointed to by I<dst> (overwriting its terminating null byte). The "
152 "programmer is responsible for allocating a destination buffer large enough, "
153 "that is, I<strlen(dst) + strlen(src) + 1>."
154 msgstr ""
155 "تسلسل هذه الدالة سلسلة المحارف المشار إليها بواسطة I<src>، بعد سلسلة المحارف "
156 "المشار إليها بواسطة I<dst> (مع الكتابة فوق بايت الصفر الختامي). المبرمج "
157 "مسؤول عن تخصيص مخزن وجهة كبير بما يكفي، أي I<strlen(dst) + strlen(src) + 1>."
158
159 #. type: Plain text
160 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "stpcpy(strnul(dst), src), dst\n"
163 msgstr "stpcpy(strnul(dst)، src)، dst\n"
164
165 #. type: SH
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "RETURN VALUE"
170 msgstr "قيمة الإرجاع"
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid "These functions return I<dst>."
176 msgstr "ترجع هذه الدوال I<dst>."
177
178 #. type: SH
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 #, no-wrap
182 msgid "ATTRIBUTES"
183 msgstr "السمات"
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "For an explanation of the terms used in this section, see B<attributes>(7)."
190 msgstr ""
191 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
192
193 #. type: tbl table
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "Interface"
198 msgstr "الواجهة"
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 "Attribute"
205 msgstr "السمة"
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 "Value"
212 msgstr "القيمة"
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 ".na\n"
219 msgstr ".na\n"
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 ".nh\n"
226 msgstr ".nh\n"
227
228 #. type: tbl table
229 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid ""
232 "B<strcpy>(),\n"
233 "B<strcat>()"
234 msgstr ""
235 "B<strcpy>()،\n"
236 "B<strcat>()"
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 "Thread safety"
243 msgstr "سلامة الخيوط"
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 "MT-Safe"
250 msgstr "MT-Safe"
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "STANDARDS"
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 "C11, POSIX.1-2008."
264
265 #. type: SH
266 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
267 #, no-wrap
268 msgid "HISTORY"
269 msgstr "التاريخ"
270
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
275 msgstr "POSIX.1-2001، C89، SVr4، 4.3BSD."
276
277 #. type: SH
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "CAVEATS"
282 msgstr "تحذيرات"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid "The strings I<src> and I<dst> may not overlap."
288 msgstr "قد لا تتداخل سلسلتا المحارف I<src> و I<dst>."
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid ""
294 "If the destination buffer is not large enough, the behavior is undefined. "
295 "See B<_FORTIFY_SOURCE> in B<feature_test_macros>(7)."
296 msgstr ""
297 "إذا لم يكن المخزن الوجهة كبيرًا بما يكفي، فالسلوك غير محدد. انظر "
298 "B<_FORTIFY_SOURCE> في B<feature_test_macros>(7)."
299
300 #. type: Plain text
301 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
302 #: opensuse-tumbleweed
303 msgid ""
304 "B<strcat>() can be very inefficient. Read about E<.UR https:\\://www."
305 "joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the painter E<."
306 "UE .>"
307 msgstr ""
308 "يمكن أن تكون B<strcat>() غير فعالة جدًا. اقرأ عن E<.UR https:\\://www."
309 "joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> شلميئيل الرسام E<.UE .>"
310
311 #. type: SH
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "EXAMPLES"
316 msgstr "أمثلة"
317
318 #. type: Plain text
319 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid ""
322 "#include E<lt>err.hE<gt>\n"
323 "#include E<lt>stdio.hE<gt>\n"
324 "#include E<lt>stdlib.hE<gt>\n"
325 "#include E<lt>string.hE<gt>\n"
326 "\\&\n"
327 "int\n"
328 "main(void)\n"
329 "{\n"
330 " char *buf1;\n"
331 " size_t len, size;\n"
332 "\\&\n"
333 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
334 " buf1 = malloc(sizeof(*buf1) * size);\n"
335 " if (buf1 == NULL)\n"
336 " err(EXIT_FAILURE, \"malloc()\");\n"
337 "\\&\n"
338 " strcpy(buf1, \"Hello \");\n"
339 " strcat(buf1, \"world\");\n"
340 " strcat(buf1, \"!\");\n"
341 " len = strlen(buf1);\n"
342 "\\&\n"
343 " printf(\"[len = %zu]: \", len);\n"
344 " puts(buf1); // \"Hello world!\"\n"
345 " free(buf1);\n"
346 "\\&\n"
347 " exit(EXIT_SUCCESS);\n"
348 "}\n"
349 msgstr ""
350 "#include E<lt>err.hE<gt>\n"
351 "#include E<lt>stdio.hE<gt>\n"
352 "#include E<lt>stdlib.hE<gt>\n"
353 "#include E<lt>string.hE<gt>\n"
354 "\\&\n"
355 "int\n"
356 "main(void)\n"
357 "{\n"
358 " char *buf1;\n"
359 " size_t len, size;\n"
360 "\\&\n"
361 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
362 " buf1 = malloc(sizeof(*buf1) * size);\n"
363 " if (buf1 == NULL)\n"
364 " err(EXIT_FAILURE, \"malloc()\");\n"
365 "\\&\n"
366 " strcpy(buf1, \"Hello \");\n"
367 " strcat(buf1, \"world\");\n"
368 " strcat(buf1, \"!\");\n"
369 " len = strlen(buf1);\n"
370 "\\&\n"
371 " printf(\"[len = %zu]: \", len);\n"
372 " puts(buf1); // \"Hello world!\"\n"
373 " free(buf1);\n"
374 "\\&\n"
375 " exit(EXIT_SUCCESS);\n"
376 "}\n"
377
378 #. SRC END
379 #. type: SH
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "SEE ALSO"
384 msgstr "انظر أيضًا"
385
386 #. type: Plain text
387 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "B<stpcpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
390 msgstr ""
391 "B<stpcpy>(3)، B<strdup>(3)، B<string>(3)، B<wcscpy>(3)، B<string_copying>(7)"
392
393 #. type: TH
394 #: debian-trixie
395 #, no-wrap
396 msgid "2024-06-15"
397 msgstr "15 يونيو 2024"
398
399 #. type: TH
400 #: debian-trixie
401 #, no-wrap
402 msgid "Linux man-pages 6.9.1"
403 msgstr "صفحات دليل لينكس 6.9.1"
404
405 #. type: Plain text
406 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
407 msgid "stpcpy, strcpy, strcat - copy or catenate a string"
408 msgstr "stpcpy، strcpy، strcat - نسخ أو تسلسل سلسلة محارف"
409
410 #. type: Plain text
411 #: debian-trixie
412 msgid "Standard C library (I<libc>, I<-lc>)"
413 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
414
415 #. type: Plain text
416 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
417 #, no-wrap
418 msgid ""
419 "B<char *stpcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
420 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
421 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
422 msgstr ""
423 "B<char *stpcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
424 "B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
425 "B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n"
426
427 #. type: Plain text
428 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
429 msgid ""
430 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
431 msgstr ""
432 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
433
434 #. type: Plain text
435 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
436 msgid "B<stpcpy>():"
437 msgstr "B<stpcpy>():"
438
439 #. type: Plain text
440 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
441 #, no-wrap
442 msgid ""
443 " Since glibc 2.10:\n"
444 " _POSIX_C_SOURCE E<gt>= 200809L\n"
445 " Before glibc 2.10:\n"
446 " _GNU_SOURCE\n"
447 msgstr ""
448 " منذ glibc 2.10:\n"
449 " _POSIX_C_SOURCE E<gt>= 200809L\n"
450 " قبل glibc 2.10:\n"
451 " _GNU_SOURCE\n"
452
453 #. type: TP
454 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
455 #, no-wrap
456 msgid "B<stpcpy>()"
457 msgstr "B<stpcpy>()"
458
459 #. type: Plain text
460 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
461 msgid ""
462 "These functions copy the string pointed to by I<src>, into a string at the "
463 "buffer pointed to by I<dst>. The programmer is responsible for allocating a "
464 "destination buffer large enough, that is, I<strlen(src) + 1>. For the "
465 "difference between the two functions, see RETURN VALUE."
466 msgstr ""
467 "تنسخ هذه الدوال السلسلة المحارف المشار إليها بواسطة I<src>، إلى سلسلة محارف "
468 "في المخزن المؤقت المشار إليه بواسطة I<dst>. يتحمل المبرمج مسؤولية تخصيص "
469 "مخزن مؤقت وجهة كبير بما يكفي، أي I<strlen(src) + 1>. للفرق بين الدالتين، "
470 "انظر قيمة الإرجاع."
471
472 #. type: Plain text
473 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
474 msgid "An implementation of these functions might be:"
475 msgstr "قد يكون تنفيذ هذه الدوال كالتالي:"
476
477 #. type: Plain text
478 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
479 #, no-wrap
480 msgid ""
481 "char *\n"
482 "stpcpy(char *restrict dst, const char *restrict src)\n"
483 "{\n"
484 " char *p;\n"
485 "\\&\n"
486 " p = mempcpy(dst, src, strlen(src));\n"
487 " *p = \\[aq]\\[rs]0\\[aq];\n"
488 "\\&\n"
489 " return p;\n"
490 "}\n"
491 "\\&\n"
492 "char *\n"
493 "strcpy(char *restrict dst, const char *restrict src)\n"
494 "{\n"
495 " stpcpy(dst, src);\n"
496 " return dst;\n"
497 "}\n"
498 "\\&\n"
499 "char *\n"
500 "strcat(char *restrict dst, const char *restrict src)\n"
501 "{\n"
502 " stpcpy(dst + strlen(dst), src);\n"
503 " return dst;\n"
504 "}\n"
505 msgstr ""
506 "char *\n"
507 "stpcpy(char *restrict dst, const char *restrict src)\n"
508 "{\n"
509 " char *p;\n"
510 "\\&\n"
511 " p = mempcpy(dst, src, strlen(src));\n"
512 " *p = \\[aq]\\[rs]0\\[aq];\n"
513 "\\&\n"
514 " return p;\n"
515 "}\n"
516 "\\&\n"
517 "char *\n"
518 "strcpy(char *restrict dst, const char *restrict src)\n"
519 "{\n"
520 " stpcpy(dst, src);\n"
521 " return dst;\n"
522 "}\n"
523 "\\&\n"
524 "char *\n"
525 "strcat(char *restrict dst, const char *restrict src)\n"
526 "{\n"
527 " stpcpy(dst + strlen(dst), src);\n"
528 " return dst;\n"
529 "}\n"
530
531 #. type: Plain text
532 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
533 msgid ""
534 "This function returns a pointer to the terminating null byte of the copied "
535 "string."
536 msgstr ""
537 "ترجع هذه الدالة مؤشرًا إلى البايت الخالي الختامي للسلسلة المحارف المنسوخة."
538
539 #. type: tbl table
540 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
541 #, no-wrap
542 msgid ""
543 "B<stpcpy>(),\n"
544 "B<strcpy>(),\n"
545 "B<strcat>()"
546 msgstr ""
547 "B<stpcpy>(),\n"
548 "B<strcpy>(),\n"
549 "B<strcat>()"
550
551 #. type: Plain text
552 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
553 msgid "POSIX.1-2008."
554 msgstr "POSIX.1-2008."
555
556 #. type: Plain text
557 #: debian-trixie fedora-44 fedora-rawhide
558 msgid ""
559 "B<strcat>() can be very inefficient. Read about E<.UR https://www."
560 "joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the painter E<."
561 "UE .>"
562 msgstr ""
563 "يمكن أن تكون B<strcat>() غير فعالة جدًا. اقرأ عن E<.UR https://www."
564 "joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> شلميئيل الرسام E<.UE .>"
565
566 #. type: Plain text
567 #: debian-trixie
568 #, no-wrap
569 msgid ""
570 "#include E<lt>err.hE<gt>\n"
571 "#include E<lt>stdio.hE<gt>\n"
572 "#include E<lt>stdlib.hE<gt>\n"
573 "#include E<lt>string.hE<gt>\n"
574 "\\&\n"
575 "int\n"
576 "main(void)\n"
577 "{\n"
578 " char *p;\n"
579 " char *buf1;\n"
580 " char *buf2;\n"
581 " size_t len, maxsize;\n"
582 "\\&\n"
583 " maxsize = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
584 " buf1 = malloc(sizeof(*buf1) * maxsize);\n"
585 " if (buf1 == NULL)\n"
586 " err(EXIT_FAILURE, \"malloc()\");\n"
587 " buf2 = malloc(sizeof(*buf2) * maxsize);\n"
588 " if (buf2 == NULL)\n"
589 " err(EXIT_FAILURE, \"malloc()\");\n"
590 "\\&\n"
591 " p = buf1;\n"
592 " p = stpcpy(p, \"Hello \");\n"
593 " p = stpcpy(p, \"world\");\n"
594 " p = stpcpy(p, \"!\");\n"
595 " len = p - buf1;\n"
596 "\\&\n"
597 " printf(\"[len = %zu]: \", len);\n"
598 " puts(buf1); // \"Hello world!\"\n"
599 " free(buf1);\n"
600 "\\&\n"
601 " strcpy(buf2, \"Hello \");\n"
602 " strcat(buf2, \"world\");\n"
603 " strcat(buf2, \"!\");\n"
604 " len = strlen(buf2);\n"
605 "\\&\n"
606 " printf(\"[len = %zu]: \", len);\n"
607 " puts(buf2); // \"Hello world!\"\n"
608 " free(buf2);\n"
609 "\\&\n"
610 " exit(EXIT_SUCCESS);\n"
611 "}\n"
612 msgstr ""
613 "#include E<lt>err.hE<gt>\n"
614 "#include E<lt>stdio.hE<gt>\n"
615 "#include E<lt>stdlib.hE<gt>\n"
616 "#include E<lt>string.hE<gt>\n"
617 "\\&\n"
618 "int\n"
619 "main(void)\n"
620 "{\n"
621 " char *p;\n"
622 " char *buf1;\n"
623 " char *buf2;\n"
624 " size_t len, maxsize;\n"
625 "\\&\n"
626 " maxsize = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
627 " buf1 = malloc(sizeof(*buf1) * maxsize);\n"
628 " if (buf1 == NULL)\n"
629 " err(EXIT_FAILURE, \"malloc()\");\n"
630 " buf2 = malloc(sizeof(*buf2) * maxsize);\n"
631 " if (buf2 == NULL)\n"
632 " err(EXIT_FAILURE, \"malloc()\");\n"
633 "\\&\n"
634 " p = buf1;\n"
635 " p = stpcpy(p, \"Hello \");\n"
636 " p = stpcpy(p, \"world\");\n"
637 " p = stpcpy(p, \"!\");\n"
638 " len = p - buf1;\n"
639 "\\&\n"
640 " printf(\"[len = %zu]: \", len);\n"
641 " puts(buf1); // \"Hello world!\"\n"
642 " free(buf1);\n"
643 "\\&\n"
644 " strcpy(buf2, \"Hello \");\n"
645 " strcat(buf2, \"world\");\n"
646 " strcat(buf2, \"!\");\n"
647 " len = strlen(buf2);\n"
648 "\\&\n"
649 " printf(\"[len = %zu]: \", len);\n"
650 " puts(buf2); // \"Hello world!\"\n"
651 " free(buf2);\n"
652 "\\&\n"
653 " exit(EXIT_SUCCESS);\n"
654 "}\n"
655
656 #. type: Plain text
657 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
658 msgid "B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
659 msgstr "B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)"
660
661 #. type: TH
662 #: fedora-44 fedora-rawhide
663 #, no-wrap
664 msgid "2024-11-17"
665 msgstr "17 نوفمبر 2024"
666
667 #. type: TH
668 #: fedora-44 fedora-rawhide
669 #, no-wrap
670 msgid "Linux man-pages 6.13"
671 msgstr "صفحات دليل لينكس 6.13"
672
673 #. type: Plain text
674 #: fedora-44 fedora-rawhide mageia-cauldron
675 #, no-wrap
676 msgid ""
677 "#include E<lt>err.hE<gt>\n"
678 "#include E<lt>stdio.hE<gt>\n"
679 "#include E<lt>stdlib.hE<gt>\n"
680 "#include E<lt>string.hE<gt>\n"
681 "\\&\n"
682 "int\n"
683 "main(void)\n"
684 "{\n"
685 " char *p;\n"
686 " char *buf1;\n"
687 " char *buf2;\n"
688 " size_t len, size;\n"
689 "\\&\n"
690 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
691 " buf1 = malloc(sizeof(*buf1) * size);\n"
692 " if (buf1 == NULL)\n"
693 " err(EXIT_FAILURE, \"malloc()\");\n"
694 " buf2 = malloc(sizeof(*buf2) * size);\n"
695 " if (buf2 == NULL)\n"
696 " err(EXIT_FAILURE, \"malloc()\");\n"
697 "\\&\n"
698 " p = buf1;\n"
699 " p = stpcpy(p, \"Hello \");\n"
700 " p = stpcpy(p, \"world\");\n"
701 " p = stpcpy(p, \"!\");\n"
702 " len = p - buf1;\n"
703 "\\&\n"
704 " printf(\"[len = %zu]: \", len);\n"
705 " puts(buf1); // \"Hello world!\"\n"
706 " free(buf1);\n"
707 "\\&\n"
708 " strcpy(buf2, \"Hello \");\n"
709 " strcat(buf2, \"world\");\n"
710 " strcat(buf2, \"!\");\n"
711 " len = strlen(buf2);\n"
712 "\\&\n"
713 " printf(\"[len = %zu]: \", len);\n"
714 " puts(buf2); // \"Hello world!\"\n"
715 " free(buf2);\n"
716 "\\&\n"
717 " exit(EXIT_SUCCESS);\n"
718 "}\n"
719 msgstr ""
720 "#include E<lt>err.hE<gt>\n"
721 "#include E<lt>stdio.hE<gt>\n"
722 "#include E<lt>stdlib.hE<gt>\n"
723 "#include E<lt>string.hE<gt>\n"
724 "\\&\n"
725 "int\n"
726 "main(void)\n"
727 "{\n"
728 " char *p;\n"
729 " char *buf1;\n"
730 " char *buf2;\n"
731 " size_t len, size;\n"
732 "\\&\n"
733 " size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n"
734 " buf1 = malloc(sizeof(*buf1) * size);\n"
735 " if (buf1 == NULL)\n"
736 " err(EXIT_FAILURE, \"malloc()\");\n"
737 " buf2 = malloc(sizeof(*buf2) * size);\n"
738 " if (buf2 == NULL)\n"
739 " err(EXIT_FAILURE, \"malloc()\");\n"
740 "\\&\n"
741 " p = buf1;\n"
742 " p = stpcpy(p, \"Hello \");\n"
743 " p = stpcpy(p, \"world\");\n"
744 " p = stpcpy(p, \"!\");\n"
745 " len = p - buf1;\n"
746 "\\&\n"
747 " printf(\"[len = %zu]: \", len);\n"
748 " puts(buf1); // \"Hello world!\"\n"
749 " free(buf1);\n"
750 "\\&\n"
751 " strcpy(buf2, \"Hello \");\n"
752 " strcat(buf2, \"world\");\n"
753 " strcat(buf2, \"!\");\n"
754 " len = strlen(buf2);\n"
755 "\\&\n"
756 " printf(\"[len = %zu]: \", len);\n"
757 " puts(buf2); // \"Hello world!\"\n"
758 " free(buf2);\n"
759 "\\&\n"
760 " exit(EXIT_SUCCESS);\n"
761 "}\n"
762
763 #. type: TH
764 #: mageia-cauldron
765 #, no-wrap
766 msgid "2025-12-25"
767 msgstr "25 ديسمبر 2025"
768
769 #. type: TH
770 #: mageia-cauldron
771 #, no-wrap
772 msgid "Linux man-pages 6.17"
773 msgstr "صفحات دليل لينكس 6.17"
774
775 #. type: TH
776 #: opensuse-leap-16-1 opensuse-tumbleweed
777 #, no-wrap
778 msgid "Linux man-pages (unreleased)"
779 msgstr "صفحات دليل لينكس (لم تصدر بعد)"