| 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 |
|
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: manpages-l10n 4.30.2\n" |
| 9 |
"POT-Creation-Date: 2026-06-05 06:45+0200\n" |
| 10 |
"PO-Revision-Date: 2026-06-06 08:54+0400\n" |
| 11 |
"Last-Translator: Zayed Al-Saidi <[email protected]>\n" |
| 12 |
"Language-Team: Arabic <[email protected]>\n" |
| 13 |
"Language: ar\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 &&" |
| 18 |
" n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" |
| 19 |
"X-Generator: Lokalize 23.08.5\n" |
| 20 |
|
| 21 |
#. type: TH |
| 22 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 23 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 24 |
#, no-wrap |
| 25 |
msgid "stpncpy" |
| 26 |
msgstr "stpncpy" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "2026-02-25" |
| 32 |
msgstr "25 فبراير 2026" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable |
| 36 |
#, no-wrap |
| 37 |
msgid "Linux man-pages 6.18" |
| 38 |
msgstr "صفحات دليل لينكس 6.18" |
| 39 |
|
| 40 |
#. type: SH |
| 41 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 42 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 43 |
#, no-wrap |
| 44 |
msgid "NAME" |
| 45 |
msgstr "الاسم" |
| 46 |
|
| 47 |
#. type: Plain text |
| 48 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 49 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 50 |
msgid "" |
| 51 |
"stpncpy, strncpy - fill a fixed-size buffer with non-null bytes from a " |
| 52 |
"string, padding with null bytes as needed" |
| 53 |
msgstr "" |
| 54 |
"stpncpy, strncpy - ملء مخزن مؤقت بحجم ثابت ببايتات غير فارغة من سلسلة محارف، " |
| 55 |
"مع حشو ببايتات فارغة حسب الحاجة" |
| 56 |
|
| 57 |
#. type: SH |
| 58 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 59 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 60 |
#, no-wrap |
| 61 |
msgid "LIBRARY" |
| 62 |
msgstr "المكتبة" |
| 63 |
|
| 64 |
#. type: Plain text |
| 65 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 66 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 68 |
msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)" |
| 69 |
|
| 70 |
#. type: SH |
| 71 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 72 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 73 |
#, no-wrap |
| 74 |
msgid "SYNOPSIS" |
| 75 |
msgstr "موجز" |
| 76 |
|
| 77 |
#. type: Plain text |
| 78 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 79 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 80 |
#, no-wrap |
| 81 |
msgid "B<#include E<lt>string.hE<gt>>\n" |
| 82 |
msgstr "B<#include E<lt>string.hE<gt>>\n" |
| 83 |
|
| 84 |
#. type: Plain text |
| 85 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 86 |
#: opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "" |
| 89 |
"B<char *strncpy(>size_t dsize;\n" |
| 90 |
"B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict " |
| 91 |
">I<src>B<,>\n" |
| 92 |
"B< size_t >I<dsize>B<);>\n" |
| 93 |
"B<char *stpncpy(>size_t dsize;\n" |
| 94 |
"B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict " |
| 95 |
">I<src>B<,>\n" |
| 96 |
"B< size_t >I<dsize>B<);>\n" |
| 97 |
msgstr "" |
| 98 |
"B<char *strncpy(>size_t dsize;\n" |
| 99 |
"B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict " |
| 100 |
">I<src>B<,>\n" |
| 101 |
"B< size_t >I<dsize>B<);>\n" |
| 102 |
"B<char *stpncpy(>size_t dsize;\n" |
| 103 |
"B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict " |
| 104 |
">I<src>B<,>\n" |
| 105 |
"B< size_t >I<dsize>B<);>\n" |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
msgid "" |
| 111 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 112 |
msgstr "" |
| 113 |
"متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):" |
| 114 |
|
| 115 |
#. type: Plain text |
| 116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 117 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 118 |
msgid "B<stpncpy>():" |
| 119 |
msgstr "B<stpncpy>():" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 123 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 124 |
#, no-wrap |
| 125 |
msgid "" |
| 126 |
" Since glibc 2.10:\n" |
| 127 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 128 |
" Before glibc 2.10:\n" |
| 129 |
" _GNU_SOURCE\n" |
| 130 |
msgstr "" |
| 131 |
" منذ glibc 2.10:\n" |
| 132 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 133 |
" قبل glibc 2.10:\n" |
| 134 |
" _GNU_SOURCE\n" |
| 135 |
|
| 136 |
#. type: SH |
| 137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 138 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
#, no-wrap |
| 140 |
msgid "DESCRIPTION" |
| 141 |
msgstr "الوصف" |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
msgid "" |
| 147 |
"These functions copy non-null bytes from the string pointed to by I<src> " |
| 148 |
"into the array pointed to by I<dst>. If the source has too few non-null " |
| 149 |
"bytes to fill the destination, the functions pad the destination with " |
| 150 |
"trailing null bytes. If the destination buffer, limited by its size, isn't " |
| 151 |
"large enough to hold the copy, the resulting character sequence is " |
| 152 |
"truncated. For the difference between the two functions, see RETURN VALUE." |
| 153 |
msgstr "" |
| 154 |
"تنسخ هذه الدوال بايتات غير فارغة من سلسلة المحارف المشار إليها بـ I<src> إلى " |
| 155 |
"المصفوفة المشار إليها بـ I<dst>. إذا كان المصدر يحتوي على بايتات غير فارغة " |
| 156 |
"قليلة جدًا لملء الوجهة، تقوم الدوال بحشو الوجهة ببايتات فارغة في النهاية. إذا " |
| 157 |
"كان المخزن المؤقت للوجهة، المحدود بحجمه، غير كبير بما يكفي لاستيعاب النسخة، " |
| 158 |
"فسيتم اقتطاع تسلسل المحارف الناتج. للفرق بين الدالتين، انظر قيمة الإرجاع." |
| 159 |
|
| 160 |
#. type: TP |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
#, no-wrap |
| 164 |
msgid "B<strncpy>()" |
| 165 |
msgstr "B<strncpy>()" |
| 166 |
|
| 167 |
#. type: Plain text |
| 168 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
msgid "It is equivalent to" |
| 170 |
msgstr "يكافئ" |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
#, no-wrap |
| 175 |
msgid "stpncpy(dst, src, dsize), dst\n" |
| 176 |
msgstr "stpncpy(dst, src, dsize), dst\n" |
| 177 |
|
| 178 |
#. type: TP |
| 179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 180 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 181 |
#, no-wrap |
| 182 |
msgid "B<stpncpy>()" |
| 183 |
msgstr "B<stpncpy>()" |
| 184 |
|
| 185 |
#. type: Plain text |
| 186 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
#, no-wrap |
| 188 |
msgid "" |
| 189 |
"memset(mempcpy(dst, src, strnlen(src, dsize)), \\[aq]\\[rs]0\\[aq],\n" |
| 190 |
" dsize - strnlen(src, dsize))\n" |
| 191 |
msgstr "" |
| 192 |
"memset(mempcpy(dst, src, strnlen(src, dsize)), \\[aq]\\[rs]0\\[aq],\n" |
| 193 |
" dsize - strnlen(src, dsize))\n" |
| 194 |
|
| 195 |
#. type: SH |
| 196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 197 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 198 |
#, no-wrap |
| 199 |
msgid "RETURN VALUE" |
| 200 |
msgstr "قيمة الإرجاع" |
| 201 |
|
| 202 |
#. type: Plain text |
| 203 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 204 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 205 |
msgid "returns I<dst>." |
| 206 |
msgstr "تُرجع I<dst>." |
| 207 |
|
| 208 |
#. type: Plain text |
| 209 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 210 |
#: opensuse-tumbleweed |
| 211 |
#| msgid "" |
| 212 |
#| "returns a pointer to one past the last non-null character written, that " |
| 213 |
#| "is, I<dest\\~+\\~strnlen(src,\\~n)>." |
| 214 |
msgid "" |
| 215 |
"returns a pointer to one past the last non-null character written, that is, " |
| 216 |
"I<dest\\ +\\ strnlen(src,\\ n)>." |
| 217 |
msgstr "" |
| 218 |
"تُرجع مؤشرًا إلى ما بعد آخر محرف غير فارغ كُتب، أي I<dest\\ +\\ strnlen(src," |
| 219 |
"\\ n)>." |
| 220 |
|
| 221 |
#. type: SH |
| 222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 223 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 224 |
#, no-wrap |
| 225 |
msgid "ATTRIBUTES" |
| 226 |
msgstr "السمات" |
| 227 |
|
| 228 |
#. type: Plain text |
| 229 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 230 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 231 |
msgid "" |
| 232 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 233 |
msgstr "" |
| 234 |
"للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)." |
| 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 "Interface" |
| 241 |
msgstr "الواجهة" |
| 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 "Attribute" |
| 248 |
msgstr "السمة" |
| 249 |
|
| 250 |
#. type: tbl table |
| 251 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 252 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 253 |
#, no-wrap |
| 254 |
msgid "Value" |
| 255 |
msgstr "القيمة" |
| 256 |
|
| 257 |
#. type: tbl table |
| 258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 259 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 260 |
#, no-wrap |
| 261 |
msgid ".na\n" |
| 262 |
msgstr ".na\n" |
| 263 |
|
| 264 |
#. type: tbl table |
| 265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 267 |
#, no-wrap |
| 268 |
msgid ".nh\n" |
| 269 |
msgstr ".nh\n" |
| 270 |
|
| 271 |
#. type: tbl table |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
#, no-wrap |
| 275 |
msgid "" |
| 276 |
"B<stpncpy>(),\n" |
| 277 |
"B<strncpy>()" |
| 278 |
msgstr "" |
| 279 |
"B<stpncpy>(),\n" |
| 280 |
"B<strncpy>()" |
| 281 |
|
| 282 |
#. type: tbl table |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
#, no-wrap |
| 286 |
msgid "Thread safety" |
| 287 |
msgstr "سلامة الخيوط" |
| 288 |
|
| 289 |
#. type: tbl table |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
#, no-wrap |
| 293 |
msgid "MT-Safe" |
| 294 |
msgstr "MT-Safe" |
| 295 |
|
| 296 |
#. type: SH |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
#, no-wrap |
| 300 |
msgid "STANDARDS" |
| 301 |
msgstr "المعايير" |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
msgid "C11, POSIX.1-2008." |
| 307 |
msgstr "C11, POSIX.1-2008." |
| 308 |
|
| 309 |
#. type: Plain text |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
msgid "POSIX.1-2008." |
| 313 |
msgstr "POSIX.1-2008." |
| 314 |
|
| 315 |
#. type: SH |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
#, no-wrap |
| 319 |
msgid "HISTORY" |
| 320 |
msgstr "التاريخ" |
| 321 |
|
| 322 |
#. type: Plain text |
| 323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 325 |
msgid "C89, POSIX.1-2001, SVr4, 4.3BSD." |
| 326 |
msgstr "C89, POSIX.1-2001, SVr4, 4.3BSD." |
| 327 |
|
| 328 |
#. type: Plain text |
| 329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 330 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 331 |
msgid "glibc 1.07. POSIX.1-2008." |
| 332 |
msgstr "glibc 1.07. POSIX.1-2008." |
| 333 |
|
| 334 |
#. type: SH |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
#, no-wrap |
| 338 |
msgid "CAVEATS" |
| 339 |
msgstr "تحذيرات" |
| 340 |
|
| 341 |
#. type: Plain text |
| 342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 343 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 344 |
msgid "" |
| 345 |
"The name of these functions is confusing. These functions produce a null-" |
| 346 |
"padded character sequence, not a string (see B<string_copying>(7)). For " |
| 347 |
"example:" |
| 348 |
msgstr "" |
| 349 |
"اسم هذه الدوال مضلل. تنتج هذه الدوال تسلسل محارف مُحشو بأصفار، وليس سلسلة " |
| 350 |
"محارف (انظر B<string_copying>(7)). على سبيل المثال:" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
#, no-wrap |
| 356 |
msgid "" |
| 357 |
"strncpy(buf, \"1\", 5); // { \\[aq]1\\[aq], 0, 0, 0, 0 }\n" |
| 358 |
"strncpy(buf, \"1234\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq]," |
| 359 |
" \\[aq]3\\[aq], \\[aq]4\\[aq], 0 }\n" |
| 360 |
"strncpy(buf, \"12345\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq]," |
| 361 |
" \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n" |
| 362 |
"strncpy(buf, \"123456\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq]," |
| 363 |
" \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n" |
| 364 |
msgstr "" |
| 365 |
"strncpy(buf, \"1\", 5); // { \\[aq]1\\[aq], 0, 0, 0, 0 }\n" |
| 366 |
"strncpy(buf, \"1234\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq]," |
| 367 |
" \\[aq]3\\[aq], \\[aq]4\\[aq], 0 }\n" |
| 368 |
"strncpy(buf, \"12345\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq]," |
| 369 |
" \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n" |
| 370 |
"strncpy(buf, \"123456\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq]," |
| 371 |
" \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n" |
| 372 |
|
| 373 |
#. type: Plain text |
| 374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 375 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 376 |
msgid "" |
| 377 |
"It's impossible to distinguish truncation by the result of the call, from a " |
| 378 |
"character sequence that just fits the destination buffer; truncation should " |
| 379 |
"be detected by comparing the length of the input string with the size of the " |
| 380 |
"destination buffer." |
| 381 |
msgstr "" |
| 382 |
"من المستحيل التمييز بين الاقتطاع من نتيجة الاستدعاء، وبين تسلسل محارف يناسب " |
| 383 |
"المخزن المؤقت للوجهة تمامًا؛ يجب اكتشاف الاقتطاع بمقارنة طول سلسلة المحارف " |
| 384 |
"المدخلة مع حجم المخزن المؤقت للوجهة." |
| 385 |
|
| 386 |
#. type: Plain text |
| 387 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 388 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 389 |
msgid "" |
| 390 |
"If you're going to use this function in chained calls, it would be useful to " |
| 391 |
"develop a similar function that accepts a pointer to the end (one after the " |
| 392 |
"last element) of the destination buffer instead of its size." |
| 393 |
msgstr "" |
| 394 |
"إذا كنت ستستخدم هذه الدالة في استدعاءات متسلسلة، فسيكون من المفيد تطوير دالة " |
| 395 |
"مماثلة تقبل مؤشرًا إلى النهاية (واحد بعد آخر عنصر) من المخزن المؤقت للوجهة " |
| 396 |
"بدلاً من حجمه." |
| 397 |
|
| 398 |
#. type: SH |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
#, no-wrap |
| 402 |
msgid "EXAMPLES" |
| 403 |
msgstr "أمثلة" |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 407 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 408 |
#, no-wrap |
| 409 |
msgid "" |
| 410 |
"#include E<lt>err.hE<gt>\n" |
| 411 |
"#include E<lt>stdio.hE<gt>\n" |
| 412 |
"#include E<lt>stdlib.hE<gt>\n" |
| 413 |
"#include E<lt>string.hE<gt>\n" |
| 414 |
"\\&\n" |
| 415 |
"int\n" |
| 416 |
"main(void)\n" |
| 417 |
"{\n" |
| 418 |
" char *p;\n" |
| 419 |
" char buf1[20];\n" |
| 420 |
" char buf2[20];\n" |
| 421 |
" size_t len;\n" |
| 422 |
"\\&\n" |
| 423 |
" if (sizeof(buf2) E<lt> strlen(\"Hello world!\"))\n" |
| 424 |
" errx(\"strncpy: truncating character sequence\");\n" |
| 425 |
" strncpy(buf2, \"Hello world!\", sizeof(buf2));\n" |
| 426 |
" len = strnlen(buf2, sizeof(buf2));\n" |
| 427 |
"\\&\n" |
| 428 |
" printf(\"[len = %zu]: \", len);\n" |
| 429 |
" fwrite(buf2, 1, len, stdout);\n" |
| 430 |
" putchar(\\[aq]\\[rs]n\\[aq]);\n" |
| 431 |
"\\&\n" |
| 432 |
" if (sizeof(buf1) E<lt> strlen(\"Hello world!\"))\n" |
| 433 |
" errx(\"stpncpy: truncating character sequence\");\n" |
| 434 |
" p = stpncpy(buf1, \"Hello world!\", sizeof(buf1));\n" |
| 435 |
" len = p - buf1;\n" |
| 436 |
"\\&\n" |
| 437 |
" printf(\"[len = %zu]: \", len);\n" |
| 438 |
" fwrite(buf1, 1, len, stdout);\n" |
| 439 |
" putchar(\\[aq]\\[rs]n\\[aq]);\n" |
| 440 |
"\\&\n" |
| 441 |
" exit(EXIT_SUCCESS);\n" |
| 442 |
"}\n" |
| 443 |
msgstr "" |
| 444 |
"#include E<lt>err.hE<gt>\n" |
| 445 |
"#include E<lt>stdio.hE<gt>\n" |
| 446 |
"#include E<lt>stdlib.hE<gt>\n" |
| 447 |
"#include E<lt>string.hE<gt>\n" |
| 448 |
"\\&\n" |
| 449 |
"int\n" |
| 450 |
"main(void)\n" |
| 451 |
"{\n" |
| 452 |
" char *p;\n" |
| 453 |
" char buf1[20];\n" |
| 454 |
" char buf2[20];\n" |
| 455 |
" size_t len;\n" |
| 456 |
"\\&\n" |
| 457 |
" if (sizeof(buf2) E<lt> strlen(\"Hello world!\"))\n" |
| 458 |
" errx(\"strncpy: truncating character sequence\");\n" |
| 459 |
" strncpy(buf2, \"Hello world!\", sizeof(buf2));\n" |
| 460 |
" len = strnlen(buf2, sizeof(buf2));\n" |
| 461 |
"\\&\n" |
| 462 |
" printf(\"[len = %zu]: \", len);\n" |
| 463 |
" fwrite(buf2, 1, len, stdout);\n" |
| 464 |
" putchar(\\[aq]\\[rs]n\\[aq]);\n" |
| 465 |
"\\&\n" |
| 466 |
" if (sizeof(buf1) E<lt> strlen(\"Hello world!\"))\n" |
| 467 |
" errx(\"stpncpy: truncating character sequence\");\n" |
| 468 |
" p = stpncpy(buf1, \"Hello world!\", sizeof(buf1));\n" |
| 469 |
" len = p - buf1;\n" |
| 470 |
"\\&\n" |
| 471 |
" printf(\"[len = %zu]: \", len);\n" |
| 472 |
" fwrite(buf1, 1, len, stdout);\n" |
| 473 |
" putchar(\\[aq]\\[rs]n\\[aq]);\n" |
| 474 |
"\\&\n" |
| 475 |
" exit(EXIT_SUCCESS);\n" |
| 476 |
"}\n" |
| 477 |
|
| 478 |
#. SRC END |
| 479 |
#. type: SH |
| 480 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 481 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 482 |
#, no-wrap |
| 483 |
msgid "SEE ALSO" |
| 484 |
msgstr "انظر أيضًا" |
| 485 |
|
| 486 |
#. type: Plain text |
| 487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 488 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 489 |
msgid "B<wcpncpy>(3), B<string_copying>(7)" |
| 490 |
msgstr "B<wcpncpy>(3), B<string_copying>(7)" |
| 491 |
|
| 492 |
#. type: TH |
| 493 |
#: debian-trixie |
| 494 |
#, no-wrap |
| 495 |
msgid "2024-06-15" |
| 496 |
msgstr "15 يونيو 2024" |
| 497 |
|
| 498 |
#. type: TH |
| 499 |
#: debian-trixie |
| 500 |
#, no-wrap |
| 501 |
msgid "Linux man-pages 6.9.1" |
| 502 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 503 |
|
| 504 |
#. type: Plain text |
| 505 |
#: debian-trixie |
| 506 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 507 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 508 |
|
| 509 |
#. type: Plain text |
| 510 |
#: debian-trixie fedora-44 fedora-rawhide |
| 511 |
#, no-wrap |
| 512 |
msgid "" |
| 513 |
"B<char *strncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict " |
| 514 |
">I<src>B<,>\n" |
| 515 |
"B< size_t >I<dsize>B<);>\n" |
| 516 |
"B<char *stpncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict " |
| 517 |
">I<src>B<,>\n" |
| 518 |
"B< size_t >I<dsize>B<);>\n" |
| 519 |
msgstr "" |
| 520 |
"B<char *strncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict " |
| 521 |
">I<src>B<,>\n" |
| 522 |
"B< size_t >I<dsize>B<);>\n" |
| 523 |
"B<char *stpncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict " |
| 524 |
">I<src>B<,>\n" |
| 525 |
"B< size_t >I<dsize>B<);>\n" |
| 526 |
|
| 527 |
#. type: Plain text |
| 528 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 529 |
msgid "An implementation of these functions might be:" |
| 530 |
msgstr "قد يكون تنفيذ هذه الدوال كالتالي:" |
| 531 |
|
| 532 |
#. type: Plain text |
| 533 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 534 |
#, no-wrap |
| 535 |
msgid "" |
| 536 |
"char *\n" |
| 537 |
"strncpy(char *restrict dst, const char *restrict src, size_t dsize)\n" |
| 538 |
"{\n" |
| 539 |
" stpncpy(dst, src, dsize);\n" |
| 540 |
" return dst;\n" |
| 541 |
"}\n" |
| 542 |
"\\&\n" |
| 543 |
"char *\n" |
| 544 |
"stpncpy(char *restrict dst, const char *restrict src, size_t dsize)\n" |
| 545 |
"{\n" |
| 546 |
" size_t dlen;\n" |
| 547 |
"\\&\n" |
| 548 |
" dlen = strnlen(src, dsize);\n" |
| 549 |
" return memset(mempcpy(dst, src, dlen), 0, dsize - dlen);\n" |
| 550 |
"}\n" |
| 551 |
msgstr "" |
| 552 |
"char *\n" |
| 553 |
"strncpy(char *restrict dst, const char *restrict src, size_t dsize)\n" |
| 554 |
"{\n" |
| 555 |
" stpncpy(dst, src, dsize);\n" |
| 556 |
" return dst;\n" |
| 557 |
"}\n" |
| 558 |
"\\&\n" |
| 559 |
"char *\n" |
| 560 |
"stpncpy(char *restrict dst, const char *restrict src, size_t dsize)\n" |
| 561 |
"{\n" |
| 562 |
" size_t dlen;\n" |
| 563 |
"\\&\n" |
| 564 |
" dlen = strnlen(src, dsize);\n" |
| 565 |
" return memset(mempcpy(dst, src, dlen), 0, dsize - dlen);\n" |
| 566 |
"}\n" |
| 567 |
|
| 568 |
#. type: Plain text |
| 569 |
#: debian-trixie fedora-44 fedora-rawhide |
| 570 |
msgid "" |
| 571 |
"returns a pointer to one after the last character in the destination " |
| 572 |
"character sequence." |
| 573 |
msgstr "تُعيد مؤشرًا إلى ما بعد الحرف الأخير في تسلسل المحارف الوجهة." |
| 574 |
|
| 575 |
#. type: TH |
| 576 |
#: fedora-44 fedora-rawhide |
| 577 |
#, no-wrap |
| 578 |
msgid "2024-07-23" |
| 579 |
msgstr "23 يوليو 2024" |
| 580 |
|
| 581 |
#. type: TH |
| 582 |
#: fedora-44 fedora-rawhide |
| 583 |
#, no-wrap |
| 584 |
msgid "Linux man-pages 6.13" |
| 585 |
msgstr "صفحات دليل لينكس 6.13" |
| 586 |
|
| 587 |
#. type: TH |
| 588 |
#: mageia-cauldron |
| 589 |
#, no-wrap |
| 590 |
msgid "2026-01-06" |
| 591 |
msgstr "6 يناير 2026" |
| 592 |
|
| 593 |
#. type: TH |
| 594 |
#: mageia-cauldron |
| 595 |
#, no-wrap |
| 596 |
msgid "Linux man-pages 6.17" |
| 597 |
msgstr "صفحات دليل لينكس 6.17" |
| 598 |
|
| 599 |
#. type: TH |
| 600 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 601 |
#, no-wrap |
| 602 |
msgid "Linux man-pages (unreleased)" |
| 603 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |
| 604 |
|