Debian Codegraph @

po/fr/man3/getline.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-2014.
18 # Frédéric Hantrais <[email protected]>, 2013, 2014.
19 # Grégoire Scano <[email protected]>, 2023.
20 msgid ""
21 msgstr ""
22 "Project-Id-Version: manpages-l10n 4.21.0\n"
23 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
24 "PO-Revision-Date: 2024-03-06 00:21+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.3\n"
33
34 #. type: TH
35 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
36 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
37 #, no-wrap
38 msgid "getline"
39 msgstr "getline"
40
41 #. type: TH
42 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
43 #: opensuse-tumbleweed
44 #, no-wrap
45 msgid "2026-02-08"
46 msgstr "8 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 "getline, getdelim - delimited string input"
65 msgstr "getline, getdelim - Saisie de chaîne délimitée"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "LIBRARY"
72 msgstr "BIBLIOTHÈQUE"
73
74 #. type: Plain text
75 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
76 #: opensuse-leap-16-1 opensuse-tumbleweed
77 msgid "Standard C library (I<libc>,\\ I<-lc>)"
78 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
79
80 #. type: SH
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "SYNOPSIS"
85 msgstr "SYNOPSIS"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<#include E<lt>stdio.hE<gt>>\n"
92 msgstr "B<#include E<lt>stdio.hE<gt>>\n"
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid ""
99 "B<ssize_t getline(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n"
100 "B< FILE *restrict >I<stream>B<);>\n"
101 "B<ssize_t getdelim(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n"
102 "B< int >I<delim>B<, FILE *restrict >I<stream>B<);>\n"
103 msgstr ""
104 "B<ssize_t getline(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n"
105 "B< FILE *restrict >I<flux>B<);>\n"
106 "B<ssize_t getdelim(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n"
107 "B< int >I<delim>B<, FILE *restrict >I<flux>B<);>\n"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
114 msgstr ""
115 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
116 "B<feature_test_macros>(7)) :"
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 "B<getline>(), B<getdelim>():"
122 msgstr "B<getline>(), B<getdelim>() :"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid ""
129 " Since glibc 2.10:\n"
130 " _POSIX_C_SOURCE E<gt>= 200809L\n"
131 " Before glibc 2.10:\n"
132 " _GNU_SOURCE\n"
133 msgstr ""
134 " Depuis la glibc 2.10 :\n"
135 " _POSIX_C_SOURCE E<gt>= 200809L\n"
136 " Avant la glibc 2.10 :\n"
137 " _GNU_SOURCE\n"
138
139 #. type: SH
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid "DESCRIPTION"
144 msgstr "DESCRIPTION"
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 "B<getline>() reads an entire line from I<stream>, storing the address of "
151 "the buffer containing the text into I<*lineptr>. The buffer is null-"
152 "terminated and includes the newline character, if one was found."
153 msgstr ""
154 "B<getline>() lit une ligne entière dans I<flux> et stocke l'adresse du "
155 "tampon contenant le texte dans I<*lineptr>. Le tampon se termine par un "
156 "octet NULL et inclut le caractère saut de ligne, si un tel séparateur a été "
157 "trouvé."
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 msgid ""
163 "If I<*lineptr> is set to NULL before the call, then B<getline>() will "
164 "allocate a buffer for storing the line. This buffer should be freed by the "
165 "user program even if B<getline>() failed."
166 msgstr ""
167 "Si I<*lineptr> est positionné à NULL avant l'appel, la routine B<getline>() "
168 "allouera un tampon pour stocker la ligne. Ce tampon devra être libéré par le "
169 "programme utilisateur même si B<getline>() échoue."
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "Alternatively, before calling B<getline>(), I<*lineptr> can contain a "
176 "pointer to a B<malloc>(3)-allocated buffer I<*n> bytes in size. If the "
177 "buffer is not large enough to hold the line, B<getline>() resizes it with "
178 "B<realloc>(3), updating I<*lineptr> and I<*n> as necessary."
179 msgstr ""
180 "Alternativement, avant d'appeler B<getline>(), I<*lineptr> peut contenir un "
181 "pointeur vers un tampon de I<*n> octets alloué par B<malloc>(3). Si le "
182 "tampon n'est pas suffisant pour stocker la ligne saisie, B<getline>() le "
183 "redimensionnera avec B<realloc>(3), mettant à jour I<*lineptr> et I<*n> "
184 "comme il se doit."
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "In either case, on a successful call, I<*lineptr> and I<*n> will be updated "
191 "to reflect the buffer address and allocated size respectively."
192 msgstr ""
193 "Quoi qu'il en soit, en cas de succès, I<*lineptr> et I<*n> seront mis à jour "
194 "afin de rendre compte respectivement de l'adresse et de la taille du tampon."
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid ""
200 "B<getdelim>() works like B<getline>(), except that a line delimiter other "
201 "than newline can be specified as the I<delimiter> argument. As with "
202 "B<getline>(), a delimiter character is not added if one was not present in "
203 "the input before end of file was reached."
204 msgstr ""
205 "B<getdelim>() fonctionne comme B<getline>(), si ce n'est qu'un séparateur "
206 "différent du saut de ligne peut être spécifié en tant qu'argument "
207 "I<delimiter>. Tout comme avec B<getline>(), aucun séparateur n'est ajouté "
208 "s'il n'y en avait pas dans l'entrée avant que la fin du fichier ne soit "
209 "atteinte."
210
211 #. type: SH
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid "RETURN VALUE"
216 msgstr "VALEUR RENVOYÉE"
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid ""
222 "On success, B<getline>() and B<getdelim>() return the number of characters "
223 "read, including the delimiter character, but not including the terminating "
224 "null byte (\\[aq]\\[rs]0\\[aq]). This value can be used to handle embedded "
225 "null bytes in the line read."
226 msgstr ""
227 "En cas de succès, B<getline>() et B<getdelim>() renvoient le nombre de "
228 "caractères lus, séparateur inclus, mais sans compter l'octet NULL final (\\"
229 "[aq]\\[rs]0\\[aq]). Cette valeur peut être utilisée afin de traiter les "
230 "octets NULL insérés dans la ligne lue."
231
232 #. type: Plain text
233 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
234 #: opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "At end of file, both functions return -1 with the file stream end-of-file "
237 "indicator set. On error, both functions return -1 with the file stream "
238 "error indicator set, and I<errno> is set to indicate the error."
239 msgstr ""
240 "À la fin du fichier,les deux fonctions renvoient B<-1> quand l'indicateur "
241 "fin de fichier (EOF) du flux de fichier est défini. En cas d'erreur, ces "
242 "deux fonctions renvoient B<-1> quand l'indicateur d'erreur de flux de "
243 "fichier est défini et I<errno> est défini pour indiquer l'erreur."
244
245 #. type: Plain text
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 msgid ""
249 "If I<*lineptr> was set to NULL before the call, then the buffer should be "
250 "freed by the user program even on failure."
251 msgstr ""
252 "Si I<*lineptr> a été positionné à NULL avant l'appel, le tampon doit être "
253 "libéré par le programme utilisateur même en cas d'échec."
254
255 #. type: SH
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, no-wrap
259 msgid "ERRORS"
260 msgstr "ERREURS"
261
262 #. type: TP
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "B<EINVAL>"
267 msgstr "B<EINVAL>"
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid "Bad arguments (I<n> or I<lineptr> is NULL, or I<stream> is not valid)."
273 msgstr ""
274 "Paramètres erronés (I<n> ou I<lineptr> valent NULL, ou bien I<flux> n'est "
275 "pas valable)."
276
277 #. type: TP
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "B<ENOMEM>"
282 msgstr "B<ENOMEM>"
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 "Allocation or reallocation of the line buffer failed."
288 msgstr "Échec de l'allocation ou de la réallocation du tampon de ligne."
289
290 #. type: SH
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "ATTRIBUTES"
295 msgstr "ATTRIBUTS"
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid ""
301 "For an explanation of the terms used in this section, see B<attributes>(7)."
302 msgstr ""
303 "Pour une explication des termes utilisés dans cette section, consulter "
304 "B<attributes>(7)."
305
306 #. type: tbl table
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "Interface"
311 msgstr "Interface"
312
313 #. type: tbl table
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "Attribute"
318 msgstr "Attribut"
319
320 #. type: tbl table
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "Value"
325 msgstr "Valeur"
326
327 #. type: tbl table
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 #, no-wrap
331 msgid ".na\n"
332 msgstr ".na\n"
333
334 #. type: tbl table
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 #, no-wrap
338 msgid ".nh\n"
339 msgstr ".nh\n"
340
341 #. type: tbl table
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 #, no-wrap
345 msgid ""
346 "B<getline>(),\n"
347 "B<getdelim>()"
348 msgstr ""
349 "B<getline>(),\n"
350 "B<getdelim>()"
351
352 #. type: tbl table
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "Thread safety"
357 msgstr "Sécurité des threads"
358
359 #. type: tbl table
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "MT-Safe"
364 msgstr "MT-Safe"
365
366 #. type: SH
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "STANDARDS"
371 msgstr "NORMES"
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 "POSIX.1-2008."
377 msgstr "POSIX.1-2008."
378
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 "HISTORY"
384 msgstr "HISTORIQUE"
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 "GNU, POSIX.1-2008."
390 msgstr "GNU, POSIX.1-2008."
391
392 #. type: SH
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "EXAMPLES"
397 msgstr "EXEMPLES"
398
399 #. type: Plain text
400 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
401 #: opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid ""
404 "#define _GNU_SOURCE\n"
405 "#include E<lt>stdio.hE<gt>\n"
406 "#include E<lt>stdlib.hE<gt>\n"
407 "\\&\n"
408 "int\n"
409 "main(int argc, char *argv[])\n"
410 "{\n"
411 " FILE *stream;\n"
412 " char *line = NULL;\n"
413 " size_t size = 0;\n"
414 " ssize_t nread;\n"
415 "\\&\n"
416 " if (argc != 2) {\n"
417 " fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n"
418 " exit(EXIT_FAILURE);\n"
419 " }\n"
420 "\\&\n"
421 " stream = fopen(argv[1], \"r\");\n"
422 " if (stream == NULL) {\n"
423 " perror(\"fopen\");\n"
424 " exit(EXIT_FAILURE);\n"
425 " }\n"
426 "\\&\n"
427 " while ((nread = getline(&line, &size, stream)) != -1) {\n"
428 " printf(\"Retrieved line of length %zd:\\[rs]n\", nread);\n"
429 " fwrite(line, nread, 1, stdout);\n"
430 " }\n"
431 "\\&\n"
432 " free(line);\n"
433 " fclose(stream);\n"
434 " exit(EXIT_SUCCESS);\n"
435 "}\n"
436 msgstr ""
437 "#define _GNU_SOURCE\n"
438 "#include E<lt>stdio.hE<gt>\n"
439 "#include E<lt>stdlib.hE<gt>\n"
440 "\\&\n"
441 "int\n"
442 "main(int argc, char *argv[])\n"
443 "{\n"
444 " FILE *stream;\n"
445 " char *line = NULL;\n"
446 " size_t size = 0;\n"
447 " ssize_t nread;\n"
448 "\\&\n"
449 " if (argc != 2) {\n"
450 " fprintf(stderr, \"Utilisation : %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n"
451 " exit(EXIT_FAILURE);\n"
452 " }\n"
453 "\\&\n"
454 " stream = fopen(argv[1], \"r\");\n"
455 " if (stream == NULL) {\n"
456 " perror(\"fopen\");\n"
457 " exit(EXIT_FAILURE);\n"
458 " }\n"
459 "\\&\n"
460 " while ((nread = getline(&line, &size, stream)) != -1) {\n"
461 " printf(\"Réception d'une ligne de longueur %zd:\\[rs]n\", nread);\n"
462 " fwrite(line, nread, 1, stdout);\n"
463 " }\n"
464 "\\&\n"
465 " free(line);\n"
466 " fclose(stream);\n"
467 " exit(EXIT_SUCCESS);\n"
468 "}\n"
469
470 #. SRC END
471 #. type: SH
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "SEE ALSO"
476 msgstr "VOIR AUSSI"
477
478 #. type: Plain text
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 msgid "B<read>(2), B<fgets>(3), B<fopen>(3), B<fread>(3), B<scanf>(3)"
482 msgstr "B<read>(2), B<fgets>(3), B<fopen>(3), B<fread>(3), B<scanf>(3)"
483
484 #. type: TH
485 #: debian-trixie
486 #, no-wrap
487 msgid "2024-06-15"
488 msgstr "15 juin 2024"
489
490 #. type: TH
491 #: debian-trixie
492 #, no-wrap
493 msgid "Linux man-pages 6.9.1"
494 msgstr "Pages du manuel de Linux 6.9.1"
495
496 #. type: Plain text
497 #: debian-trixie
498 msgid "Standard C library (I<libc>, I<-lc>)"
499 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
500
501 #. type: Plain text
502 #: debian-trixie
503 msgid ""
504 "Both functions return -1 on failure to read a line (including end-of-file "
505 "condition). In the event of a failure, I<errno> is set to indicate the "
506 "error."
507 msgstr ""
508 "Les deux fonctions renvoient B<-1> en cas d'échec de lecture de la ligne "
509 "(condition de fin de fichier incluse). En cas d'erreur, I<errno> est défini "
510 "pour indiquer l'erreur."
511
512 #. type: Plain text
513 #: debian-trixie
514 #, no-wrap
515 msgid ""
516 "#define _GNU_SOURCE\n"
517 "#include E<lt>stdio.hE<gt>\n"
518 "#include E<lt>stdlib.hE<gt>\n"
519 "\\&\n"
520 "int\n"
521 "main(int argc, char *argv[])\n"
522 "{\n"
523 " FILE *stream;\n"
524 " char *line = NULL;\n"
525 " size_t len = 0;\n"
526 " ssize_t nread;\n"
527 "\\&\n"
528 " if (argc != 2) {\n"
529 " fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n"
530 " exit(EXIT_FAILURE);\n"
531 " }\n"
532 "\\&\n"
533 " stream = fopen(argv[1], \"r\");\n"
534 " if (stream == NULL) {\n"
535 " perror(\"fopen\");\n"
536 " exit(EXIT_FAILURE);\n"
537 " }\n"
538 "\\&\n"
539 " while ((nread = getline(&line, &len, stream)) != -1) {\n"
540 " printf(\"Retrieved line of length %zd:\\[rs]n\", nread);\n"
541 " fwrite(line, nread, 1, stdout);\n"
542 " }\n"
543 "\\&\n"
544 " free(line);\n"
545 " fclose(stream);\n"
546 " exit(EXIT_SUCCESS);\n"
547 "}\n"
548 msgstr ""
549 "#define _GNU_SOURCE\n"
550 "#include E<lt>stdio.hE<gt>\n"
551 "#include E<lt>stdlib.hE<gt>\n"
552 "\\&\n"
553 "int\n"
554 "main(int argc, char *argv[])\n"
555 "{\n"
556 " FILE *stream;\n"
557 " char *line = NULL;\n"
558 " size_t len = 0;\n"
559 " ssize_t nread;\n"
560 "\\&\n"
561 " if (argc != 2) {\n"
562 " fprintf(stderr, \"Utilisation : %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n"
563 " exit(EXIT_FAILURE);\n"
564 " }\n"
565 "\\&\n"
566 " stream = fopen(argv[1], \"r\");\n"
567 " if (stream == NULL) {\n"
568 " perror(\"fopen\");\n"
569 " exit(EXIT_FAILURE);\n"
570 " }\n"
571 "\\&\n"
572 " while ((nread = getline(&line, &len, stream)) != -1) {\n"
573 " printf(\"Réception d'une ligne de longueur %zd:\\[rs]n\", nread);\n"
574 " fwrite(line, nread, 1, stdout);\n"
575 " }\n"
576 "\\&\n"
577 " free(line);\n"
578 " fclose(stream);\n"
579 " exit(EXIT_SUCCESS);\n"
580 "}\n"
581
582 #. type: TH
583 #: fedora-44 fedora-rawhide
584 #, no-wrap
585 msgid "2024-12-20"
586 msgstr "20 décembre 2024"
587
588 #. type: TH
589 #: fedora-44 fedora-rawhide
590 #, no-wrap
591 msgid "Linux man-pages 6.13"
592 msgstr "Pages du manuel de Linux 6.13"
593
594 #. type: TH
595 #: mageia-cauldron
596 #, no-wrap
597 msgid "Linux man-pages 6.17"
598 msgstr "Pages du manuel de Linux 6.17"
599
600 #. type: TH
601 #: opensuse-leap-16-1 opensuse-tumbleweed
602 #, no-wrap
603 msgid "Linux man-pages (unreleased)"
604 msgstr "Pages du manuel de Linux (non publiées)"