Debian Codegraph @

po/es/archive/man3/strcat.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 # Miguel Pérez Ibars <[email protected]>, 2004.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2023-08-27 17:24+0200\n"
9 "PO-Revision-Date: 2021-01-30 18:00+0100\n"
10 "Last-Translator: Miguel Pérez Ibars <[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 #: opensuse-leap-15-6
21 #, no-wrap
22 msgid "STRCAT"
23 msgstr "STRCAT"
24
25 #. type: TH
26 #: opensuse-leap-15-6
27 #, no-wrap
28 msgid "2017-09-15"
29 msgstr "15 Septiembre 2017"
30
31 #. type: TH
32 #: opensuse-leap-15-6
33 #, no-wrap
34 msgid "GNU"
35 msgstr "GNU"
36
37 #. type: TH
38 #: opensuse-leap-15-6
39 #, no-wrap
40 msgid "Linux Programmer's Manual"
41 msgstr "Manual del Programador de Linux"
42
43 #. type: SH
44 #: opensuse-leap-15-6
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOMBRE"
48
49 #. type: Plain text
50 #: opensuse-leap-15-6
51 msgid "strcat, strncat - concatenate two strings"
52 msgstr "strcat, strncat - concatena dos cadenas"
53
54 #. type: SH
55 #: opensuse-leap-15-6
56 #, no-wrap
57 msgid "SYNOPSIS"
58 msgstr "SINOPSIS"
59
60 #. type: Plain text
61 #: opensuse-leap-15-6
62 #, no-wrap
63 msgid "B<#include E<lt>string.hE<gt>>\n"
64 msgstr "B<#include E<lt>string.hE<gt>>\n"
65
66 #. type: Plain text
67 #: opensuse-leap-15-6
68 #, no-wrap
69 msgid "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
70 msgstr "B<char *strcat(char *>I<dest>B<, const char *>I<src>B<);>\n"
71
72 #. type: Plain text
73 #: opensuse-leap-15-6
74 #, no-wrap
75 msgid "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
76 msgstr "B<char *strncat(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
77
78 #. type: SH
79 #: opensuse-leap-15-6
80 #, no-wrap
81 msgid "DESCRIPTION"
82 msgstr "DESCRIPCIÓN"
83
84 #. type: Plain text
85 #: opensuse-leap-15-6
86 #, fuzzy
87 #| msgid ""
88 #| "The B<strcat()> function appends the I<src> string to the I<dest> string "
89 #| "overwriting the `\\e0' character at the end of I<dest>, and then adds a "
90 #| "terminating `\\e0' character. The strings may not overlap, and the "
91 #| "I<dest> string must have enough space for the result."
92 msgid ""
93 "The B<strcat>() function appends the I<src> string to the I<dest> string, "
94 "overwriting the terminating null byte (\\(aq\\e0\\(aq) at the end of "
95 "I<dest>, and then adds a terminating null byte. The strings may not "
96 "overlap, and the I<dest> string must have enough space for the result. If "
97 "I<dest> is not large enough, program behavior is unpredictable; I<buffer "
98 "overruns are a favorite avenue for attacking secure programs>."
99 msgstr ""
100 "La función B<strcat()> une la cadena I<src> a la cadena I<dest> "
101 "sobreescribiendo el carácter `\\e0' al final de I<dest>, y entonces añade un "
102 "carácter final `\\e0'. Las cadenas no deben solaparse, y la cadena I<dest> "
103 "debe tener suficiente espacio para el resultado."
104
105 #. type: Plain text
106 #: opensuse-leap-15-6
107 msgid "The B<strncat>() function is similar, except that"
108 msgstr ""
109
110 #. type: IP
111 #: opensuse-leap-15-6
112 #, no-wrap
113 msgid "*"
114 msgstr "*"
115
116 #. type: Plain text
117 #: opensuse-leap-15-6
118 msgid "it will use at most I<n> bytes from I<src>; and"
119 msgstr ""
120
121 #. type: Plain text
122 #: opensuse-leap-15-6
123 msgid ""
124 "I<src> does not need to be null-terminated if it contains I<n> or more bytes."
125 msgstr ""
126
127 #. type: Plain text
128 #: opensuse-leap-15-6
129 msgid ""
130 "As with B<strcat>(), the resulting string in I<dest> is always null-"
131 "terminated."
132 msgstr ""
133
134 #. type: Plain text
135 #: opensuse-leap-15-6
136 msgid ""
137 "If I<src> contains I<n> or more bytes, B<strncat>() writes I<n+1> bytes to "
138 "I<dest> (I<n> from I<src> plus the terminating null byte). Therefore, the "
139 "size of I<dest> must be at least I<strlen(dest)+n+1>."
140 msgstr ""
141
142 #. type: Plain text
143 #: opensuse-leap-15-6
144 msgid "A simple implementation of B<strncat>() might be:"
145 msgstr ""
146
147 #. type: Plain text
148 #: opensuse-leap-15-6
149 #, no-wrap
150 msgid ""
151 "char *\n"
152 "strncat(char *dest, const char *src, size_t n)\n"
153 "{\n"
154 " size_t dest_len = strlen(dest);\n"
155 " size_t i;\n"
156 msgstr ""
157 "char *\n"
158 "strncat(char *dest, const char *src, size_t n)\n"
159 "{\n"
160 " size_t dest_len = strlen(dest);\n"
161 " size_t i;\n"
162
163 #. type: Plain text
164 #: opensuse-leap-15-6
165 #, no-wrap
166 msgid ""
167 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
168 " dest[dest_len + i] = src[i];\n"
169 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
170 msgstr ""
171 " for (i = 0 ; i E<lt> n && src[i] != \\(aq\\e0\\(aq ; i++)\n"
172 " dest[dest_len + i] = src[i];\n"
173 " dest[dest_len + i] = \\(aq\\e0\\(aq;\n"
174
175 #. type: Plain text
176 #: opensuse-leap-15-6
177 #, no-wrap
178 msgid ""
179 " return dest;\n"
180 "}\n"
181 msgstr ""
182 " return dest;\n"
183 "}\n"
184
185 #. type: SH
186 #: opensuse-leap-15-6
187 #, no-wrap
188 msgid "RETURN VALUE"
189 msgstr "VALOR DEVUELTO"
190
191 #. type: Plain text
192 #: opensuse-leap-15-6
193 msgid ""
194 "The B<strcat>() and B<strncat>() functions return a pointer to the "
195 "resulting string I<dest>."
196 msgstr ""
197 "Las funciones B<strcat>() y B<strncat>() devuelven un puntero que apunta a "
198 "la cadena resultante I<dest>."
199
200 #. type: SH
201 #: opensuse-leap-15-6
202 #, no-wrap
203 msgid "ATTRIBUTES"
204 msgstr "ATRIBUTOS"
205
206 #. type: Plain text
207 #: opensuse-leap-15-6
208 msgid ""
209 "For an explanation of the terms used in this section, see B<attributes>(7)."
210 msgstr ""
211 "Para obtener una explicación de los términos usados en esta sección, véase "
212 "B<attributes>(7)."
213
214 #. type: tbl table
215 #: opensuse-leap-15-6
216 #, no-wrap
217 msgid "Interface"
218 msgstr "Interfaz"
219
220 #. type: tbl table
221 #: opensuse-leap-15-6
222 #, no-wrap
223 msgid "Attribute"
224 msgstr "Atributo"
225
226 #. type: tbl table
227 #: opensuse-leap-15-6
228 #, no-wrap
229 msgid "Value"
230 msgstr "Valor"
231
232 #. type: tbl table
233 #: opensuse-leap-15-6
234 #, no-wrap
235 msgid ""
236 "B<strcat>(),\n"
237 "B<strncat>()"
238 msgstr ""
239 "B<strcat>(),\n"
240 "B<strncat>()"
241
242 #. type: tbl table
243 #: opensuse-leap-15-6
244 #, no-wrap
245 msgid "Thread safety"
246 msgstr "Seguridad del hilo"
247
248 #. type: tbl table
249 #: opensuse-leap-15-6
250 #, no-wrap
251 msgid "MT-Safe"
252 msgstr "Multi-hilo seguro"
253
254 #. type: SH
255 #: opensuse-leap-15-6
256 #, no-wrap
257 msgid "CONFORMING TO"
258 msgstr "CONFORME A"
259
260 #. type: Plain text
261 #: opensuse-leap-15-6
262 msgid "POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD."
263 msgstr "POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD."
264
265 #. type: SH
266 #: opensuse-leap-15-6
267 #, no-wrap
268 msgid "NOTES"
269 msgstr "NOTAS"
270
271 #. type: Plain text
272 #: opensuse-leap-15-6
273 msgid ""
274 "Some systems (the BSDs, Solaris, and others) provide the following function:"
275 msgstr ""
276
277 #. type: Plain text
278 #: opensuse-leap-15-6
279 #, no-wrap
280 msgid " size_t strlcat(char *dest, const char *src, size_t size);\n"
281 msgstr " size_t strlcat(char *dest, const char *src, size_t size);\n"
282
283 #. https://lwn.net/Articles/506530/
284 #. type: Plain text
285 #: opensuse-leap-15-6
286 msgid ""
287 "This function appends the null-terminated string I<src> to the string "
288 "I<dest>, copying at most I<size-strlen(dest)-1> from I<src>, and adds a "
289 "terminating null byte to the result, I<unless> I<size> is less than "
290 "I<strlen(dest)>. This function fixes the buffer overrun problem of "
291 "B<strcat>(), but the caller must still handle the possibility of data loss "
292 "if I<size> is too small. The function returns the length of the string "
293 "B<strlcat>() tried to create; if the return value is greater than or equal "
294 "to I<size>, data loss occurred. If data loss matters, the caller I<must> "
295 "either check the arguments before the call, or test the function return "
296 "value. B<strlcat>() is not present in glibc and is not standardized by "
297 "POSIX, but is available on Linux via the I<libbsd> library."
298 msgstr ""
299
300 #. type: SH
301 #: opensuse-leap-15-6
302 #, no-wrap
303 msgid "EXAMPLE"
304 msgstr "EJEMPLO"
305
306 #. type: Plain text
307 #: opensuse-leap-15-6
308 msgid ""
309 "Because B<strcat>() and B<strncat>() must find the null byte that "
310 "terminates the string I<dest> using a search that starts at the beginning of "
311 "the string, the execution time of these functions scales according to the "
312 "length of the string I<dest>. This can be demonstrated by running the "
313 "program below. (If the goal is to concatenate many strings to one target, "
314 "then manually copying the bytes from each source string while maintaining a "
315 "pointer to the end of the target string will provide better performance.)"
316 msgstr ""
317
318 #. type: SS
319 #: opensuse-leap-15-6
320 #, no-wrap
321 msgid "Program source"
322 msgstr "Código fuente"
323
324 #. type: Plain text
325 #: opensuse-leap-15-6
326 #, no-wrap
327 msgid ""
328 "#include E<lt>string.hE<gt>\n"
329 "#include E<lt>time.hE<gt>\n"
330 "#include E<lt>stdio.hE<gt>\n"
331 msgstr ""
332 "#include E<lt>string.hE<gt>\n"
333 "#include E<lt>time.hE<gt>\n"
334 "#include E<lt>stdio.hE<gt>\n"
335
336 #. type: Plain text
337 #: opensuse-leap-15-6
338 #, no-wrap
339 msgid ""
340 "int\n"
341 "main(int argc, char *argv[])\n"
342 "{\n"
343 "#define LIM 4000000\n"
344 " int j;\n"
345 " char p[LIM];\n"
346 " time_t base;\n"
347 msgstr ""
348
349 #. type: Plain text
350 #: opensuse-leap-15-6
351 #, no-wrap
352 msgid ""
353 " base = time(NULL);\n"
354 " p[0] = \\(aq\\e0\\(aq;\n"
355 msgstr ""
356 " base = time(NULL);\n"
357 " p[0] = \\(aq\\e0\\(aq;\n"
358
359 #. type: Plain text
360 #: opensuse-leap-15-6
361 #, no-wrap
362 msgid ""
363 " for (j = 0; j E<lt> LIM; j++) {\n"
364 " if ((j % 10000) == 0)\n"
365 " printf(\"%d %ld\\en\", j, (long) (time(NULL) - base));\n"
366 " strcat(p, \"a\");\n"
367 " }\n"
368 "}\n"
369 msgstr ""
370 " for (j = 0; j E<lt> LIM; j++) {\n"
371 " if ((j % 10000) == 0)\n"
372 " printf(\"%d %ld\\en\", j, (long) (time(NULL) - base));\n"
373 " strcat(p, \"a\");\n"
374 " }\n"
375 "}\n"
376
377 #. type: SH
378 #: opensuse-leap-15-6
379 #, no-wrap
380 msgid "SEE ALSO"
381 msgstr "VÉASE TAMBIÉN"
382
383 #. type: Plain text
384 #: opensuse-leap-15-6
385 msgid ""
386 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
387 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
388 msgstr ""
389 "B<bcopy>(3), B<memccpy>(3), B<memcpy>(3), B<strcpy>(3), B<string>(3), "
390 "B<strncpy>(3), B<wcscat>(3), B<wcsncat>(3)"
391
392 #. type: SH
393 #: opensuse-leap-15-6
394 #, no-wrap
395 msgid "COLOPHON"
396 msgstr "COLOFÓN"
397
398 #. type: Plain text
399 #: opensuse-leap-15-6
400 msgid ""
401 "This page is part of release 4.16 of the Linux I<man-pages> project. A "
402 "description of the project, information about reporting bugs, and the latest "
403 "version of this page, can be found at \\%https://www.kernel.org/doc/man-"
404 "pages/."
405 msgstr ""
406 "Esta página es parte de la versión 4.16 del proyecto Linux I<man-pages>. "
407 "Puede encontrar una descripción del proyecto, información sobre cómo "
408 "informar errores y la última versión de esta página en \\%https://www.kernel."
409 "org/doc/man-pages/."