Debian Codegraph @

po/ro/man3/getline.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2024, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.21.0\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 2025-02-02 10:53+0100\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\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=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.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 "getline"
25 msgstr "getline"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 februarie 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 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 "NUME"
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 "getline, getdelim - delimited string input"
51 msgstr "getline, getdelim - intrare de șiruri delimitate"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "BIBLIOTECA"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "SINOPSIS"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>stdio.hE<gt>>\n"
78 msgstr "B<#include E<lt>stdio.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<ssize_t getline(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n"
86 "B< FILE *restrict >I<stream>B<);>\n"
87 "B<ssize_t getdelim(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n"
88 "B< int >I<delim>B<, FILE *restrict >I<stream>B<);>\n"
89 msgstr ""
90 "B<ssize_t getline(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n"
91 "B< FILE *restrict >I<stream>B<);>\n"
92 "B<ssize_t getdelim(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n"
93 "B< int >I<delim>B<, FILE *restrict >I<stream>B<);>\n"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
100 msgstr ""
101 "Cerințe pentru macrocomenzi de testare a caracteristicilor pentru glibc "
102 "(consultați B<feature_test_macros>(7)):"
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 msgid "B<getline>(), B<getdelim>():"
108 msgstr "B<getline>(), B<getdelim>():"
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, no-wrap
114 msgid ""
115 " Since glibc 2.10:\n"
116 " _POSIX_C_SOURCE E<gt>= 200809L\n"
117 " Before glibc 2.10:\n"
118 " _GNU_SOURCE\n"
119 msgstr ""
120 " Începând cu glibc 2.10\n"
121 " _POSIX_C_SOURCE E<gt>= 200809L\n"
122 " Înainte de glibc 2.10:\n"
123 " _GNU_SOURCE\n"
124
125 #. type: SH
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid "DESCRIPTION"
130 msgstr "DESCRIERE"
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 msgid ""
136 "B<getline>() reads an entire line from I<stream>, storing the address of "
137 "the buffer containing the text into I<*lineptr>. The buffer is null-"
138 "terminated and includes the newline character, if one was found."
139 msgstr ""
140 "B<getline>() citește o linie întreagă din I<stream>, stocând adresa din "
141 "memoria tampon care conține textul în I<*lineptr>. Memoria tampon este "
142 "terminată cu null și include caracterul de linie nouă, dacă a fost găsit "
143 "unul."
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid ""
149 "If I<*lineptr> is set to NULL before the call, then B<getline>() will "
150 "allocate a buffer for storing the line. This buffer should be freed by the "
151 "user program even if B<getline>() failed."
152 msgstr ""
153 "Dacă I<*lineptr> este stabilit la NULL înainte de apel, atunci B<getline>() "
154 "va aloca o memorie tampon pentru stocarea liniei. Această memorie tampon "
155 "trebuie eliberată de către programul utilizatorului chiar dacă B<getline>() "
156 "a eșuat."
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid ""
162 "Alternatively, before calling B<getline>(), I<*lineptr> can contain a "
163 "pointer to a B<malloc>(3)-allocated buffer I<*n> bytes in size. If the "
164 "buffer is not large enough to hold the line, B<getline>() resizes it with "
165 "B<realloc>(3), updating I<*lineptr> and I<*n> as necessary."
166 msgstr ""
167 "Alternativ, înainte de a apela B<getline>(), I<*lineptr> poate conține un "
168 "indicator la o memorie tampon alocată de B<malloc>(3) cu o dimensiune de "
169 "I<*n> octeți. În cazul în care memoria tampon nu este suficient de mare "
170 "pentru a conține linia, B<getline>() o redimensionează cu B<realloc>(3), "
171 "actualizând I<*lineptr> și I<*n>, după cum este necesar."
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "In either case, on a successful call, I<*lineptr> and I<*n> will be updated "
178 "to reflect the buffer address and allocated size respectively."
179 msgstr ""
180 "În ambele cazuri, la un apel reușit, I<*lineptr> și I<*n> vor fi actualizate "
181 "pentru a reflecta adresa memoriei tampon și, respectiv, dimensiunea alocată."
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 msgid ""
187 "B<getdelim>() works like B<getline>(), except that a line delimiter other "
188 "than newline can be specified as the I<delimiter> argument. As with "
189 "B<getline>(), a delimiter character is not added if one was not present in "
190 "the input before end of file was reached."
191 msgstr ""
192 "B<getdelim>() funcționează ca B<getline>(), cu excepția faptului că un "
193 "delimitator de linie, altul decât linia nouă, poate fi specificat ca "
194 "argument I<delimiter>. La fel ca în cazul B<getline>(), nu se adaugă un "
195 "caracter de delimitare dacă nu a fost prezent unul în intrare înainte de a "
196 "se ajunge la sfârșitul fișierului."
197
198 #. type: SH
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 #, no-wrap
202 msgid "RETURN VALUE"
203 msgstr "VALOAREA RETURNATĂ"
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "On success, B<getline>() and B<getdelim>() return the number of characters "
210 "read, including the delimiter character, but not including the terminating "
211 "null byte (\\[aq]\\[rs]0\\[aq]). This value can be used to handle embedded "
212 "null bytes in the line read."
213 msgstr ""
214 "În caz de succes, B<getline>() și B<getdelim>() returnează numărul de "
215 "caractere citite, inclusiv caracterul de delimitare, dar fără a include "
216 "octetul de terminare nul („\\[rs]0”). Această valoare poate fi utilizată "
217 "pentru a gestiona octeții nuli încorporați în linia citită."
218
219 #. type: Plain text
220 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
221 #: opensuse-leap-16-1 opensuse-tumbleweed
222 msgid ""
223 "At end of file, both functions return -1 with the file stream end-of-file "
224 "indicator set. On error, both functions return -1 with the file stream "
225 "error indicator set, and I<errno> is set to indicate the error."
226 msgstr ""
227 "La sfârșitul fișierului, ambele funcții returnează -1 cu indicatorul de "
228 "sfârșit de fișier al fluxului de fișiere activat. În caz de eroare, ambele "
229 "funcții returnează -1 cu indicatorul de eroare a fluxului de fișiere "
230 "activat, iar I<errno> este configurată pentru a indica eroarea."
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "If I<*lineptr> was set to NULL before the call, then the buffer should be "
237 "freed by the user program even on failure."
238 msgstr ""
239 "Dacă I<*lineptr> a fost stabilit la NULL înainte de apel, atunci memoria "
240 "tampon trebuie eliberată de către programul utilizatorului chiar și în caz "
241 "de eșec."
242
243 #. type: SH
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "ERRORS"
248 msgstr "ERORI-IEȘIRE"
249
250 #. type: TP
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "B<EINVAL>"
255 msgstr "B<EINVAL>"
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 msgid "Bad arguments (I<n> or I<lineptr> is NULL, or I<stream> is not valid)."
261 msgstr ""
262 "Argumente incorecte (I<n> sau I<lineptr> este NULL, sau I<stream> nu este "
263 "valid)."
264
265 #. type: TP
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "B<ENOMEM>"
270 msgstr "B<ENOMEM>"
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid "Allocation or reallocation of the line buffer failed."
276 msgstr "A eșuat alocarea sau realocarea memoriei tampon de linie."
277
278 #. type: SH
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid "ATTRIBUTES"
283 msgstr "ATRIBUTE"
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 msgid ""
289 "For an explanation of the terms used in this section, see B<attributes>(7)."
290 msgstr ""
291 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
292 "B<attributes>(7)."
293
294 #. type: tbl table
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "Interface"
299 msgstr "Interfață"
300
301 #. type: tbl table
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 #, no-wrap
305 msgid "Attribute"
306 msgstr "Atribut"
307
308 #. type: tbl table
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "Value"
313 msgstr "Valoare"
314
315 #. type: tbl table
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, no-wrap
319 msgid ".na\n"
320 msgstr ".na\n"
321
322 #. type: tbl table
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, no-wrap
326 msgid ".nh\n"
327 msgstr ".nh\n"
328
329 #. type: tbl table
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid ""
334 "B<getline>(),\n"
335 "B<getdelim>()"
336 msgstr ""
337 "B<getline>(),\n"
338 "B<getdelim>()"
339
340 #. type: tbl table
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "Thread safety"
345 msgstr "Siguranța firelor"
346
347 #. type: tbl table
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid "MT-Safe"
352 msgstr "MT-Safe"
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 "STANDARDS"
359 msgstr "STANDARDE"
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 msgid "POSIX.1-2008."
365 msgstr "POSIX.1-2008."
366
367 #. type: SH
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "HISTORY"
372 msgstr "ISTORIC"
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid "GNU, POSIX.1-2008."
378 msgstr "GNU, POSIX.1-2008."
379
380 #. type: SH
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "EXAMPLES"
385 msgstr "EXEMPLE"
386
387 #. type: Plain text
388 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
389 #: opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid ""
392 "#define _GNU_SOURCE\n"
393 "#include E<lt>stdio.hE<gt>\n"
394 "#include E<lt>stdlib.hE<gt>\n"
395 "\\&\n"
396 "int\n"
397 "main(int argc, char *argv[])\n"
398 "{\n"
399 " FILE *stream;\n"
400 " char *line = NULL;\n"
401 " size_t size = 0;\n"
402 " ssize_t nread;\n"
403 "\\&\n"
404 " if (argc != 2) {\n"
405 " fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n"
406 " exit(EXIT_FAILURE);\n"
407 " }\n"
408 "\\&\n"
409 " stream = fopen(argv[1], \"r\");\n"
410 " if (stream == NULL) {\n"
411 " perror(\"fopen\");\n"
412 " exit(EXIT_FAILURE);\n"
413 " }\n"
414 "\\&\n"
415 " while ((nread = getline(&line, &size, stream)) != -1) {\n"
416 " printf(\"Retrieved line of length %zd:\\[rs]n\", nread);\n"
417 " fwrite(line, nread, 1, stdout);\n"
418 " }\n"
419 "\\&\n"
420 " free(line);\n"
421 " fclose(stream);\n"
422 " exit(EXIT_SUCCESS);\n"
423 "}\n"
424 msgstr ""
425 "#define _GNU_SOURCE\n"
426 "#include E<lt>stdio.hE<gt>\n"
427 "#include E<lt>stdlib.hE<gt>\n"
428 "\\&\n"
429 "int\n"
430 "main(int argc, char *argv[])\n"
431 "{\n"
432 " FILE *stream;\n"
433 " char *line = NULL;\n"
434 " size_t size = 0;\n"
435 " ssize_t nread;\n"
436 "\\&\n"
437 " if (argc != 2) {\n"
438 " fprintf(stderr, \"Utilizare: %s E<lt>fișierE<gt>\\[rs]n\", argv[0]);\n"
439 " exit(EXIT_FAILURE);\n"
440 " }\n"
441 "\\&\n"
442 " stream = fopen(argv[1], \"r\");\n"
443 " if (stream == NULL) {\n"
444 " perror(\"fopen\");\n"
445 " exit(EXIT_FAILURE);\n"
446 " }\n"
447 "\\&\n"
448 " while ((nread = getline(&line, &size, stream)) != -1) {\n"
449 " printf(\"Linie preluată de lungime %zd:\\[rs]n\", nread);\n"
450 " fwrite(line, nread, 1, stdout);\n"
451 " }\n"
452 "\\&\n"
453 " free(line);\n"
454 " fclose(stream);\n"
455 " exit(EXIT_SUCCESS);\n"
456 "}\n"
457
458 #. SRC END
459 #. type: SH
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "SEE ALSO"
464 msgstr "CONSULTAȚI ȘI"
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 msgid "B<read>(2), B<fgets>(3), B<fopen>(3), B<fread>(3), B<scanf>(3)"
470 msgstr "B<read>(2), B<fgets>(3), B<fopen>(3), B<fread>(3), B<scanf>(3)"
471
472 #. type: TH
473 #: debian-trixie
474 #, no-wrap
475 msgid "2024-06-15"
476 msgstr "15 iunie 2024"
477
478 #. type: TH
479 #: debian-trixie
480 #, no-wrap
481 msgid "Linux man-pages 6.9.1"
482 msgstr "Pagini de manual de Linux 6.9.1"
483
484 #. type: Plain text
485 #: debian-trixie
486 msgid "Standard C library (I<libc>, I<-lc>)"
487 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
488
489 #. type: Plain text
490 #: debian-trixie
491 msgid ""
492 "Both functions return -1 on failure to read a line (including end-of-file "
493 "condition). In the event of a failure, I<errno> is set to indicate the "
494 "error."
495 msgstr ""
496 "Ambele funcții returnează -1 în cazul în care nu se reușește să se citească "
497 "o linie (inclusiv în cazul în care se ajunge la sfârșitul fișierului). În "
498 "cazul unui eșec, I<errno> este configurată pentru a indica eroarea."
499
500 #. type: Plain text
501 #: debian-trixie
502 #, no-wrap
503 msgid ""
504 "#define _GNU_SOURCE\n"
505 "#include E<lt>stdio.hE<gt>\n"
506 "#include E<lt>stdlib.hE<gt>\n"
507 "\\&\n"
508 "int\n"
509 "main(int argc, char *argv[])\n"
510 "{\n"
511 " FILE *stream;\n"
512 " char *line = NULL;\n"
513 " size_t len = 0;\n"
514 " ssize_t nread;\n"
515 "\\&\n"
516 " if (argc != 2) {\n"
517 " fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n"
518 " exit(EXIT_FAILURE);\n"
519 " }\n"
520 "\\&\n"
521 " stream = fopen(argv[1], \"r\");\n"
522 " if (stream == NULL) {\n"
523 " perror(\"fopen\");\n"
524 " exit(EXIT_FAILURE);\n"
525 " }\n"
526 "\\&\n"
527 " while ((nread = getline(&line, &len, stream)) != -1) {\n"
528 " printf(\"Retrieved line of length %zd:\\[rs]n\", nread);\n"
529 " fwrite(line, nread, 1, stdout);\n"
530 " }\n"
531 "\\&\n"
532 " free(line);\n"
533 " fclose(stream);\n"
534 " exit(EXIT_SUCCESS);\n"
535 "}\n"
536 msgstr ""
537 "#define _GNU_SOURCE\n"
538 "#include E<lt>stdio.hE<gt>\n"
539 "#include E<lt>stdlib.hE<gt>\n"
540 "\\&\n"
541 "int\n"
542 "main(int argc, char *argv[])\n"
543 "{\n"
544 " FILE *stream;\n"
545 " char *line = NULL;\n"
546 " size_t len = 0;\n"
547 " ssize_t nread;\n"
548 "\\&\n"
549 " if (argc != 2) {\n"
550 " fprintf(stderr, \"Utilizare: %s E<lt>fișierE<gt>\\[rs]n\", argv[0]);\n"
551 " exit(EXIT_FAILURE);\n"
552 " }\n"
553 "\\&\n"
554 " stream = fopen(argv[1], \"r\");\n"
555 " if (stream == NULL) {\n"
556 " perror(\"fopen\");\n"
557 " exit(EXIT_FAILURE);\n"
558 " }\n"
559 "\\&\n"
560 " while ((nread = getline(&line, &len, stream)) != -1) {\n"
561 " printf(\"Linie preluată de lungime %zd:\\[rs]n\", nread);\n"
562 " fwrite(line, nread, 1, stdout);\n"
563 " }\n"
564 "\\&\n"
565 " free(line);\n"
566 " fclose(stream);\n"
567 " exit(EXIT_SUCCESS);\n"
568 "}\n"
569
570 #. type: TH
571 #: fedora-44 fedora-rawhide
572 #, no-wrap
573 msgid "2024-12-20"
574 msgstr "20 decembrie 2024"
575
576 #. type: TH
577 #: fedora-44 fedora-rawhide
578 #, no-wrap
579 msgid "Linux man-pages 6.13"
580 msgstr "Pagini de manual de Linux 6.13"
581
582 #. type: TH
583 #: mageia-cauldron
584 #, no-wrap
585 msgid "Linux man-pages 6.17"
586 msgstr "Pagini de manual de Linux 6.17"
587
588 #. type: TH
589 #: opensuse-leap-16-1 opensuse-tumbleweed
590 #, no-wrap
591 msgid "Linux man-pages (unreleased)"
592 msgstr "Pagini de manual Linux (nepublicate)"