Debian Codegraph @

po/es/man3/strcmp.3.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Gerardo Aburruzaga García <[email protected]>, 1998.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
9 "PO-Revision-Date: 1998-03-26 19:55+0200\n"
10 "Last-Translator: Gerardo Aburruzaga García <[email protected]>\n"
11 "Language-Team: Spanish <[email protected]>\n"
12 "Language: es\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=2; plural=(n != 1);\n"
17 "X-Generator: Lokalize 20.04.1\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "strcmp"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-03-16"
30 msgstr "16 Marzo 2026"
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, fuzzy, no-wrap
35 #| msgid "Linux man-pages 6.17"
36 msgid "Linux man-pages 6.18"
37 msgstr "Páginas de Manual de Linux 6.17"
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 "NOMBRE"
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 - comparar dos cadenas de caracteres"
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 Estándar C (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 #, fuzzy, no-wrap
83 #| msgid "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
84 msgid ""
85 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
86 "B<int strncmp(const char >s1B<[], const char >s2B<[], size_t >nB<);>\n"
87 msgstr "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
88
89 #. type: SH
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "DESCRIPTION"
94 msgstr "DESCRIPCIÓN"
95
96 #. type: TP
97 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
98 #, fuzzy, no-wrap
99 #| msgid "B<strncpy>(3)"
100 msgid "B<strcmp>()"
101 msgstr "B<strncpy>(3)"
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
110 #. type: Plain text
111 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "The locale is not taken into account (for a locale-aware comparison, see "
114 "B<strcoll>(3))."
115 msgstr ""
116
117 #. type: Plain text
118 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
119 #, fuzzy
120 #| msgid "Equivalent to B<-l>."
121 msgid "It is equivalent to"
122 msgstr "Equivale a B<-l>."
123
124 #. type: Plain text
125 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid "memcmp(s1, s2, MIN(strlen(s1),strlen(s2))+1)\n"
128 msgstr ""
129
130 #. type: TP
131 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
132 #, fuzzy, no-wrap
133 #| msgid "B<strncpy>(3)"
134 msgid "B<strncmp>()"
135 msgstr "B<strncpy>(3)"
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, fuzzy
141 #| msgid ""
142 #| "The B<strncmp()> function is similar, except it only compares the first "
143 #| "(at most) I<n> characters of I<s1> and I<s2>."
144 msgid ""
145 "The B<strncmp>() function is similar, except it compares only the first (at "
146 "most) I<n> bytes of I<s1> and I<s2>."
147 msgstr ""
148 "La función B<strncmp()> es similar, salvo que solamente compara los primeros "
149 "I<n> caracteres de I<s1>."
150
151 #. type: Plain text
152 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "memcmp(s1, s2, MIN(MIN(strnlen(s1,n),strnlen(s2,n))+1, n))\n"
155 msgstr ""
156
157 #. type: SH
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, no-wrap
161 msgid "RETURN VALUE"
162 msgstr "VALOR DEVUELTO"
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "The B<strcmp>() and B<strncmp>() functions return an integer less than, "
169 "equal to, or greater than zero if I<s1> (or the first I<n> bytes thereof) is "
170 "found, respectively, to be less than, to match, or be greater than I<s2>."
171 msgstr ""
172 "Las funciones B<strcmp>() y B<strncmp>() devuelven un entero menor que, "
173 "igual a, o mayor que cero si I<s1> (o los primeros I<n> bytes en el segundo "
174 "caso) se encuentra que es, respectivamente, menor que, igual a, o mayor que "
175 "I<s2>."
176
177 #. type: SH
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "ATTRIBUTES"
182 msgstr "ATRIBUTOS"
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "For an explanation of the terms used in this section, see B<attributes>(7)."
189 msgstr ""
190 "Para obtener una explicación de los términos usados en esta sección, véase "
191 "B<attributes>(7)."
192
193 #. type: tbl table
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "Interface"
198 msgstr "Interfaz"
199
200 #. type: tbl table
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "Attribute"
205 msgstr "Atributo"
206
207 #. type: tbl table
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "Value"
212 msgstr "Valor"
213
214 #. type: tbl table
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, no-wrap
218 msgid ".na\n"
219 msgstr ".na\n"
220
221 #. type: tbl table
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid ".nh\n"
226 msgstr ".nh\n"
227
228 #. type: tbl table
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid ""
233 "B<strcmp>(),\n"
234 "B<strncmp>()"
235 msgstr ""
236 "B<strcmp>(),\n"
237 "B<strncmp>()"
238
239 #. type: tbl table
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 #, no-wrap
243 msgid "Thread safety"
244 msgstr "Seguridad del hilo"
245
246 #. type: tbl table
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, no-wrap
250 msgid "MT-Safe"
251 msgstr "Multi-hilo seguro"
252
253 #. type: SH
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "VERSIONS"
258 msgstr "VERSIONES"
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid "POSIX.1 specifies only that:"
264 msgstr ""
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid ""
270 "The sign of a nonzero return value shall be determined by the sign of the "
271 "difference between the values of the first pair of bytes (both interpreted "
272 "as type I<unsigned char>) that differ in the strings being compared."
273 msgstr ""
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
285 #. type: SH
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "STANDARDS"
290 msgstr "ESTÁNDARES"
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid "C11, POSIX.1-2008."
296 msgstr "C11, POSIX.1-2008."
297
298 #. type: SH
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "HISTORY"
303 msgstr "HISTORIAL"
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid "POSIX.1-2001, C89, SVr4, 4.3BSD."
309 msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD."
310
311 #. type: SH
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "EXAMPLES"
316 msgstr "EJEMPLOS"
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "The program below can be used to demonstrate the operation of B<strcmp>() "
323 "(when given two arguments) and B<strncmp>() (when given three arguments). "
324 "First, some examples using B<strcmp>():"
325 msgstr ""
326
327 #. type: Plain text
328 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
329 #: opensuse-tumbleweed
330 #, no-wrap
331 msgid ""
332 "$B< ./string_comp ABC ABC>;\n"
333 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
334 "$B< ./string_comp ABC AB>; # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
335 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
336 "$B< ./string_comp ABA ABZ>; # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
337 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
338 "$B< ./string_comp ABJ ABC>;\n"
339 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
340 "$B< ./string_comp $\\[aq]\\[rs]201\\[aq] A>; # 0201 - 0101 = 0100 (or 64 decimal)\n"
341 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
342 msgstr ""
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid ""
348 "The last example uses B<bash>(1)-specific syntax to produce a string "
349 "containing an 8-bit ASCII code; the result demonstrates that the string "
350 "comparison uses unsigned characters."
351 msgstr ""
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid "And then some examples using B<strncmp>():"
357 msgstr ""
358
359 #. type: Plain text
360 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
361 #: opensuse-tumbleweed
362 #, no-wrap
363 msgid ""
364 "$B< ./string_comp ABC AB 3>;\n"
365 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
366 "$B< ./string_comp ABC AB 2>;\n"
367 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
368 msgstr ""
369
370 #. type: SS
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "Program source"
375 msgstr "Código fuente"
376
377 #. type: Plain text
378 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
379 #: opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid ""
382 "/* string_comp.c\n"
383 "\\&\n"
384 " Licensed under GNU General Public License v2 or later.\n"
385 "*/\n"
386 "#include E<lt>stdio.hE<gt>\n"
387 "#include E<lt>stdlib.hE<gt>\n"
388 "#include E<lt>string.hE<gt>\n"
389 "\\&\n"
390 "int\n"
391 "main(int argc, char *argv[])\n"
392 "{\n"
393 " int res;\n"
394 "\\&\n"
395 " if (argc E<lt> 3) {\n"
396 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>nE<gt>]\\[rs]n\", argv[0]);\n"
397 " exit(EXIT_FAILURE);\n"
398 " }\n"
399 "\\&\n"
400 " if (argc == 3)\n"
401 " res = strcmp(argv[1], argv[2]);\n"
402 " else\n"
403 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
404 "\\&\n"
405 " if (res == 0) {\n"
406 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
407 " if (argc E<gt> 3)\n"
408 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
409 " printf(\"\\[rs]n\");\n"
410 " } else if (res E<lt> 0) {\n"
411 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
412 " } else {\n"
413 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
414 " }\n"
415 "\\&\n"
416 " exit(EXIT_SUCCESS);\n"
417 "}\n"
418 msgstr ""
419
420 #. SRC END
421 #. type: SH
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid "SEE ALSO"
426 msgstr "VÉASE TAMBIÉN"
427
428 #. type: Plain text
429 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
430 #, fuzzy
431 #| msgid ""
432 #| "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
433 #| "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), "
434 #| "B<ascii>(7)"
435 msgid ""
436 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<streq>(3), B<string>(3), "
437 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
438 msgstr ""
439 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
440 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
441
442 #. type: TH
443 #: debian-trixie
444 #, no-wrap
445 msgid "2024-06-15"
446 msgstr "15 Junio 2024"
447
448 #. type: TH
449 #: debian-trixie
450 #, no-wrap
451 msgid "Linux man-pages 6.9.1"
452 msgstr "Páginas de Manual de Linux 6.9.1"
453
454 #. type: Plain text
455 #: debian-trixie
456 msgid "Standard C library (I<libc>, I<-lc>)"
457 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
458
459 #. type: Plain text
460 #: debian-trixie fedora-44 fedora-rawhide
461 #, fuzzy, no-wrap
462 #| msgid "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
463 msgid ""
464 "B<int strcmp(const char *>I<s1>B<, const char *>I<s2>B<);>\n"
465 "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"
466 msgstr "B<int strncmp(const char *>I<s1>B<, const char *>I<s2>B<, size_t >I<n>B<);>\n"
467
468 #. type: Plain text
469 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
470 msgid ""
471 "The B<strcmp>() function compares the two strings I<s1> and I<s2>. The "
472 "locale is not taken into account (for a locale-aware comparison, see "
473 "B<strcoll>(3)). The comparison is done using unsigned characters."
474 msgstr ""
475
476 #. type: Plain text
477 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
478 msgid ""
479 "B<strcmp>() returns an integer indicating the result of the comparison, as "
480 "follows:"
481 msgstr ""
482
483 #. type: IP
484 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
485 #, no-wrap
486 msgid "\\[bu]"
487 msgstr "\\[bu]"
488
489 #. type: Plain text
490 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
491 msgid "0, if the I<s1> and I<s2> are equal;"
492 msgstr ""
493
494 #. type: Plain text
495 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
496 msgid "a negative value if I<s1> is less than I<s2>;"
497 msgstr ""
498
499 #. type: Plain text
500 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
501 msgid "a positive value if I<s1> is greater than I<s2>."
502 msgstr ""
503
504 #. type: Plain text
505 #: debian-trixie fedora-44 fedora-rawhide
506 #, no-wrap
507 msgid ""
508 "$ B<./string_comp ABC ABC>\n"
509 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal\n"
510 "$ B<./string_comp ABC AB> # \\[aq]C\\[aq] is ASCII 67; \\[aq]C\\[aq] - \\[aq]\\[rs]0\\[aq] = 67\n"
511 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
512 "$ B<./string_comp ABA ABZ> # \\[aq]A\\[aq] is ASCII 65; \\[aq]Z\\[aq] is ASCII 90\n"
513 "E<lt>str1E<gt> is less than E<lt>str2E<gt> (-25)\n"
514 "$ B<./string_comp ABJ ABC>\n"
515 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (7)\n"
516 "$ .B</string_comp $\\[aq]\\[rs]201\\[aq] A> # 0201 - 0101 = 0100 (or 64 decimal)\n"
517 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (64)\n"
518 msgstr ""
519
520 #. type: Plain text
521 #: debian-trixie fedora-44 fedora-rawhide
522 #, no-wrap
523 msgid ""
524 "$ B<./string_comp ABC AB 3>\n"
525 "E<lt>str1E<gt> is greater than E<lt>str2E<gt> (67)\n"
526 "$ B<./string_comp ABC AB 2>\n"
527 "E<lt>str1E<gt> and E<lt>str2E<gt> are equal in the first 2 bytes\n"
528 msgstr ""
529
530 #. type: Plain text
531 #: debian-trixie
532 #, no-wrap
533 msgid ""
534 "/* string_comp.c\n"
535 "\\&\n"
536 " Licensed under GNU General Public License v2 or later.\n"
537 "*/\n"
538 "#include E<lt>stdio.hE<gt>\n"
539 "#include E<lt>stdlib.hE<gt>\n"
540 "#include E<lt>string.hE<gt>\n"
541 "\\&\n"
542 "int\n"
543 "main(int argc, char *argv[])\n"
544 "{\n"
545 " int res;\n"
546 "\\&\n"
547 " if (argc E<lt> 3) {\n"
548 " fprintf(stderr, \"Usage: %s E<lt>str1E<gt> E<lt>str2E<gt> [E<lt>lenE<gt>]\\[rs]n\", argv[0]);\n"
549 " exit(EXIT_FAILURE);\n"
550 " }\n"
551 "\\&\n"
552 " if (argc == 3)\n"
553 " res = strcmp(argv[1], argv[2]);\n"
554 " else\n"
555 " res = strncmp(argv[1], argv[2], atoi(argv[3]));\n"
556 "\\&\n"
557 " if (res == 0) {\n"
558 " printf(\"E<lt>str1E<gt> and E<lt>str2E<gt> are equal\");\n"
559 " if (argc E<gt> 3)\n"
560 " printf(\" in the first %d bytes\\[rs]n\", atoi(argv[3]));\n"
561 " printf(\"\\[rs]n\");\n"
562 " } else if (res E<lt> 0) {\n"
563 " printf(\"E<lt>str1E<gt> is less than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
564 " } else {\n"
565 " printf(\"E<lt>str1E<gt> is greater than E<lt>str2E<gt> (%d)\\[rs]n\", res);\n"
566 " }\n"
567 "\\&\n"
568 " exit(EXIT_SUCCESS);\n"
569 "}\n"
570 msgstr ""
571
572 #. type: Plain text
573 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
574 #, fuzzy
575 #| msgid ""
576 #| "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
577 #| "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), "
578 #| "B<ascii>(7)"
579 msgid ""
580 "B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
581 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
582 msgstr ""
583 "B<bcmp>(3), B<memcmp>(3), B<strcasecmp>(3), B<strcoll>(3), B<string>(3), "
584 "B<strncasecmp>(3), B<strverscmp>(3), B<wcscmp>(3), B<wcsncmp>(3), B<ascii>(7)"
585
586 #. type: TH
587 #: fedora-44 fedora-rawhide
588 #, no-wrap
589 msgid "2024-11-17"
590 msgstr "17 Noviembre 2024"
591
592 #. type: TH
593 #: fedora-44 fedora-rawhide
594 #, no-wrap
595 msgid "Linux man-pages 6.13"
596 msgstr "Páginas de Manual de Linux 6.13"
597
598 #. type: TH
599 #: mageia-cauldron
600 #, no-wrap
601 msgid "2026-02-08"
602 msgstr "8 Febrero 2026"
603
604 #. type: TH
605 #: mageia-cauldron
606 #, no-wrap
607 msgid "Linux man-pages 6.17"
608 msgstr "Páginas de Manual de Linux 6.17"
609
610 #. type: TH
611 #: opensuse-leap-16-1 opensuse-tumbleweed
612 #, no-wrap
613 msgid "Linux man-pages (unreleased)"
614 msgstr "Páginas de Manual de Linux (no publicadas)"