| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003. |
| 5 |
# Stéphan Rafin <[email protected]>, 2002. |
| 6 |
# Thierry Vignaud <[email protected]>, 1999, 2002. |
| 7 |
# François Micaux, 2002. |
| 8 |
# Alain Portal <[email protected]>, 2003-2008. |
| 9 |
# Jean-Philippe Guérard <[email protected]>, 2005-2006. |
| 10 |
# Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007. |
| 11 |
# Julien Cristau <[email protected]>, 2006-2007. |
| 12 |
# Thomas Huriaux <[email protected]>, 2006-2008. |
| 13 |
# Nicolas François <[email protected]>, 2006-2008. |
| 14 |
# Florentin Duneau <[email protected]>, 2006-2010. |
| 15 |
# Simon Paillard <[email protected]>, 2006. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010-2012, 2014. |
| 18 |
# Frédéric Hantrais <[email protected]>, 2013, 2014. |
| 19 |
# Grégoire Scano <[email protected]>, 2021. |
| 20 |
# Jean-Pierre Giraud <[email protected]>, 2023. |
| 21 |
msgid "" |
| 22 |
msgstr "" |
| 23 |
"Project-Id-Version: perkamon\n" |
| 24 |
"POT-Creation-Date: 2026-06-05 06:45+0200\n" |
| 25 |
"PO-Revision-Date: 2023-07-01 00:58+0200\n" |
| 26 |
"Last-Translator: Jean-Pierre Giraud <[email protected]>\n" |
| 27 |
"Language-Team: French <[email protected]>\n" |
| 28 |
"Language: fr\n" |
| 29 |
"MIME-Version: 1.0\n" |
| 30 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 31 |
"Content-Transfer-Encoding: 8bit\n" |
| 32 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 33 |
"X-Generator: Lokalize 22.12.3\n" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 37 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "stpncpy" |
| 40 |
msgstr "stpncpy" |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 44 |
#, no-wrap |
| 45 |
msgid "2026-02-25" |
| 46 |
msgstr "25 février 2026" |
| 47 |
|
| 48 |
#. type: TH |
| 49 |
#: archlinux debian-unstable |
| 50 |
#, no-wrap |
| 51 |
msgid "Linux man-pages 6.18" |
| 52 |
msgstr "Pages du manuel de Linux 6.18" |
| 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 "NAME" |
| 59 |
msgstr "NOM" |
| 60 |
|
| 61 |
#. type: Plain text |
| 62 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 63 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
msgid "" |
| 65 |
"stpncpy, strncpy - fill a fixed-size buffer with non-null bytes from a " |
| 66 |
"string, padding with null bytes as needed" |
| 67 |
msgstr "" |
| 68 |
|
| 69 |
#. type: SH |
| 70 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 71 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
#, no-wrap |
| 73 |
msgid "LIBRARY" |
| 74 |
msgstr "BIBLIOTHÈQUE" |
| 75 |
|
| 76 |
#. type: Plain text |
| 77 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 78 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 79 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 80 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 81 |
|
| 82 |
#. type: SH |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "SYNOPSIS" |
| 87 |
msgstr "SYNOPSIS" |
| 88 |
|
| 89 |
#. type: Plain text |
| 90 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 91 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 92 |
#, no-wrap |
| 93 |
msgid "B<#include E<lt>string.hE<gt>>\n" |
| 94 |
msgstr "B<#include E<lt>string.hE<gt>>\n" |
| 95 |
|
| 96 |
#. type: Plain text |
| 97 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 98 |
#: opensuse-tumbleweed |
| 99 |
#, fuzzy, no-wrap |
| 100 |
#| msgid "" |
| 101 |
#| "B<char *strncpy(char >I<dst>B<[restrict .>I<sz>B<], const char *restrict >I<src>B<,>\n" |
| 102 |
#| "B< size_t >I<sz>B<);>\n" |
| 103 |
#| "B<char *stpncpy(char >I<dst>B<[restrict .>I<sz>B<], const char *restrict >I<src>B<,>\n" |
| 104 |
#| "B< size_t >I<sz>B<);>\n" |
| 105 |
msgid "" |
| 106 |
"B<char *strncpy(>size_t dsize;\n" |
| 107 |
"B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict >I<src>B<,>\n" |
| 108 |
"B< size_t >I<dsize>B<);>\n" |
| 109 |
"B<char *stpncpy(>size_t dsize;\n" |
| 110 |
"B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict >I<src>B<,>\n" |
| 111 |
"B< size_t >I<dsize>B<);>\n" |
| 112 |
msgstr "" |
| 113 |
"B<char *strncpy(char >I<dst>B<[restrict .>I<sz>B<], const char *restrict >I<src>B<,>\n" |
| 114 |
"B< size_t >I<sz>B<);>\n" |
| 115 |
"B<char *stpncpy(char >I<dst>B<[restrict .>I<sz>B<], const char *restrict >I<src>B<,>\n" |
| 116 |
"B< size_t >I<sz>B<);>\n" |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
msgid "" |
| 122 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 123 |
msgstr "" |
| 124 |
"Exigences de macros de test de fonctionnalités pour la glibc (consulter " |
| 125 |
"B<feature_test_macros>(7)) :" |
| 126 |
|
| 127 |
#. type: Plain text |
| 128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 130 |
msgid "B<stpncpy>():" |
| 131 |
msgstr "B<stpncpy>()\\ :" |
| 132 |
|
| 133 |
#. type: Plain text |
| 134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 136 |
#, no-wrap |
| 137 |
msgid "" |
| 138 |
" Since glibc 2.10:\n" |
| 139 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 140 |
" Before glibc 2.10:\n" |
| 141 |
" _GNU_SOURCE\n" |
| 142 |
msgstr "" |
| 143 |
" Depuis la glibc 2.10 :\n" |
| 144 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 145 |
" Avant la glibc 2.10 :\n" |
| 146 |
" _GNU_SOURCE\n" |
| 147 |
|
| 148 |
#. type: SH |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
#, no-wrap |
| 152 |
msgid "DESCRIPTION" |
| 153 |
msgstr "DESCRIPTION" |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
#, fuzzy |
| 159 |
#| msgid "" |
| 160 |
#| "These functions copy the string pointed to by I<src> into a null-padded " |
| 161 |
#| "character sequence at the fixed-width buffer pointed to by I<dst>. If " |
| 162 |
#| "the destination buffer, limited by its size, isn't large enough to hold " |
| 163 |
#| "the copy, the resulting character sequence is truncated. For the " |
| 164 |
#| "difference between the two functions, see RETURN VALUE." |
| 165 |
msgid "" |
| 166 |
"These functions copy non-null bytes from the string pointed to by I<src> " |
| 167 |
"into the array pointed to by I<dst>. If the source has too few non-null " |
| 168 |
"bytes to fill the destination, the functions pad the destination with " |
| 169 |
"trailing null bytes. If the destination buffer, limited by its size, isn't " |
| 170 |
"large enough to hold the copy, the resulting character sequence is " |
| 171 |
"truncated. For the difference between the two functions, see RETURN VALUE." |
| 172 |
msgstr "" |
| 173 |
"Ces fonctions copient la chaîne pointée par I<src> dans une séquence de " |
| 174 |
"caractères remplie de caractères NULL à l'emplacement du tampon de largeur " |
| 175 |
"fixe pointé par I<dst>. Si le tampon de destination, de taille limitée, " |
| 176 |
"n'est pas assez grand pour contenir la copie, la chaîne de caractères " |
| 177 |
"résultante est tronquée. Pour la différences entres les deux fonctions, " |
| 178 |
"consultez VALEUR RENVOYÉE." |
| 179 |
|
| 180 |
#. type: TP |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
#, no-wrap |
| 184 |
msgid "B<strncpy>()" |
| 185 |
msgstr "B<strncpy>()" |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 189 |
msgid "It is equivalent to" |
| 190 |
msgstr "C'est équivalent à\\ :" |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
#, no-wrap |
| 195 |
msgid "stpncpy(dst, src, dsize), dst\n" |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#. type: TP |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
#, no-wrap |
| 202 |
msgid "B<stpncpy>()" |
| 203 |
msgstr "B<stpncpy>()" |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
#, no-wrap |
| 208 |
msgid "" |
| 209 |
"memset(mempcpy(dst, src, strnlen(src, dsize)), \\[aq]\\[rs]0\\[aq],\n" |
| 210 |
" dsize - strnlen(src, dsize))\n" |
| 211 |
msgstr "" |
| 212 |
|
| 213 |
#. type: SH |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
#, no-wrap |
| 217 |
msgid "RETURN VALUE" |
| 218 |
msgstr "VALEUR RENVOYÉE" |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 222 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
msgid "returns I<dst>." |
| 224 |
msgstr "renvoie I<dst>." |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 228 |
#: opensuse-tumbleweed |
| 229 |
#, fuzzy |
| 230 |
#| msgid "" |
| 231 |
#| "returns a pointer to one after the last character in the destination " |
| 232 |
#| "character sequence." |
| 233 |
msgid "" |
| 234 |
"returns a pointer to one past the last non-null character written, that is, " |
| 235 |
"I<dest\\ +\\ strnlen(src,\\ n)>." |
| 236 |
msgstr "" |
| 237 |
"renvoie un pointeur sur un octet après le dernier caractère dans la séquence " |
| 238 |
"de caractères de destination." |
| 239 |
|
| 240 |
#. type: SH |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
#, no-wrap |
| 244 |
msgid "ATTRIBUTES" |
| 245 |
msgstr "ATTRIBUTS" |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "" |
| 251 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 252 |
msgstr "" |
| 253 |
"Pour une explication des termes utilisés dans cette section, consulter " |
| 254 |
"B<attributes>(7)." |
| 255 |
|
| 256 |
#. type: tbl table |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
#, no-wrap |
| 260 |
msgid "Interface" |
| 261 |
msgstr "Interface" |
| 262 |
|
| 263 |
#. type: tbl table |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
#, no-wrap |
| 267 |
msgid "Attribute" |
| 268 |
msgstr "Attribut" |
| 269 |
|
| 270 |
#. type: tbl table |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
#, no-wrap |
| 274 |
msgid "Value" |
| 275 |
msgstr "Valeur" |
| 276 |
|
| 277 |
#. type: tbl table |
| 278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 279 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 280 |
#, no-wrap |
| 281 |
msgid ".na\n" |
| 282 |
msgstr ".na\n" |
| 283 |
|
| 284 |
#. type: tbl table |
| 285 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 286 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 287 |
#, no-wrap |
| 288 |
msgid ".nh\n" |
| 289 |
msgstr ".nh\n" |
| 290 |
|
| 291 |
#. type: tbl table |
| 292 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 293 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 294 |
#, no-wrap |
| 295 |
msgid "" |
| 296 |
"B<stpncpy>(),\n" |
| 297 |
"B<strncpy>()" |
| 298 |
msgstr "" |
| 299 |
"B<stpncpy>(),\n" |
| 300 |
"B<strncpy>()" |
| 301 |
|
| 302 |
#. type: tbl table |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
#, no-wrap |
| 306 |
msgid "Thread safety" |
| 307 |
msgstr "Sécurité des threads" |
| 308 |
|
| 309 |
#. type: tbl table |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
#, no-wrap |
| 313 |
msgid "MT-Safe" |
| 314 |
msgstr "MT-Safe" |
| 315 |
|
| 316 |
#. type: SH |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
#, no-wrap |
| 320 |
msgid "STANDARDS" |
| 321 |
msgstr "NORMES" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 325 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 326 |
msgid "C11, POSIX.1-2008." |
| 327 |
msgstr "C11, POSIX.1-2008." |
| 328 |
|
| 329 |
#. type: Plain text |
| 330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 331 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 332 |
msgid "POSIX.1-2008." |
| 333 |
msgstr "POSIX.1-2008." |
| 334 |
|
| 335 |
#. type: SH |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
#, no-wrap |
| 339 |
msgid "HISTORY" |
| 340 |
msgstr "HISTORIQUE" |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 345 |
msgid "C89, POSIX.1-2001, SVr4, 4.3BSD." |
| 346 |
msgstr "C89, POSIX.1-2001, SVr4, 4.3BSD." |
| 347 |
|
| 348 |
#. type: Plain text |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
msgid "glibc 1.07. POSIX.1-2008." |
| 352 |
msgstr "glibc 1.07. POSIX.1-2008." |
| 353 |
|
| 354 |
#. type: SH |
| 355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 356 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 357 |
#, no-wrap |
| 358 |
msgid "CAVEATS" |
| 359 |
msgstr "AVERTISSEMENTS" |
| 360 |
|
| 361 |
#. type: Plain text |
| 362 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 363 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 364 |
#, fuzzy |
| 365 |
#| msgid "" |
| 366 |
#| "The name of these functions is confusing. These functions produce a null-" |
| 367 |
#| "padded character sequence, not a string (see B<string_copying>(7))." |
| 368 |
msgid "" |
| 369 |
"The name of these functions is confusing. These functions produce a null-" |
| 370 |
"padded character sequence, not a string (see B<string_copying>(7)). For " |
| 371 |
"example:" |
| 372 |
msgstr "" |
| 373 |
"Le nom de ces fonctions prête à confusion. Ces fonctions produisent une " |
| 374 |
"séquence de caractères complétée par des caractères NULL, pas une chaîne " |
| 375 |
"(voir B<string_copying>(7))." |
| 376 |
|
| 377 |
#. type: Plain text |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
#, no-wrap |
| 381 |
msgid "" |
| 382 |
"strncpy(buf, \"1\", 5); // { \\[aq]1\\[aq], 0, 0, 0, 0 }\n" |
| 383 |
"strncpy(buf, \"1234\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], 0 }\n" |
| 384 |
"strncpy(buf, \"12345\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n" |
| 385 |
"strncpy(buf, \"123456\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n" |
| 386 |
msgstr "" |
| 387 |
|
| 388 |
#. type: Plain text |
| 389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 391 |
msgid "" |
| 392 |
"It's impossible to distinguish truncation by the result of the call, from a " |
| 393 |
"character sequence that just fits the destination buffer; truncation should " |
| 394 |
"be detected by comparing the length of the input string with the size of the " |
| 395 |
"destination buffer." |
| 396 |
msgstr "" |
| 397 |
"Il est impossible de distinguer une troncature comme résultat de l'appel " |
| 398 |
"d'une séquence de caractères qui s'ajuste au tampon de destination ; la " |
| 399 |
"troncature peut être détectée en comparant la longueur de la chaîne d'entrée " |
| 400 |
"à celle du tampon de destination." |
| 401 |
|
| 402 |
#. type: Plain text |
| 403 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 404 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 405 |
msgid "" |
| 406 |
"If you're going to use this function in chained calls, it would be useful to " |
| 407 |
"develop a similar function that accepts a pointer to the end (one after the " |
| 408 |
"last element) of the destination buffer instead of its size." |
| 409 |
msgstr "" |
| 410 |
"Si vous comptez utiliser cette fonction dans une chaîne d'appels, il " |
| 411 |
"pourrait être utile de développer une fonction similaire qui accepte un " |
| 412 |
"pointeur sur la fin (un octet après le dernier élément) du tampon de " |
| 413 |
"destination plutôt qu'en donnant sa taille." |
| 414 |
|
| 415 |
#. type: SH |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
#, no-wrap |
| 419 |
msgid "EXAMPLES" |
| 420 |
msgstr "EXEMPLES" |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
#, no-wrap |
| 426 |
msgid "" |
| 427 |
"#include E<lt>err.hE<gt>\n" |
| 428 |
"#include E<lt>stdio.hE<gt>\n" |
| 429 |
"#include E<lt>stdlib.hE<gt>\n" |
| 430 |
"#include E<lt>string.hE<gt>\n" |
| 431 |
"\\&\n" |
| 432 |
"int\n" |
| 433 |
"main(void)\n" |
| 434 |
"{\n" |
| 435 |
" char *p;\n" |
| 436 |
" char buf1[20];\n" |
| 437 |
" char buf2[20];\n" |
| 438 |
" size_t len;\n" |
| 439 |
"\\&\n" |
| 440 |
" if (sizeof(buf2) E<lt> strlen(\"Hello world!\"))\n" |
| 441 |
" errx(\"strncpy: truncating character sequence\");\n" |
| 442 |
" strncpy(buf2, \"Hello world!\", sizeof(buf2));\n" |
| 443 |
" len = strnlen(buf2, sizeof(buf2));\n" |
| 444 |
"\\&\n" |
| 445 |
" printf(\"[len = %zu]: \", len);\n" |
| 446 |
" fwrite(buf2, 1, len, stdout);\n" |
| 447 |
" putchar(\\[aq]\\[rs]n\\[aq]);\n" |
| 448 |
"\\&\n" |
| 449 |
" if (sizeof(buf1) E<lt> strlen(\"Hello world!\"))\n" |
| 450 |
" errx(\"stpncpy: truncating character sequence\");\n" |
| 451 |
" p = stpncpy(buf1, \"Hello world!\", sizeof(buf1));\n" |
| 452 |
" len = p - buf1;\n" |
| 453 |
"\\&\n" |
| 454 |
" printf(\"[len = %zu]: \", len);\n" |
| 455 |
" fwrite(buf1, 1, len, stdout);\n" |
| 456 |
" putchar(\\[aq]\\[rs]n\\[aq]);\n" |
| 457 |
"\\&\n" |
| 458 |
" exit(EXIT_SUCCESS);\n" |
| 459 |
"}\n" |
| 460 |
msgstr "" |
| 461 |
|
| 462 |
#. SRC END |
| 463 |
#. type: SH |
| 464 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 465 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 466 |
#, no-wrap |
| 467 |
msgid "SEE ALSO" |
| 468 |
msgstr "VOIR AUSSI" |
| 469 |
|
| 470 |
#. type: Plain text |
| 471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 472 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 473 |
msgid "B<wcpncpy>(3), B<string_copying>(7)" |
| 474 |
msgstr "B<wcpncpy>(3), B<string_copying>(7)" |
| 475 |
|
| 476 |
#. type: TH |
| 477 |
#: debian-trixie |
| 478 |
#, no-wrap |
| 479 |
msgid "2024-06-15" |
| 480 |
msgstr "15 juin 2024" |
| 481 |
|
| 482 |
#. type: TH |
| 483 |
#: debian-trixie |
| 484 |
#, no-wrap |
| 485 |
msgid "Linux man-pages 6.9.1" |
| 486 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 487 |
|
| 488 |
#. type: Plain text |
| 489 |
#: debian-trixie |
| 490 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 491 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 492 |
|
| 493 |
#. type: Plain text |
| 494 |
#: debian-trixie fedora-44 fedora-rawhide |
| 495 |
#, fuzzy, no-wrap |
| 496 |
#| msgid "" |
| 497 |
#| "B<char *strncpy(char >I<dst>B<[restrict .>I<sz>B<], const char *restrict >I<src>B<,>\n" |
| 498 |
#| "B< size_t >I<sz>B<);>\n" |
| 499 |
#| "B<char *stpncpy(char >I<dst>B<[restrict .>I<sz>B<], const char *restrict >I<src>B<,>\n" |
| 500 |
#| "B< size_t >I<sz>B<);>\n" |
| 501 |
msgid "" |
| 502 |
"B<char *strncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n" |
| 503 |
"B< size_t >I<dsize>B<);>\n" |
| 504 |
"B<char *stpncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n" |
| 505 |
"B< size_t >I<dsize>B<);>\n" |
| 506 |
msgstr "" |
| 507 |
"B<char *strncpy(char >I<dst>B<[restrict .>I<sz>B<], const char *restrict >I<src>B<,>\n" |
| 508 |
"B< size_t >I<sz>B<);>\n" |
| 509 |
"B<char *stpncpy(char >I<dst>B<[restrict .>I<sz>B<], const char *restrict >I<src>B<,>\n" |
| 510 |
"B< size_t >I<sz>B<);>\n" |
| 511 |
|
| 512 |
#. type: Plain text |
| 513 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 514 |
msgid "An implementation of these functions might be:" |
| 515 |
msgstr "Une implémentation de ces fonctions pourrait être cela :" |
| 516 |
|
| 517 |
#. type: Plain text |
| 518 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 519 |
#, fuzzy, no-wrap |
| 520 |
#| msgid "" |
| 521 |
#| "char *\n" |
| 522 |
#| "stpncpy(char *restrict dst, const char *restrict src, size_t sz)\n" |
| 523 |
#| "{\n" |
| 524 |
#| " bzero(dst, sz);\n" |
| 525 |
#| " return mempcpy(dst, src, strnlen(src, sz));\n" |
| 526 |
#| "}\n" |
| 527 |
msgid "" |
| 528 |
"char *\n" |
| 529 |
"strncpy(char *restrict dst, const char *restrict src, size_t dsize)\n" |
| 530 |
"{\n" |
| 531 |
" stpncpy(dst, src, dsize);\n" |
| 532 |
" return dst;\n" |
| 533 |
"}\n" |
| 534 |
"\\&\n" |
| 535 |
"char *\n" |
| 536 |
"stpncpy(char *restrict dst, const char *restrict src, size_t dsize)\n" |
| 537 |
"{\n" |
| 538 |
" size_t dlen;\n" |
| 539 |
"\\&\n" |
| 540 |
" dlen = strnlen(src, dsize);\n" |
| 541 |
" return memset(mempcpy(dst, src, dlen), 0, dsize - dlen);\n" |
| 542 |
"}\n" |
| 543 |
msgstr "" |
| 544 |
"char *\n" |
| 545 |
"stpncpy(char *restrict dst, const char *restrict src, size_t sz)\n" |
| 546 |
"{\n" |
| 547 |
" bzero(dst, sz);\n" |
| 548 |
" return mempcpy(dst, src, strnlen(src, sz));\n" |
| 549 |
"}\n" |
| 550 |
|
| 551 |
#. type: Plain text |
| 552 |
#: debian-trixie fedora-44 fedora-rawhide |
| 553 |
msgid "" |
| 554 |
"returns a pointer to one after the last character in the destination " |
| 555 |
"character sequence." |
| 556 |
msgstr "" |
| 557 |
"renvoie un pointeur sur un octet après le dernier caractère dans la séquence " |
| 558 |
"de caractères de destination." |
| 559 |
|
| 560 |
#. type: TH |
| 561 |
#: fedora-44 fedora-rawhide |
| 562 |
#, no-wrap |
| 563 |
msgid "2024-07-23" |
| 564 |
msgstr "23 juillet 2024" |
| 565 |
|
| 566 |
#. type: TH |
| 567 |
#: fedora-44 fedora-rawhide |
| 568 |
#, no-wrap |
| 569 |
msgid "Linux man-pages 6.13" |
| 570 |
msgstr "Pages du manuel de Linux 6.13" |
| 571 |
|
| 572 |
#. type: TH |
| 573 |
#: mageia-cauldron |
| 574 |
#, no-wrap |
| 575 |
msgid "2026-01-06" |
| 576 |
msgstr "6 janvier 2026" |
| 577 |
|
| 578 |
#. type: TH |
| 579 |
#: mageia-cauldron |
| 580 |
#, no-wrap |
| 581 |
msgid "Linux man-pages 6.17" |
| 582 |
msgstr "Pages du manuel de Linux 6.17" |
| 583 |
|
| 584 |
#. type: TH |
| 585 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 586 |
#, no-wrap |
| 587 |
msgid "Linux man-pages (unreleased)" |
| 588 |
msgstr "Pages du manuel de Linux (non publiées)" |