Debian Codegraph @

po/es/man3/bsearch.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 # Sebastian Desimone <[email protected]>, 1998.
5 # Juan Pablo Puerta <[email protected]>, 1998.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:19+0200\n"
10 "PO-Revision-Date: 1998-07-10 19:53+0200\n"
11 "Last-Translator: Juan Pablo Puerta <[email protected]>\n"
12 "Language-Team: Spanish <[email protected]>\n"
13 "Language: es\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18 "X-Generator: Lokalize 20.04.1\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 "bsearch"
25 msgstr "bsearch"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-10"
32 msgstr "10 Febrero 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 "Páginas de Manual de Linux 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 "NOMBRE"
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 "bsearch - binary search of a sorted array"
52 msgstr "bsearch - búsqueda binaria en un arreglo (array) ordenado"
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 Estándar C (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 "SINOPSIS"
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>stdlib.hE<gt>>\n"
79 msgstr "B<#include E<lt>stdlib.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 ""
86 #| "B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<nmemb>B<],>\n"
87 #| "B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
88 #| "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
89 msgid ""
90 "B<void *bsearch(>size_t n, size_t size;\n"
91 "B< const void >I<key>B<[>I<size>B<], const void >I<base>B<[>I<size>B< * >I<n>B<],>\n"
92 "B< size_t >I<n>B<, size_t >I<size>B<,>\n"
93 "B< typeof(int (const void [>I<size>B<], const void [>I<size>B<]))>\n"
94 "B< *>I<compar>B<);>\n"
95 msgstr ""
96 "B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<nmemb>B<],>\n"
97 "B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
98 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
99
100 #. type: SH
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 #, no-wrap
104 msgid "DESCRIPTION"
105 msgstr "DESCRIPCIÓN"
106
107 #. type: Plain text
108 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
109 #: opensuse-leap-16-1 opensuse-tumbleweed
110 #, fuzzy
111 #| msgid ""
112 #| "The B<bsearch>() function searches an array of I<nmemb> objects, the "
113 #| "initial member of which is pointed to by I<base>, for a member that "
114 #| "matches the object pointed to by I<key>. The size of each member of the "
115 #| "array is specified by I<size>."
116 msgid ""
117 "The B<bsearch>() function searches an array of I<n> objects, the initial "
118 "member of which is pointed to by I<base>, for a member that matches the "
119 "object pointed to by I<key>. The size of each member of the array is "
120 "specified by I<size>."
121 msgstr ""
122 "La función B<bsearch>() busca en un arreglo de I<nmemb> elementos, donde el "
123 "primer elemento está apuntado por I<base>, un elemento que coincida con el "
124 "objecto apuntado por I<key>. El tamaño de cada elementos del arreglo es "
125 "especificado por I<size>."
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid ""
131 "The contents of the array should be in ascending sorted order according to "
132 "the comparison function referenced by I<compar>. The I<compar> routine is "
133 "expected to have two arguments which point to the I<key> object and to an "
134 "array member, in that order, and should return an integer less than, equal "
135 "to, or greater than zero if the I<key> object is found, respectively, to be "
136 "less than, to match, or be greater than the array member."
137 msgstr ""
138 "El contenido del arreglo debe estar ordenado en orden ascendente según la "
139 "función de comparación referenciada por I<compar>. Se espera que la rutina "
140 "I<compar> tenga dos argumentos que apunten al objeto I<key> y a un elemento "
141 "del arreglo, en ese orden, y debe devolver un entero menor, igual o mayor "
142 "que cero si resulta que el objeto I<key> es menor, igual o mayor "
143 "(respectivamente) que el elemento del arreglo."
144
145 #. type: SH
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 #, no-wrap
149 msgid "RETURN VALUE"
150 msgstr "VALOR DEVUELTO"
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 msgid ""
156 "The B<bsearch>() function returns a pointer to a matching member of the "
157 "array, or NULL if no match is found. If there are multiple elements that "
158 "match the key, the element returned is unspecified."
159 msgstr ""
160 "La función B<bsearch>() devuelve un puntero al elemento del arreglo que "
161 "coincide, o NULL si no hay coincidencia. Si hay múltiples elementos que "
162 "coinciden con la clave, el elemento devuelto está sin determinar."
163
164 #. type: SH
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid "ATTRIBUTES"
169 msgstr "ATRIBUTOS"
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 "For an explanation of the terms used in this section, see B<attributes>(7)."
176 msgstr ""
177 "Para obtener una explicación de los términos usados en esta sección, véase "
178 "B<attributes>(7)."
179
180 #. type: tbl table
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 #, no-wrap
184 msgid "Interface"
185 msgstr "Interfaz"
186
187 #. type: tbl table
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, no-wrap
191 msgid "Attribute"
192 msgstr "Atributo"
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 "Value"
199 msgstr "Valor"
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 ".na\n"
206 msgstr ".na\n"
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 ".nh\n"
213 msgstr ".nh\n"
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 "B<bsearch>()"
220 msgstr "B<bsearch>()"
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 "Thread safety"
227 msgstr "Seguridad del hilo"
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 "MT-Safe"
234 msgstr "Multi-hilo seguro"
235
236 #. type: SH
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid "STANDARDS"
241 msgstr "ESTÁNDARES"
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid "C11, POSIX.1-2008."
247 msgstr "C11, POSIX.1-2008."
248
249 #. type: SH
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "HISTORY"
254 msgstr "HISTORIAL"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid "POSIX.1-2001, C89, C99, SVr4, 4.3BSD."
260 msgstr "POSIX.1-2001, C89, C99, SVr4, 4.3BSD."
261
262 #. type: SH
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "EXAMPLES"
267 msgstr "EJEMPLOS"
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 ""
273 "The example below first sorts an array of structures using B<qsort>(3), then "
274 "retrieves desired elements using B<bsearch>()."
275 msgstr ""
276
277 #. type: Plain text
278 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
279 #: opensuse-tumbleweed
280 #, no-wrap
281 msgid ""
282 "#include E<lt>stdcountof.hE<gt>\n"
283 "#include E<lt>stdio.hE<gt>\n"
284 "#include E<lt>stdlib.hE<gt>\n"
285 "#include E<lt>string.hE<gt>\n"
286 "\\&\n"
287 "struct mi {\n"
288 " int nr;\n"
289 " const char *name;\n"
290 "};\n"
291 "\\&\n"
292 "static struct mi months[] = {\n"
293 " { 1, \"jan\" }, { 2, \"feb\" }, { 3, \"mar\" }, { 4, \"apr\" },\n"
294 " { 5, \"may\" }, { 6, \"jun\" }, { 7, \"jul\" }, { 8, \"aug\" },\n"
295 " { 9, \"sep\" }, {10, \"oct\" }, {11, \"nov\" }, {12, \"dec\" }\n"
296 "};\n"
297 "\\&\n"
298 "static int\n"
299 "compmi(const void *m1, const void *m2)\n"
300 "{\n"
301 " const struct mi *mi1 = m1;\n"
302 " const struct mi *mi2 = m2;\n"
303 "\\&\n"
304 " return strcmp(mi1-E<gt>name, mi2-E<gt>name);\n"
305 "}\n"
306 "\\&\n"
307 "int\n"
308 "main(int argc, char *argv[])\n"
309 "{\n"
310 " qsort(months, countof(months), sizeof(months[0]), compmi);\n"
311 " for (size_t i = 1; i E<lt> argc; i++) {\n"
312 " struct mi key;\n"
313 " struct mi *res;\n"
314 "\\&\n"
315 " key.name = argv[i];\n"
316 " res = bsearch(&key, months, countof(months),\n"
317 " sizeof(months[0]), compmi);\n"
318 " if (res == NULL)\n"
319 " printf(\"\\[aq]%s\\[aq]: unknown month\\[rs]n\", argv[i]);\n"
320 " else\n"
321 " printf(\"%s: month #%d\\[rs]n\", res-E<gt>name, res-E<gt>nr);\n"
322 " }\n"
323 " exit(EXIT_SUCCESS);\n"
324 "}\n"
325 msgstr ""
326
327 #. SRC END
328 #. type: SH
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "SEE ALSO"
333 msgstr "VÉASE TAMBIÉN"
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid "B<hsearch>(3), B<lsearch>(3), B<qsort>(3), B<tsearch>(3)"
339 msgstr "B<hsearch>(3), B<lsearch>(3), B<qsort>(3), B<tsearch>(3)"
340
341 #. type: TH
342 #: debian-trixie
343 #, no-wrap
344 msgid "2024-06-15"
345 msgstr "15 Junio 2024"
346
347 #. type: TH
348 #: debian-trixie
349 #, no-wrap
350 msgid "Linux man-pages 6.9.1"
351 msgstr "Páginas de Manual de Linux 6.9.1"
352
353 #. type: Plain text
354 #: debian-trixie
355 msgid "Standard C library (I<libc>, I<-lc>)"
356 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
357
358 #. type: Plain text
359 #: debian-trixie
360 #, no-wrap
361 msgid ""
362 "B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<nmemb>B<],>\n"
363 "B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
364 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
365 msgstr ""
366 "B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<nmemb>B<],>\n"
367 "B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
368 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
369
370 #. type: Plain text
371 #: debian-trixie
372 msgid ""
373 "The B<bsearch>() function searches an array of I<nmemb> objects, the "
374 "initial member of which is pointed to by I<base>, for a member that matches "
375 "the object pointed to by I<key>. The size of each member of the array is "
376 "specified by I<size>."
377 msgstr ""
378 "La función B<bsearch>() busca en un arreglo de I<nmemb> elementos, donde el "
379 "primer elemento está apuntado por I<base>, un elemento que coincida con el "
380 "objecto apuntado por I<key>. El tamaño de cada elementos del arreglo es "
381 "especificado por I<size>."
382
383 #. type: Plain text
384 #: debian-trixie fedora-44 fedora-rawhide
385 #, no-wrap
386 msgid ""
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 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
392 "\\&\n"
393 "struct mi {\n"
394 " int nr;\n"
395 " const char *name;\n"
396 "};\n"
397 "\\&\n"
398 "static struct mi months[] = {\n"
399 " { 1, \"jan\" }, { 2, \"feb\" }, { 3, \"mar\" }, { 4, \"apr\" },\n"
400 " { 5, \"may\" }, { 6, \"jun\" }, { 7, \"jul\" }, { 8, \"aug\" },\n"
401 " { 9, \"sep\" }, {10, \"oct\" }, {11, \"nov\" }, {12, \"dec\" }\n"
402 "};\n"
403 "\\&\n"
404 "static int\n"
405 "compmi(const void *m1, const void *m2)\n"
406 "{\n"
407 " const struct mi *mi1 = m1;\n"
408 " const struct mi *mi2 = m2;\n"
409 "\\&\n"
410 " return strcmp(mi1-E<gt>name, mi2-E<gt>name);\n"
411 "}\n"
412 "\\&\n"
413 "int\n"
414 "main(int argc, char *argv[])\n"
415 "{\n"
416 " qsort(months, ARRAY_SIZE(months), sizeof(months[0]), compmi);\n"
417 " for (size_t i = 1; i E<lt> argc; i++) {\n"
418 " struct mi key;\n"
419 " struct mi *res;\n"
420 "\\&\n"
421 " key.name = argv[i];\n"
422 " res = bsearch(&key, months, ARRAY_SIZE(months),\n"
423 " sizeof(months[0]), compmi);\n"
424 " if (res == NULL)\n"
425 " printf(\"\\[aq]%s\\[aq]: unknown month\\[rs]n\", argv[i]);\n"
426 " else\n"
427 " printf(\"%s: month #%d\\[rs]n\", res-E<gt>name, res-E<gt>nr);\n"
428 " }\n"
429 " exit(EXIT_SUCCESS);\n"
430 "}\n"
431 msgstr ""
432
433 #. type: TH
434 #: fedora-44 fedora-rawhide
435 #, no-wrap
436 msgid "2024-12-13"
437 msgstr "13 Diciembre 2024"
438
439 #. type: TH
440 #: fedora-44 fedora-rawhide
441 #, no-wrap
442 msgid "Linux man-pages 6.13"
443 msgstr "Páginas de Manual de Linux 6.13"
444
445 #. type: Plain text
446 #: fedora-44 fedora-rawhide
447 #, fuzzy, no-wrap
448 #| msgid ""
449 #| "B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<nmemb>B<],>\n"
450 #| "B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
451 #| "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
452 msgid ""
453 "B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<n>B<],>\n"
454 "B< size_t >I<n>B<, size_t >I<size>B<,>\n"
455 "B< typeof(int (const void [.>I<size>B<], const void [.>I<size>B<]))>\n"
456 "B< *>I<compar>B<);>\n"
457 msgstr ""
458 "B<void *bsearch(const void >I<key>B<[.>I<size>B<], const void >I<base>B<[.>I<size>B< * .>I<nmemb>B<],>\n"
459 "B< size_t >I<nmemb>B<, size_t >I<size>B<,>\n"
460 "B< int (*>I<compar>B<)(const void [.>I<size>B<], const void [.>I<size>B<]));>\n"
461
462 #. type: TH
463 #: mageia-cauldron
464 #, no-wrap
465 msgid "Linux man-pages 6.17"
466 msgstr "Páginas de Manual de Linux 6.17"
467
468 #. type: TH
469 #: opensuse-leap-16-1 opensuse-tumbleweed
470 #, no-wrap
471 msgid "Linux man-pages (unreleased)"
472 msgstr "Páginas de Manual de Linux (no publicadas)"