Debian Codegraph @

po/pt_BR/man3/strcmp.3.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Marcelo M. de Abreu <[email protected]>, 2001.
5 # André Luiz Fassone <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
10 "PO-Revision-Date: 2001-05-31 17:26+0200\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "strcmp"
26 msgstr ""
27
28 #. type: TH
29 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-03-16"
32 msgstr "16 março 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, fuzzy, no-wrap
37 #| msgid "Linux man-pages 6.17"
38 msgid "Linux man-pages 6.18"
39 msgstr "Linux man-pages 6.17"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NOME"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "strcmp, strncmp - compare two strings"
52 msgstr "strcmp, strncmp - compara duas sequências de caractere"
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 "LIBRARY"
59 msgstr "BIBLIOTECA"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
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 "SYNOPSIS"
72 msgstr "SINOPSE"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
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 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
83 #: opensuse-tumbleweed
84 #, fuzzy, no-wrap
85 #| msgid "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
86 msgid ""
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 msgstr "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
90
91 #. type: SH
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "DESCRIPTION"
96 msgstr "DESCRIÇÃO"
97
98 #. type: TP
99 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
100 #, fuzzy, no-wrap
101 #| msgid "B<strip>"
102 msgid "B<strcmp>()"
103 msgstr "B<strip>"
104
105 #. type: Plain text
106 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
107 msgid ""
108 "The B<strcmp>() function compares the two strings I<s1> and I<s2>, as if by "
109 "calling B<memcmp>(3)."
110 msgstr ""
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
119 #. type: Plain text
120 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
121 #, fuzzy
122 #| msgid "is equivalent to"
123 msgid "It is equivalent to"
124 msgstr "é equivalente a"
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 ""
131
132 #. type: TP
133 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
134 #, fuzzy, no-wrap
135 #| msgid "B<strlen>(3)"
136 msgid "B<strncmp>()"
137 msgstr "B<strlen>(3)"
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, fuzzy
143 #| msgid ""
144 #| "The B<strncmp()> function is similar, except it only compares the first "
145 #| "I<n> characters of I<s1>."
146 msgid ""
147 "The B<strncmp>() function is similar, except it compares only the first (at "
148 "most) I<n> bytes of I<s1> and I<s2>."
149 msgstr ""
150 "A função B<strncmp()> é similar, exceto que ela compara apenas os primeiros "
151 "I<n> caracteres de I<s1>."
152
153 #. type: Plain text
154 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
155 #, no-wrap
156 msgid "memcmp(s1, s2, MIN(MIN(strnlen(s1,n),strnlen(s2,n))+1, n))\n"
157 msgstr ""
158
159 #. type: SH
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "RETURN VALUE"
164 msgstr "VALOR DE RETORNO"
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "The B<strcmp>() and B<strncmp>() functions return an integer less than, "
171 "equal to, or greater than zero if I<s1> (or the first I<n> bytes thereof) is "
172 "found, respectively, to be less than, to match, or be greater than I<s2>."
173 msgstr ""
174 "As funções B<strcmp>() e B<strncmp>() retornam um inteiro menor que, igual "
175 "a, ou maior que zero se I<s1> (ou os primeiros I<n> bytes dela) for "
176 "reconhecida, respectivamente, como sendo menor que, idêntica a, ou maior que "
177 "I<s2>."
178
179 #. type: SH
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid "ATTRIBUTES"
184 msgstr "ATRIBUTOS"
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 "For an explanation of the terms used in this section, see B<attributes>(7)."
191 msgstr ""
192 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
193
194 #. type: tbl table
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "Interface"
199 msgstr "Interface"
200
201 #. type: tbl table
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 #, no-wrap
205 msgid "Attribute"
206 msgstr "Atributo"
207
208 #. type: tbl table
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "Value"
213 msgstr "Valor"
214
215 #. type: tbl table
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid ".na\n"
220 msgstr ".na\n"
221
222 #. type: tbl table
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid ".nh\n"
227 msgstr ".nh\n"
228
229 #. type: tbl table
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid ""
234 "B<strcmp>(),\n"
235 "B<strncmp>()"
236 msgstr ""
237 "B<strcmp>(),\n"
238 "B<strncmp>()"
239
240 #. type: tbl table
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid "Thread safety"
245 msgstr "Thread safety"
246
247 #. type: tbl table
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "MT-Safe"
252 msgstr "MT-Safe"
253
254 #. type: SH
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "VERSIONS"
259 msgstr "VERSÕES"
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid "POSIX.1 specifies only that:"
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "The sign of a nonzero return value shall be determined by the sign of the "
272 "difference between the values of the first pair of bytes (both interpreted "
273 "as type I<unsigned char>) that differ in the strings being compared."
274 msgstr ""
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "In glibc, as in most other implementations, the return value is the "
281 "arithmetic result of subtracting the last compared byte in I<s2> from the "
282 "last compared byte in I<s1>. (If the two characters are equal, this "
283 "difference is 0.)"
284 msgstr ""
285
286 #. type: SH
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "STANDARDS"
291 msgstr "PADRÕES"
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid "C11, POSIX.1-2008."
297 msgstr "C11, POSIX.1-2008."
298
299 #. type: SH
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "HISTORY"
304 msgstr "HISTÓRICO"
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
310 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
311
312 #. type: SH
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "EXAMPLES"
317 msgstr "EXEMPLOS"
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 msgid ""
323 "The program below can be used to demonstrate the operation of B<strcmp>() "
324 "(when given two arguments) and B<strncmp>() (when given three arguments). "
325 "First, some examples using B<strcmp>():"
326 msgstr ""
327
328 #. type: Plain text
329 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
330 #: opensuse-tumbleweed
331 #, no-wrap
332 msgid ""
333 "$B< ./string_comp ABC ABC>;\n"
334 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
335 "$B< ./string_comp ABC AB>; # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
336 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
337 "$B< ./string_comp ABA ABZ>; # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
338 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
339 "$B< ./string_comp ABJ ABC>;\n"
340 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
341 "$B< ./string_comp $\\[aq]\\[rs]201\\[aq] A>; # 0201 - 0101 = 0100 (or 64 decimal)\n"
342 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
343 msgstr ""
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 msgid ""
349 "The last example uses B<bash>(1)-specific syntax to produce a string "
350 "containing an 8-bit ASCII code; the result demonstrates that the string "
351 "comparison uses unsigned characters."
352 msgstr ""
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 msgid "And then some examples using B<strncmp>():"
358 msgstr ""
359
360 #. type: Plain text
361 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
362 #: opensuse-tumbleweed
363 #, no-wrap
364 msgid ""
365 "$B< ./string_comp ABC AB 3>;\n"
366 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
367 "$B< ./string_comp ABC AB 2>;\n"
368 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
369 msgstr ""
370
371 #. type: SS
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "Program source"
376 msgstr "Fonte do programa"
377
378 #. type: Plain text
379 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
380 #: opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid ""
383 "/* string_comp.c\n"
384 "\\&\n"
385 " Licensed under GNU General Public License v2 or later.\n"
386 "*/\n"
387 "#include E<lt>stdio.hE<gt>\n"
388 "#include E<lt>stdlib.hE<gt>\n"
389 "#include E<lt>string.hE<gt>\n"
390 "\\&\n"
391 "int\n"
392 "main(int argc, char *argv[])\n"
393 "{\n"
394 " int res;\n"
395 "\\&\n"
396 " if (argc E<lt> 3) {\n"
397 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
398 " exit(EXIT_FAILURE);\n"
399 " }\n"
400 "\\&\n"
401 " if (argc == 3)\n"
402 " res = strcmp(argv[1], argv[2]);\n"
403 " else\n"
404 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
405 "\\&\n"
406 " if (res == 0) {\n"
407 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
408 " if (argc E<gt> 3)\n"
409 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
410 " printf(\"\\[rs]n\");\n"
411 " } else if (res E<lt> 0) {\n"
412 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
413 " } else {\n"
414 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
415 " }\n"
416 "\\&\n"
417 " exit(EXIT_SUCCESS);\n"
418 "}\n"
419 msgstr ""
420
421 #. SRC END
422 #. type: SH
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "SEE ALSO"
427 msgstr "VEJA TAMBÉM"
428
429 #. type: Plain text
430 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
431 #, fuzzy
432 #| msgid ""
433 #| "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
434 #| "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), "
435 #| "B<ascii>(7)"
436 msgid ""
437 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<streq>(3), B<string>(3), "
438 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
439 msgstr ""
440 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
441 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
442
443 #. type: TH
444 #: debian-trixie
445 #, no-wrap
446 msgid "2024-06-15"
447 msgstr "15 junho 2024"
448
449 #. type: TH
450 #: debian-trixie
451 #, no-wrap
452 msgid "Linux man-pages 6.9.1"
453 msgstr "Linux man-pages 6.9.1"
454
455 #. type: Plain text
456 #: debian-trixie
457 msgid "Standard C library (I<libc>, I<-lc>)"
458 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
459
460 #. type: Plain text
461 #: debian-trixie fedora-44 fedora-rawhide
462 #, fuzzy, no-wrap
463 #| msgid "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
464 msgid ""
465 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
466 "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"
467 msgstr "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
468
469 #. type: Plain text
470 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
471 msgid ""
472 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. The "
473 "locale is not taken into account (for a locale-aware comparison, see "
474 "B<strcoll>(3)). The comparison is done using unsigned characters."
475 msgstr ""
476
477 #. type: Plain text
478 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
479 msgid ""
480 "B<strcmp>() returns an integer indicating the result of the comparison, as "
481 "follows:"
482 msgstr ""
483
484 #. type: IP
485 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
486 #, no-wrap
487 msgid "\\[bu]"
488 msgstr "\\[bu]"
489
490 #. type: Plain text
491 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
492 msgid "0, if the I<s1> and I<s2> are equal;"
493 msgstr ""
494
495 #. type: Plain text
496 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
497 msgid "a negative value if I<s1> is less than I<s2>;"
498 msgstr ""
499
500 #. type: Plain text
501 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
502 msgid "a positive value if I<s1> is greater than I<s2>."
503 msgstr ""
504
505 #. type: Plain text
506 #: debian-trixie fedora-44 fedora-rawhide
507 #, no-wrap
508 msgid ""
509 "$ B<./string_comp ABC ABC>\n"
510 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
511 "$ B<./string_comp ABC AB> # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
512 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
513 "$ B<./string_comp ABA ABZ> # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
514 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
515 "$ B<./string_comp ABJ ABC>\n"
516 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
517 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (or 64 decimal)\n"
518 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
519 msgstr ""
520
521 #. type: Plain text
522 #: debian-trixie fedora-44 fedora-rawhide
523 #, no-wrap
524 msgid ""
525 "$ B<./string_comp ABC AB 3>\n"
526 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
527 "$ B<./string_comp ABC AB 2>\n"
528 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
529 msgstr ""
530
531 #. type: Plain text
532 #: debian-trixie
533 #, no-wrap
534 msgid ""
535 "/* string_comp.c\n"
536 "\\&\n"
537 " Licensed under GNU General Public License v2 or later.\n"
538 "*/\n"
539 "#include E<lt>stdio.hE<gt>\n"
540 "#include E<lt>stdlib.hE<gt>\n"
541 "#include E<lt>string.hE<gt>\n"
542 "\\&\n"
543 "int\n"
544 "main(int argc, char *argv[])\n"
545 "{\n"
546 " int res;\n"
547 "\\&\n"
548 " if (argc E<lt> 3) {\n"
549 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>lenE<gt>]\\[rs]n\", argv[0]);\n"
550 " exit(EXIT_FAILURE);\n"
551 " }\n"
552 "\\&\n"
553 " if (argc == 3)\n"
554 " res = strcmp(argv[1], argv[2]);\n"
555 " else\n"
556 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
557 "\\&\n"
558 " if (res == 0) {\n"
559 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
560 " if (argc E<gt> 3)\n"
561 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
562 " printf(\"\\[rs]n\");\n"
563 " } else if (res E<lt> 0) {\n"
564 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
565 " } else {\n"
566 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
567 " }\n"
568 "\\&\n"
569 " exit(EXIT_SUCCESS);\n"
570 "}\n"
571 msgstr ""
572
573 #. type: Plain text
574 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
575 #, fuzzy
576 #| msgid ""
577 #| "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
578 #| "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), "
579 #| "B<ascii>(7)"
580 msgid ""
581 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
582 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
583 msgstr ""
584 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
585 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
586
587 #. type: TH
588 #: fedora-44 fedora-rawhide
589 #, no-wrap
590 msgid "2024-11-17"
591 msgstr "17 novembro 2024"
592
593 #. type: TH
594 #: fedora-44 fedora-rawhide
595 #, no-wrap
596 msgid "Linux man-pages 6.13"
597 msgstr "Linux man-pages 6.13"
598
599 #. type: TH
600 #: mageia-cauldron
601 #, no-wrap
602 msgid "2026-02-08"
603 msgstr "8 fevereiro 2026"
604
605 #. type: TH
606 #: mageia-cauldron
607 #, no-wrap
608 msgid "Linux man-pages 6.17"
609 msgstr "Linux man-pages 6.17"
610
611 #. type: TH
612 #: opensuse-leap-16-1 opensuse-tumbleweed
613 #, no-wrap
614 msgid "Linux man-pages (unreleased)"
615 msgstr "Linux man-pages (não lançado)"