Debian Codegraph @

po/fr/archive/man3/strcat.3.po

raw
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]>, 2020.
20 msgid ""
21 msgstr ""
22 "Project-Id-Version: perkamon\n"
23 "POT-Creation-Date: 2023-08-27 17:24+0200\n"
24 "PO-Revision-Date: 2023-03-20 18:33+0100\n"
25 "Last-Translator: Grégoire Scano <[email protected]>\n"
26 "Language-Team: French <[email protected]>\n"
27 "Language: fr\n"
28 "MIME-Version: 1.0\n"
29 "Content-Type: text/plain; charset=UTF-8\n"
30 "Content-Transfer-Encoding: 8bit\n"
31 "Plural-Forms: nplurals=2; plural=n > 1;\n"
32 "X-Generator: Lokalize 22.12.1\n"
33
34 #. type: TH
35 #: opensuse-leap-15-6
36 #, no-wrap
37 msgid "STRCAT"
38 msgstr "STRCAT"
39
40 #. type: TH
41 #: opensuse-leap-15-6
42 #, no-wrap
43 msgid "2017-09-15"
44 msgstr "15 septembre 2017"
45
46 #. type: TH
47 #: opensuse-leap-15-6
48 #, no-wrap
49 msgid "GNU"
50 msgstr "GNU"
51
52 #. type: TH
53 #: opensuse-leap-15-6
54 #, no-wrap
55 msgid "Linux Programmer's Manual"
56 msgstr "Manuel du programmeur Linux"
57
58 #. type: SH
59 #: opensuse-leap-15-6
60 #, no-wrap
61 msgid "NAME"
62 msgstr "NOM"
63
64 #. type: Plain text
65 #: opensuse-leap-15-6
66 msgid "strcat, strncat - concatenate two strings"
67 msgstr "strcat, strncat - Concaténer deux chaînes"
68
69 #. type: SH
70 #: opensuse-leap-15-6
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SYNOPSIS"
74
75 #. type: Plain text
76 #: opensuse-leap-15-6
77 #, no-wrap
78 msgid "B<#include E<lt>string.hE<gt>>\n"
79 msgstr "B<#include E<lt>string.hE<gt>>\n"
80
81 #. type: Plain text
82 #: opensuse-leap-15-6
83 #, no-wrap
84 msgid "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
85 msgstr "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
86
87 #. type: Plain text
88 #: opensuse-leap-15-6
89 #, no-wrap
90 msgid "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
91 msgstr "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
92
93 #. type: SH
94 #: opensuse-leap-15-6
95 #, no-wrap
96 msgid "DESCRIPTION"
97 msgstr "DESCRIPTION"
98
99 #. type: Plain text
100 #: opensuse-leap-15-6
101 msgid ""
102 "The B<strcat>() function appends the I<src> string to the I<dest> string, "
103 "overwriting the terminating null byte (\\(aq\\e0\\(aq) at the end of "
104 "I<dest>, and then adds a terminating null byte. The strings may not "
105 "overlap, and the I<dest> string must have enough space for the result. If "
106 "I<dest> is not large enough, program behavior is unpredictable; I<buffer "
107 "overruns are a favorite avenue for attacking secure programs>."
108 msgstr ""
109 "La fonction B<strcat>() ajoute la chaîne I<src> à la fin de la chaîne "
110 "I<dest> en écrasant l'octet NULL final («\\ \\e0\\ ») à la fin de I<dest>, "
111 "puis en ajoutant un nouvel octet NULL final. Les chaînes ne doivent pas se "
112 "chevaucher, et la chaîne I<dest> doit être assez grande pour accueillir le "
113 "résultat. Si I<dest> n'est pas assez grande, le comportement du programme "
114 "est imprévisible. I<Les dépassements de tampon font partie des moyens "
115 "préférés pour attaquer les programmes sécurisés>."
116
117 #. type: Plain text
118 #: opensuse-leap-15-6
119 msgid "The B<strncat>() function is similar, except that"
120 msgstr "La fonction B<strncat>() est similaire, à la différence que :"
121
122 #. type: IP
123 #: opensuse-leap-15-6
124 #, no-wrap
125 msgid "*"
126 msgstr "*"
127
128 #. type: Plain text
129 #: opensuse-leap-15-6
130 msgid "it will use at most I<n> bytes from I<src>; and"
131 msgstr "elle ne prend en compte que les I<n> premiers octets de I<src> ;"
132
133 #. type: Plain text
134 #: opensuse-leap-15-6
135 msgid ""
136 "I<src> does not need to be null-terminated if it contains I<n> or more bytes."
137 msgstr ""
138 "I<src> n'a pas besoin d'être terminée par NULL si elle contient au moins "
139 "I<n> octets."
140
141 #. type: Plain text
142 #: opensuse-leap-15-6
143 msgid ""
144 "As with B<strcat>(), the resulting string in I<dest> is always null-"
145 "terminated."
146 msgstr ""
147 "Comme pour B<strcat>(), la chaîne résultante dans I<dest> est toujours "
148 "terminée par NULL."
149
150 #. type: Plain text
151 #: opensuse-leap-15-6
152 msgid ""
153 "If I<src> contains I<n> or more bytes, B<strncat>() writes I<n+1> bytes to "
154 "I<dest> (I<n> from I<src> plus the terminating null byte). Therefore, the "
155 "size of I<dest> must be at least I<strlen(dest)+n+1>."
156 msgstr ""
157 "Si I<src> contient au moins I<n> octets, B<strncat>() écrit I<n + 1> octets "
158 "dans I<dest> (I<n> octets de I<src> plus l'octet NULL final). De ce fait, "
159 "I<dest> doit être au moins de taille I<strlen(dest) +n + 1>."
160
161 #. type: Plain text
162 #: opensuse-leap-15-6
163 msgid "A simple implementation of B<strncat>() might be:"
164 msgstr "Une implémentation simple de B<strncat>() pourrait être :"
165
166 #. type: Plain text
167 #: opensuse-leap-15-6
168 #, no-wrap
169 msgid ""
170 "char *\n"
171 "strncat(char *dest, const char *src, size_t n)\n"
172 "{\n"
173 " size_t dest_len = strlen(dest);\n"
174 " size_t i;\n"
175 msgstr ""
176 "char *\n"
177 "strncat(char *dest, const char *src, size_t n)\n"
178 "{\n"
179 " size_t dest_len = strlen(dest);\n"
180 " size_t i;\n"
181
182 #. type: Plain text
183 #: opensuse-leap-15-6
184 #, no-wrap
185 msgid ""
186 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
187 " dest[dest_len + i] = src[i];\n"
188 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
189 msgstr ""
190 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
191 " dest[dest_len + i] = src[i];\n"
192 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
193
194 #. type: Plain text
195 #: opensuse-leap-15-6
196 #, no-wrap
197 msgid ""
198 " return dest;\n"
199 "}\n"
200 msgstr ""
201 " return dest;\n"
202 "}\n"
203
204 #. type: SH
205 #: opensuse-leap-15-6
206 #, no-wrap
207 msgid "RETURN VALUE"
208 msgstr "VALEUR RENVOYÉE"
209
210 #. type: Plain text
211 #: opensuse-leap-15-6
212 msgid ""
213 "The B<strcat>() and B<strncat>() functions return a pointer to the "
214 "resulting string I<dest>."
215 msgstr ""
216 "Les fonctions B<strcat>() et B<strncat>() renvoient un pointeur sur la "
217 "chaîne résultat I<dest>."
218
219 #. type: SH
220 #: opensuse-leap-15-6
221 #, no-wrap
222 msgid "ATTRIBUTES"
223 msgstr "ATTRIBUTS"
224
225 #. type: Plain text
226 #: opensuse-leap-15-6
227 msgid ""
228 "For an explanation of the terms used in this section, see B<attributes>(7)."
229 msgstr ""
230 "Pour une explication des termes utilisés dans cette section, consulter "
231 "B<attributes>(7)."
232
233 #. type: tbl table
234 #: opensuse-leap-15-6
235 #, no-wrap
236 msgid "Interface"
237 msgstr "Interface"
238
239 #. type: tbl table
240 #: opensuse-leap-15-6
241 #, no-wrap
242 msgid "Attribute"
243 msgstr "Attribut"
244
245 #. type: tbl table
246 #: opensuse-leap-15-6
247 #, no-wrap
248 msgid "Value"
249 msgstr "Valeur"
250
251 #. type: tbl table
252 #: opensuse-leap-15-6
253 #, no-wrap
254 msgid ""
255 "B<strcat>(),\n"
256 "B<strncat>()"
257 msgstr ""
258 "B<strcat>(),\n"
259 "B<strncat>()"
260
261 #. type: tbl table
262 #: opensuse-leap-15-6
263 #, no-wrap
264 msgid "Thread safety"
265 msgstr "Sécurité des threads"
266
267 #. type: tbl table
268 #: opensuse-leap-15-6
269 #, no-wrap
270 msgid "MT-Safe"
271 msgstr "MT-Safe"
272
273 #. type: SH
274 #: opensuse-leap-15-6
275 #, no-wrap
276 msgid "CONFORMING TO"
277 msgstr "CONFORMITÉ"
278
279 #. type: Plain text
280 #: opensuse-leap-15-6
281 msgid "POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD."
282 msgstr "POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD."
283
284 #. type: SH
285 #: opensuse-leap-15-6
286 #, no-wrap
287 msgid "NOTES"
288 msgstr "NOTES"
289
290 #. type: Plain text
291 #: opensuse-leap-15-6
292 msgid ""
293 "Some systems (the BSDs, Solaris, and others) provide the following function:"
294 msgstr ""
295 "Certains systèmes (BSD, Solaris et autres) fournissent la fonction suivante :"
296
297 #. type: Plain text
298 #: opensuse-leap-15-6
299 #, no-wrap
300 msgid " size_t strlcat(char *dest, const char *src, size_t size);\n"
301 msgstr " size_t strlcat(char *dest, const char *src, size_t size);\n"
302
303 #. https://lwn.net/Articles/506530/
304 #. type: Plain text
305 #: opensuse-leap-15-6
306 msgid ""
307 "This function appends the null-terminated string I<src> to the string "
308 "I<dest>, copying at most I<size-strlen(dest)-1> from I<src>, and adds a "
309 "terminating null byte to the result, I<unless> I<size> is less than "
310 "I<strlen(dest)>. This function fixes the buffer overrun problem of "
311 "B<strcat>(), but the caller must still handle the possibility of data loss "
312 "if I<size> is too small. The function returns the length of the string "
313 "B<strlcat>() tried to create; if the return value is greater than or equal "
314 "to I<size>, data loss occurred. If data loss matters, the caller I<must> "
315 "either check the arguments before the call, or test the function return "
316 "value. B<strlcat>() is not present in glibc and is not standardized by "
317 "POSIX, but is available on Linux via the I<libbsd> library."
318 msgstr ""
319 "Cette fonction ajoute la chaîne I<src>, terminée par NULL, à la chaîne "
320 "I<dest> en copiant au plus I<size-strlen(dest) - 1> depuis I<src> et ajoute "
321 "l'octet NULL en fin de chaîne au résultat I<sauf> si I<size> est inférieur à "
322 "I<strlen(dest)>. Cette fonction corrige le problème de dépassement de tampon "
323 "de B<strcat>(), mais l'appelant doit quand même gérer la possibilité de "
324 "pertes de données si I<size> est trop petit. La fonction renvoie la longueur "
325 "de la chaîne que B<strlcat>() a essayé de créer. Si la valeur renvoyée est "
326 "supérieure ou égale à I<size>, c'est qu'il y a eu perte de données. Si les "
327 "pertes de données sont problématiques, l'appelant I<doit> soit vérifier les "
328 "arguments avant l'appel, soit tester la valeur de retour de la fonction. "
329 "B<strlcat>() n'existe pas dans glibc et n'est pas normalisée par POSIX, mais "
330 "est disponible sous Linux avec la bibliothèque I<libbsd>."
331
332 #. type: SH
333 #: opensuse-leap-15-6
334 #, no-wrap
335 msgid "EXAMPLE"
336 msgstr "EXEMPLE"
337
338 #. type: Plain text
339 #: opensuse-leap-15-6
340 msgid ""
341 "Because B<strcat>() and B<strncat>() must find the null byte that "
342 "terminates the string I<dest> using a search that starts at the beginning of "
343 "the string, the execution time of these functions scales according to the "
344 "length of the string I<dest>. This can be demonstrated by running the "
345 "program below. (If the goal is to concatenate many strings to one target, "
346 "then manually copying the bytes from each source string while maintaining a "
347 "pointer to the end of the target string will provide better performance.)"
348 msgstr ""
349 "Parce que les fonctions B<strcat>() et B<strncat>() doivent rechercher "
350 "l'octet NULL qui termine I<dest> en partant du début de la chaîne, le temps "
351 "d'exécution de ces fonctions est linéaire en la longueur de la chaîne "
352 "I<dest>. Cela peut être mis en évidence avec le programme suivant (si "
353 "l'objectif est de concaténer de nombreuses chaînes dans une chaîne tierce, "
354 "la copie manuelle des octets de chacune de ces chaînes source tout en "
355 "maintenant un pointeur sur la fin de la chaîne cible donnera de meilleures "
356 "performances)."
357
358 #. type: SS
359 #: opensuse-leap-15-6
360 #, no-wrap
361 msgid "Program source"
362 msgstr "Source du programme"
363
364 #. type: Plain text
365 #: opensuse-leap-15-6
366 #, no-wrap
367 msgid ""
368 "#include E<lt>string.hE<gt>\n"
369 "#include E<lt>time.hE<gt>\n"
370 "#include E<lt>stdio.hE<gt>\n"
371 msgstr ""
372 "#include E<lt>string.hE<gt>\n"
373 "#include E<lt>time.hE<gt>\n"
374 "#include E<lt>stdio.hE<gt>\n"
375
376 #. type: Plain text
377 #: opensuse-leap-15-6
378 #, no-wrap
379 msgid ""
380 "int\n"
381 "main(int argc, char *argv[])\n"
382 "{\n"
383 "#define LIM 4000000\n"
384 " int j;\n"
385 " char p[LIM];\n"
386 " time_t base;\n"
387 msgstr ""
388 "int\n"
389 "main(int argc, char *argv[])\n"
390 "{\n"
391 "#define LIM 4000000\n"
392 " int j;\n"
393 " char p[LIM];\n"
394 " time_t base;\n"
395
396 #. type: Plain text
397 #: opensuse-leap-15-6
398 #, no-wrap
399 msgid ""
400 " base = time(NULL);\n"
401 " p[0] = \\(aq\\e0\\(aq;\n"
402 msgstr ""
403 " base = time(NULL);\n"
404 " p[0] = \\(aq\\e0\\(aq;\n"
405
406 #. type: Plain text
407 #: opensuse-leap-15-6
408 #, no-wrap
409 msgid ""
410 " for (j = 0; j E<lt> LIM; j++) {\n"
411 " if ((j % 10000) == 0)\n"
412 " printf(\"%d %ld\\en\", j, (long) (time(NULL) - base));\n"
413 " strcat(p, \"a\");\n"
414 " }\n"
415 "}\n"
416 msgstr ""
417 " for (j = 0; j E<lt> LIM; j++) {\n"
418 " if ((j % 10000) == 0)\n"
419 " printf(\"%d %ld\\en\", j, (long) (time(NULL) - base));\n"
420 " strcat(p, \"a\");\n"
421 " }\n"
422 "}\n"
423
424 #. type: SH
425 #: opensuse-leap-15-6
426 #, no-wrap
427 msgid "SEE ALSO"
428 msgstr "VOIR AUSSI"
429
430 #. type: Plain text
431 #: opensuse-leap-15-6
432 msgid ""
433 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
434 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
435 msgstr ""
436 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
437 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
438
439 #. type: SH
440 #: opensuse-leap-15-6
441 #, no-wrap
442 msgid "COLOPHON"
443 msgstr "COLOPHON"
444
445 #. type: Plain text
446 #: opensuse-leap-15-6
447 msgid ""
448 "This page is part of release 4.16 of the Linux I<man-pages> project. A "
449 "description of the project, information about reporting bugs, and the latest "
450 "version of this page, can be found at \\%https://www.kernel.org/doc/man-"
451 "pages/."
452 msgstr ""
453 "Cette page fait partie de la publication 4.16 du projet I<man-pages> Linux. "
454 "Une description du projet et des instructions pour signaler des anomalies et "
455 "la dernière version de cette page peuvent être trouvées à l'adresse \\"
456 "%https://www.kernel.org/doc/man-pages/."