Debian Codegraph @

po/ro/man3/strcmp.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, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.21.0\n"
8 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
9 "PO-Revision-Date: 2026-05-07 14:17+0200\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.8\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 "strcmp"
25 msgstr "strcmp"
26
27 #. type: TH
28 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-03-16"
31 msgstr "16 martie 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "Pagini de manual de Linux 6.18"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr "NUME"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "strcmp, strncmp - compare two strings"
50 msgstr "strcmp, strncmp - compară două șiruri"
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr "BIBLIOTECA"
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr "SINOPSIS"
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>string.hE<gt>>\n"
77 msgstr "B<#include E<lt>string.hE<gt>>\n"
78
79 #. type: Plain text
80 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
81 #: opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
85 "B<int strncmp(const char >s1B<[], const char >s2B<[], size_t >nB<);>\n"
86 msgstr ""
87 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
88 "B<int strncmp(const char >s1B<[], const char >s2B<[], size_t >nB<);>\n"
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "DESCRIPTION"
95 msgstr "DESCRIERE"
96
97 #. type: TP
98 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "B<strcmp>()"
101 msgstr "B<strcmp>()"
102
103 #. type: Plain text
104 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "The B<strcmp>() function compares the two strings I<s1> and I<s2>, as if by "
107 "calling B<memcmp>(3)."
108 msgstr ""
109 "Funcția B<strcmp>() compară cele două șiruri I<s1> și I<s2>, ca și cum s-ar "
110 "apela B<memcmp>(3)."
111
112 #. type: Plain text
113 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
114 msgid ""
115 "The locale is not taken into account (for a locale-aware comparison, see "
116 "B<strcoll>(3))."
117 msgstr ""
118 "Configurația regională nu este luată în considerare (pentru o comparație "
119 "care ține cont de configurația regională, consultați B<strcoll>(3))."
120
121 #. type: Plain text
122 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
123 msgid "It is equivalent to"
124 msgstr "Aceasta este echivalent cu"
125
126 #. type: Plain text
127 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid "memcmp(s1, s2, MIN(strlen(s1),strlen(s2))+1)\n"
130 msgstr "memcmp(s1, s2, MIN(strlen(s1),strlen(s2))+1)\n"
131
132 #. type: TP
133 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
134 #, no-wrap
135 msgid "B<strncmp>()"
136 msgstr "B<strncmp>()"
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "The B<strncmp>() function is similar, except it compares only the first (at "
143 "most) I<n> bytes of I<s1> and I<s2>."
144 msgstr ""
145 "Funcția B<strncmp>() este similară, cu excepția faptului că aceasta compară "
146 "numai primii (cel mult) I<n> octeți din I<s1> și I<s2>."
147
148 #. type: Plain text
149 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "memcmp(s1, s2, MIN(MIN(strnlen(s1,n),strnlen(s2,n))+1, n))\n"
152 msgstr "memcmp(s1, s2, MIN(MIN(strnlen(s1,n),strnlen(s2,n))+1, n))\n"
153
154 #. type: SH
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid "RETURN VALUE"
159 msgstr "VALOAREA RETURNATĂ"
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 msgid ""
165 "The B<strcmp>() and B<strncmp>() functions return an integer less than, "
166 "equal to, or greater than zero if I<s1> (or the first I<n> bytes thereof) is "
167 "found, respectively, to be less than, to match, or be greater than I<s2>."
168 msgstr ""
169 "Funcțiile B<strcmp>() și B<strncmp>() returnează un număr întreg mai mic, "
170 "egal sau mai mare decât zero dacă se constată că I<s1> (sau primii I<n> "
171 "octeți ai acestuia) este mai mic decât, se potrivește sau este mai mare "
172 "decât I<s2>."
173
174 #. type: SH
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 #, no-wrap
178 msgid "ATTRIBUTES"
179 msgstr "ATRIBUTE"
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "For an explanation of the terms used in this section, see B<attributes>(7)."
186 msgstr ""
187 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
188 "B<attributes>(7)."
189
190 #. type: tbl table
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 #, no-wrap
194 msgid "Interface"
195 msgstr "Interfață"
196
197 #. type: tbl table
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 #, no-wrap
201 msgid "Attribute"
202 msgstr "Atribut"
203
204 #. type: tbl table
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "Value"
209 msgstr "Valoare"
210
211 #. type: tbl table
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid ".na\n"
216 msgstr ".na\n"
217
218 #. type: tbl table
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid ".nh\n"
223 msgstr ".nh\n"
224
225 #. type: tbl table
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid ""
230 "B<strcmp>(),\n"
231 "B<strncmp>()"
232 msgstr ""
233 "B<strcmp>(),\n"
234 "B<strncmp>()"
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 "Thread safety"
241 msgstr "Siguranța firelor"
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 "MT-Safe"
248 msgstr "MT-Safe"
249
250 #. type: SH
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "VERSIONS"
255 msgstr "VERSIUNI"
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 "POSIX.1 specifies only that:"
261 msgstr "POSIX.1 specifică doar că:"
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "The sign of a nonzero return value shall be determined by the sign of the "
268 "difference between the values of the first pair of bytes (both interpreted "
269 "as type I<unsigned char>) that differ in the strings being compared."
270 msgstr ""
271 "Semnul unei valori de returnare diferită de zero este determinat de semnul "
272 "diferenței dintre valorile primei perechi de octeți (ambele interpretate ca "
273 "fiind de tip I<unsigned char>) care diferă în șirurile comparate."
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid ""
279 "In glibc, as in most other implementations, the return value is the "
280 "arithmetic result of subtracting the last compared byte in I<s2> from the "
281 "last compared byte in I<s1>. (If the two characters are equal, this "
282 "difference is 0.)"
283 msgstr ""
284 "În glibc, ca și în majoritatea celorlalte implementări, valoarea de "
285 "returnare este rezultatul aritmetic al scăderii ultimului octet comparat din "
286 "I<s2> din ultimul octet comparat din I<s1>; (dacă cele două caractere sunt "
287 "egale, această diferență este 0)."
288
289 #. type: SH
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "STANDARDS"
294 msgstr "STANDARDE"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid "C11, POSIX.1-2008."
300 msgstr "C11, POSIX.1-2008."
301
302 #. type: SH
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "HISTORY"
307 msgstr "ISTORIC"
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-2001, C89, SVr4, 4.3BSD."
313 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
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 "EXAMPLES"
320 msgstr "EXEMPLE"
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 ""
326 "The program below can be used to demonstrate the operation of B<strcmp>() "
327 "(when given two arguments) and B<strncmp>() (when given three arguments). "
328 "First, some examples using B<strcmp>():"
329 msgstr ""
330 "Programul de mai jos poate fi utilizat pentru a demonstra funcționarea lui "
331 "B<strcmp>() (atunci când i se dau două argumente) și B<strncmp>() (atunci "
332 "când i se dau trei argumente). Mai întâi, câteva exemple care utilizează "
333 "B<strcmp>():"
334
335 #. type: Plain text
336 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
337 #: opensuse-tumbleweed
338 #, no-wrap
339 msgid ""
340 "$B< ./string_comp ABC ABC>;\n"
341 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
342 "$B< ./string_comp ABC AB>; # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
343 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
344 "$B< ./string_comp ABA ABZ>; # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
345 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
346 "$B< ./string_comp ABJ ABC>;\n"
347 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
348 "$B< ./string_comp $\\[aq]\\[rs]201\\[aq] A>; # 0201 - 0101 = 0100 (or 64 decimal)\n"
349 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
350 msgstr ""
351 "$B< ./string_comp ABC ABC>;\n"
352 "E<lt>str1E<gt> și E<lt>str2E<gt> sunt egale\n"
353 "$B< ./string_comp ABC AB>; # codul ASCII de \\[aq]C\\[aq] este 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
354 "E<lt>str1E<gt> este mai mare decât E<lt>str2E<gt> (67)\n"
355 "$B< ./string_comp ABA ABZ>; # codul ASCII de \\[aq]A\\[aq] este 65; codul ASCII de \\[aq]Z\\[aq] este 90\n"
356 "E<lt>str1E<gt> este mai mic decât E<lt>str2E<gt> (-25)\n"
357 "$B< ./string_comp ABJ ABC>;\\n\n"
358 "E<lt>str1E<gt> este mai mare decât E<lt>str2E<gt> (7)\n"
359 "$B< ./string_comp $\\[aq]\\[rs]201\\[aq] A>; # 0201 - 0101 = 0100 (sau 64 zecimal)\n"
360 "E<lt>str1E<gt> este mai mare decât E<lt>str2E<gt> (64)\n"
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "The last example uses B<bash>(1)-specific syntax to produce a string "
367 "containing an 8-bit ASCII code; the result demonstrates that the string "
368 "comparison uses unsigned characters."
369 msgstr ""
370 "Ultimul exemplu utilizează o sintaxă specifică B<bash>(1) pentru a produce "
371 "un șir care conține un cod ASCII pe 8 biți; rezultatul demonstrează că "
372 "această comparare a șirurilor utilizează caractere fără semn."
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 "And then some examples using B<strncmp>():"
378 msgstr "Și apoi câteva exemple folosind B<strncmp>():"
379
380 #. type: Plain text
381 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
382 #: opensuse-tumbleweed
383 #, no-wrap
384 msgid ""
385 "$B< ./string_comp ABC AB 3>;\n"
386 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
387 "$B< ./string_comp ABC AB 2>;\n"
388 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
389 msgstr ""
390 "$B< ./string_comp ABC AB 3>;\n"
391 "E<lt>str1E<gt> este mai mare decât E<lt>str2E<gt> (67)\n"
392 "$B< ./string_comp ABC AB 2>;\n"
393 "E<lt>str1E<gt> și E<lt>str2E<gt> sunt egale în primii 2 octeți\n"
394
395 #. type: SS
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "Program source"
400 msgstr "Sursa programului"
401
402 #. type: Plain text
403 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
404 #: opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid ""
407 "/* string_comp.c\n"
408 "\\&\n"
409 " Licensed under GNU General Public License v2 or later.\n"
410 "*/\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(int argc, char *argv[])\n"
417 "{\n"
418 " int res;\n"
419 "\\&\n"
420 " if (argc E<lt> 3) {\n"
421 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
422 " exit(EXIT_FAILURE);\n"
423 " }\n"
424 "\\&\n"
425 " if (argc == 3)\n"
426 " res = strcmp(argv[1], argv[2]);\n"
427 " else\n"
428 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
429 "\\&\n"
430 " if (res == 0) {\n"
431 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
432 " if (argc E<gt> 3)\n"
433 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
434 " printf(\"\\[rs]n\");\n"
435 " } else if (res E<lt> 0) {\n"
436 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
437 " } else {\n"
438 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
439 " }\n"
440 "\\&\n"
441 " exit(EXIT_SUCCESS);\n"
442 "}\n"
443 msgstr ""
444 "/* string_comp.c\n"
445 "\\&\n"
446 " Licențiat sub licența publică generală GNU v2 sau o versiune ulterioară.\n"
447 "*/\n"
448 "#include E<lt>stdio.hE<gt>\n"
449 "#include E<lt>stdlib.hE<gt>\n"
450 "#include E<lt>string.hE<gt>\n"
451 "\\&\n"
452 "int\n"
453 "main(int argc, char *argv[])\n"
454 "{\n"
455 " int res;\n"
456 "\\&\n"
457 " if (argc E<lt> 3) {\n"
458 " fprintf(stderr, \"Utilizare: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
459 " exit(EXIT_FAILURE);\n"
460 " }\n"
461 "\\&\n"
462 " if (argc == 3)\n"
463 " res = strcmp(argv[1], argv[2]);\n"
464 " else\n"
465 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
466 "\\&\n"
467 " if (res == 0) {\n"
468 " printf(\"E<lt>str1E<gt> și E<lt>str2E<gt> sunt egale\");\n"
469 " if (argc E<gt> 3)\n"
470 " printf(\" în primii %d octeți\\[rs]n\", atoi(argv[3]));\n"
471 " printf(\"\\[rs]n\");\n"
472 " } else if (res E<lt> 0) {\n"
473 " printf(\"E<lt>str1E<gt> este mai mic decât E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
474 " } else {\n"
475 " printf(\"E<lt>str1E<gt> este mai mare decât E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
476 " }\n"
477 "\\&\n"
478 " exit(EXIT_SUCCESS);\n"
479 "}\n"
480
481 #. SRC END
482 #. type: SH
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "SEE ALSO"
487 msgstr "CONSULTAȚI ȘI"
488
489 #. type: Plain text
490 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
491 msgid ""
492 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<streq>(3), B<string>(3), "
493 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
494 msgstr ""
495 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<streq>(3), B<string>(3), "
496 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
497
498 #. type: TH
499 #: debian-trixie
500 #, no-wrap
501 msgid "2024-06-15"
502 msgstr "15 iunie 2024"
503
504 #. type: TH
505 #: debian-trixie
506 #, no-wrap
507 msgid "Linux man-pages 6.9.1"
508 msgstr "Pagini de manual de Linux 6.9.1"
509
510 #. type: Plain text
511 #: debian-trixie
512 msgid "Standard C library (I<libc>, I<-lc>)"
513 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
514
515 #. type: Plain text
516 #: debian-trixie fedora-44 fedora-rawhide
517 #, no-wrap
518 msgid ""
519 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
520 "B<int strncmp(const char >I<s1>B<[.>I<n>B<], const char >I<s2>B<[.>I<n>B<], size_t >I<n>B<);>\n"
521 msgstr ""
522 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
523 "B<int strncmp(const char >I<s1>B<[.>I<n>B<], const char >I<s2>B<[.>I<n>B<], size_t >I<n>B<);>\n"
524
525 #. type: Plain text
526 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
527 msgid ""
528 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. The "
529 "locale is not taken into account (for a locale-aware comparison, see "
530 "B<strcoll>(3)). The comparison is done using unsigned characters."
531 msgstr ""
532 "Funcția B<strcmp>() compară cele două șiruri I<s1> și I<s2>. Nu se ia în "
533 "considerare locația (pentru o comparație care ține cont de locație, a se "
534 "vedea B<strcoll>(3)). Comparația se face folosind caractere fără semn."
535
536 #. type: Plain text
537 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
538 msgid ""
539 "B<strcmp>() returns an integer indicating the result of the comparison, as "
540 "follows:"
541 msgstr ""
542 "B<strcmp>() returnează un număr întreg care indică rezultatul comparației, "
543 "după cum urmează:"
544
545 #. type: IP
546 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
547 #, no-wrap
548 msgid "\\[bu]"
549 msgstr "\\[bu]"
550
551 #. type: Plain text
552 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
553 msgid "0, if the I<s1> and I<s2> are equal;"
554 msgstr "0, în cazul în care I<s1> și I<s2> sunt egale;"
555
556 #. type: Plain text
557 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
558 msgid "a negative value if I<s1> is less than I<s2>;"
559 msgstr "o valoare negativă dacă I<s1> este mai mic decât I<s2>;"
560
561 #. type: Plain text
562 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
563 msgid "a positive value if I<s1> is greater than I<s2>."
564 msgstr "o valoare pozitivă dacă I<s1> este mai mare decât I<s2>."
565
566 #. type: Plain text
567 #: debian-trixie fedora-44 fedora-rawhide
568 #, no-wrap
569 msgid ""
570 "$ B<./string_comp ABC ABC>\n"
571 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
572 "$ B<./string_comp ABC AB> # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
573 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
574 "$ B<./string_comp ABA ABZ> # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
575 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
576 "$ B<./string_comp ABJ ABC>\n"
577 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
578 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (or 64 decimal)\n"
579 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
580 msgstr ""
581 "$ B<./string_comp ABC ABC>\n"
582 "E<lt>str1E<gt> și E<lt>str2E<gt> sunt egale\n"
583 "$ B<./string_comp ABC AB> # codul ASCII de \\[aq]C\\[aq] este 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
584 "E<lt>str1E<gt> este mai mare decât E<lt>str2E<gt> (67)\n"
585 "$ B<./string_comp ABA ABZ> # codul ASCII de \\[aq]A\\[aq] este 65; codul ASCII de \\[aq]Z\\[aq] este 90\n"
586 "E<lt>str1E<gt> este mai mic decât E<lt>str2E<gt> (-25)\n"
587 "$ B<./string_comp ABJ ABC>\n"
588 "E<lt>str1E<gt> este mai mare decât E<lt>str2E<gt> (7)\n"
589 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (sau 64 zecimal)\n"
590 "E<lt>str1E<gt> este mai mare decât E<lt>str2E<gt> (64)\n"
591
592 #. type: Plain text
593 #: debian-trixie fedora-44 fedora-rawhide
594 #, no-wrap
595 msgid ""
596 "$ B<./string_comp ABC AB 3>\n"
597 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
598 "$ B<./string_comp ABC AB 2>\n"
599 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
600 msgstr ""
601 "$ B<./string_comp ABC AB 3>\n"
602 "E<lt>str1E<gt> este mai mare decât E<lt>str2E<gt> (67)\n"
603 "$ B<./string_comp ABC AB 2>\n"
604 "E<lt>str1E<gt> și E<lt>str2E<gt> sunt egale în primii 2 octeți\n"
605
606 #. type: Plain text
607 #: debian-trixie
608 #, no-wrap
609 msgid ""
610 "/* string_comp.c\n"
611 "\\&\n"
612 " Licensed under GNU General Public License v2 or later.\n"
613 "*/\n"
614 "#include E<lt>stdio.hE<gt>\n"
615 "#include E<lt>stdlib.hE<gt>\n"
616 "#include E<lt>string.hE<gt>\n"
617 "\\&\n"
618 "int\n"
619 "main(int argc, char *argv[])\n"
620 "{\n"
621 " int res;\n"
622 "\\&\n"
623 " if (argc E<lt> 3) {\n"
624 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>lenE<gt>]\\[rs]n\", argv[0]);\n"
625 " exit(EXIT_FAILURE);\n"
626 " }\n"
627 "\\&\n"
628 " if (argc == 3)\n"
629 " res = strcmp(argv[1], argv[2]);\n"
630 " else\n"
631 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
632 "\\&\n"
633 " if (res == 0) {\n"
634 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
635 " if (argc E<gt> 3)\n"
636 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
637 " printf(\"\\[rs]n\");\n"
638 " } else if (res E<lt> 0) {\n"
639 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
640 " } else {\n"
641 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
642 " }\n"
643 "\\&\n"
644 " exit(EXIT_SUCCESS);\n"
645 "}\n"
646 msgstr ""
647 "/* string_comp.c\n"
648 "\\&\n"
649 " Licențiat sub licența publică generală GNU v2 sau o versiune ulterioară.\n"
650 "*/\n"
651 "#include E<lt>stdio.hE<gt>\n"
652 "#include E<lt>stdlib.hE<gt>\n"
653 "#include E<lt>string.hE<gt>\n"
654 "\\&\n"
655 "int\n"
656 "main(int argc, char *argv[])\n"
657 "{\n"
658 " int res;\n"
659 "\\&\n"
660 " if (argc E<lt> 3) {\n"
661 " fprintf(stderr, \"Utilizare: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>lenE<gt>]\\[rs]n\", argv[0]);\n"
662 " exit(EXIT_FAILURE);\n"
663 " }\n"
664 "\\&\n"
665 " if (argc == 3)\n"
666 " res = strcmp(argv[1], argv[2]);\n"
667 " else\n"
668 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
669 "\\&\n"
670 " if (res == 0) {\n"
671 " printf(\"E<lt>str1E<gt> și E<lt>str2E<gt> sunt egale\");\n"
672 " if (argc E<gt> 3)\n"
673 " printf(\" în primii %d octeți\\[rs]n\", atoi(argv[3]));\n"
674 " printf(\"\\en\");\n"
675 " } else if (res E<lt> 0) {\n"
676 " printf(\"E<lt>str1E<gt> este mai mic decât E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
677 " } else {\n"
678 " printf(\"E<lt>str1E<gt> este mai mare decât E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
679 " }\n"
680 "\\&\n"
681 " exit(EXIT_SUCCESS);\n"
682 "}\n"
683
684 #. type: Plain text
685 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
686 msgid ""
687 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
688 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
689 msgstr ""
690 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
691 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
692
693 #. type: TH
694 #: fedora-44 fedora-rawhide
695 #, no-wrap
696 msgid "2024-11-17"
697 msgstr "17 noiembrie 2024"
698
699 #. type: TH
700 #: fedora-44 fedora-rawhide
701 #, no-wrap
702 msgid "Linux man-pages 6.13"
703 msgstr "Pagini de manual de Linux 6.13"
704
705 #. type: TH
706 #: mageia-cauldron
707 #, no-wrap
708 msgid "2026-02-08"
709 msgstr "8 februarie 2026"
710
711 #. type: TH
712 #: mageia-cauldron
713 #, no-wrap
714 msgid "Linux man-pages 6.17"
715 msgstr "Pagini de manual de Linux 6.17"
716
717 #. type: TH
718 #: opensuse-leap-16-1 opensuse-tumbleweed
719 #, no-wrap
720 msgid "Linux man-pages (unreleased)"
721 msgstr "Pagini de manual Linux (nepublicate)"