Debian Codegraph @

po/es/man3/stpncpy.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 # Juan Piernas <[email protected]>, 2000.
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: 2000-04-23 19:55+0200\n"
10 "Last-Translator: Juan Piernas <[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 #, fuzzy, no-wrap
23 #| msgid "B<stpncpy>()"
24 msgid "stpncpy"
25 msgstr "B<stpncpy>()"
26
27 #. type: TH
28 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-25"
31 msgstr "25 Febrero 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, fuzzy, no-wrap
36 #| msgid "Linux man-pages 6.17"
37 msgid "Linux man-pages 6.18"
38 msgstr "Páginas de Manual de Linux 6.17"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NOMBRE"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid ""
51 "stpncpy, strncpy - fill a fixed-size buffer with non-null bytes from a "
52 "string, padding with null bytes as needed"
53 msgstr ""
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSIS"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>string.hE<gt>>\n"
80 msgstr "B<#include E<lt>string.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<char *strncpy(>size_t dsize;\n"
88 "B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict >I<src>B<,>\n"
89 "B< size_t >I<dsize>B<);>\n"
90 "B<char *stpncpy(>size_t dsize;\n"
91 "B< char >I<dst>B<[restrict >I<dsize>B<], const char *restrict >I<src>B<,>\n"
92 "B< size_t >I<dsize>B<);>\n"
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
100 msgstr ""
101 "Requisitos de Macros de Prueba de Características para glibc (véase "
102 "B<feature_test_macros>(7)):"
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 msgid "B<stpncpy>():"
108 msgstr "B<stpncpy>():"
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, no-wrap
114 msgid ""
115 " Since glibc 2.10:\n"
116 " _POSIX_C_SOURCE E<gt>= 200809L\n"
117 " Before glibc 2.10:\n"
118 " _GNU_SOURCE\n"
119 msgstr ""
120 " Desde glibc 2.10:\n"
121 " _POSIX_C_SOURCE E<gt>= 200809L\n"
122 " Antes de glibc 2.10:\n"
123 " _GNU_SOURCE\n"
124
125 #. type: SH
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid "DESCRIPTION"
130 msgstr "DESCRIPCIÓN"
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 msgid ""
136 "These functions copy non-null bytes from the string pointed to by I<src> "
137 "into the array pointed to by I<dst>. If the source has too few non-null "
138 "bytes to fill the destination, the functions pad the destination with "
139 "trailing null bytes. If the destination buffer, limited by its size, isn't "
140 "large enough to hold the copy, the resulting character sequence is "
141 "truncated. For the difference between the two functions, see RETURN VALUE."
142 msgstr ""
143
144 #. type: TP
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 #, fuzzy, no-wrap
148 #| msgid "B<stpncpy>()"
149 msgid "B<strncpy>()"
150 msgstr "B<stpncpy>()"
151
152 #. type: Plain text
153 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
154 #, fuzzy
155 #| msgid "Equivalent to B<-l>."
156 msgid "It is equivalent to"
157 msgstr "Equivale a B<-l>."
158
159 #. type: Plain text
160 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "stpncpy(dst, src, dsize), dst\n"
163 msgstr ""
164
165 #. type: TP
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "B<stpncpy>()"
170 msgstr "B<stpncpy>()"
171
172 #. type: Plain text
173 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
174 #, no-wrap
175 msgid ""
176 "memset(mempcpy(dst, src, strnlen(src, dsize)), \\[aq]\\[rs]0\\[aq],\n"
177 " dsize - strnlen(src, dsize))\n"
178 msgstr ""
179
180 #. type: SH
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 #, no-wrap
184 msgid "RETURN VALUE"
185 msgstr "VALOR DEVUELTO"
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, fuzzy
191 #| msgid "B<return> [I<n>]"
192 msgid "returns I<dst>."
193 msgstr "B<return> [I<n>]"
194
195 #. type: Plain text
196 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
197 #: opensuse-tumbleweed
198 msgid ""
199 "returns a pointer to one past the last non-null character written, that is, "
200 "I<dest\\ +\\ strnlen(src,\\ n)>."
201 msgstr ""
202
203 #. type: SH
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, no-wrap
207 msgid "ATTRIBUTES"
208 msgstr "ATRIBUTOS"
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "For an explanation of the terms used in this section, see B<attributes>(7)."
215 msgstr ""
216 "Para obtener una explicación de los términos usados en esta sección, véase "
217 "B<attributes>(7)."
218
219 #. type: tbl table
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid "Interface"
224 msgstr "Interfaz"
225
226 #. type: tbl table
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "Attribute"
231 msgstr "Atributo"
232
233 #. type: tbl table
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "Value"
238 msgstr "Valor"
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 ".na\n"
245 msgstr ".na\n"
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 ".nh\n"
252 msgstr ".nh\n"
253
254 #. type: tbl table
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, fuzzy, no-wrap
258 #| msgid "B<strncpy>(3), B<wcpncpy>(3)"
259 msgid ""
260 "B<stpncpy>(),\n"
261 "B<strncpy>()"
262 msgstr "B<strncpy>(3), B<wcpncpy>(3)"
263
264 #. type: tbl table
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 #, no-wrap
268 msgid "Thread safety"
269 msgstr "Seguridad del hilo"
270
271 #. type: tbl table
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "MT-Safe"
276 msgstr "Multi-hilo seguro"
277
278 #. type: SH
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid "STANDARDS"
283 msgstr "ESTÁNDARES"
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 msgid "C11, POSIX.1-2008."
289 msgstr "C11, POSIX.1-2008."
290
291 #. type: Plain text
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 msgid "POSIX.1-2008."
295 msgstr "POSIX.1-2008."
296
297 #. type: SH
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "HISTORY"
302 msgstr "HISTORIAL"
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, fuzzy
308 #| msgid "POSIX.1-2001, SVr4, 4.3BSD."
309 msgid "C89, POSIX.1-2001, SVr4, 4.3BSD."
310 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, fuzzy
316 #| msgid "glibc 2.1. C99, POSIX.1-2001."
317 msgid "glibc 1.07. POSIX.1-2008."
318 msgstr "glibc 2.1. C99, POSIX.1-2001."
319
320 #. type: SH
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "CAVEATS"
325 msgstr ""
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid ""
331 "The name of these functions is confusing. These functions produce a null-"
332 "padded character sequence, not a string (see B<string_copying>(7)). For "
333 "example:"
334 msgstr ""
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid ""
341 "strncpy(buf, \"1\", 5); // { \\[aq]1\\[aq], 0, 0, 0, 0 }\n"
342 "strncpy(buf, \"1234\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], 0 }\n"
343 "strncpy(buf, \"12345\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n"
344 "strncpy(buf, \"123456\", 5); // { \\[aq]1\\[aq], \\[aq]2\\[aq], \\[aq]3\\[aq], \\[aq]4\\[aq], \\[aq]5\\[aq] }\n"
345 msgstr ""
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "It's impossible to distinguish truncation by the result of the call, from a "
352 "character sequence that just fits the destination buffer; truncation should "
353 "be detected by comparing the length of the input string with the size of the "
354 "destination buffer."
355 msgstr ""
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid ""
361 "If you're going to use this function in chained calls, it would be useful to "
362 "develop a similar function that accepts a pointer to the end (one after the "
363 "last element) of the destination buffer instead of its size."
364 msgstr ""
365
366 #. type: SH
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "EXAMPLES"
371 msgstr "EJEMPLOS"
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid ""
378 "#include E<lt>err.hE<gt>\n"
379 "#include E<lt>stdio.hE<gt>\n"
380 "#include E<lt>stdlib.hE<gt>\n"
381 "#include E<lt>string.hE<gt>\n"
382 "\\&\n"
383 "int\n"
384 "main(void)\n"
385 "{\n"
386 " char *p;\n"
387 " char buf1[20];\n"
388 " char buf2[20];\n"
389 " size_t len;\n"
390 "\\&\n"
391 " if (sizeof(buf2) E<lt> strlen(\"Hello world!\"))\n"
392 " errx(\"strncpy: truncating character sequence\");\n"
393 " strncpy(buf2, \"Hello world!\", sizeof(buf2));\n"
394 " len = strnlen(buf2, sizeof(buf2));\n"
395 "\\&\n"
396 " printf(\"[len = %zu]: \", len);\n"
397 " fwrite(buf2, 1, len, stdout);\n"
398 " putchar(\\[aq]\\[rs]n\\[aq]);\n"
399 "\\&\n"
400 " if (sizeof(buf1) E<lt> strlen(\"Hello world!\"))\n"
401 " errx(\"stpncpy: truncating character sequence\");\n"
402 " p = stpncpy(buf1, \"Hello world!\", sizeof(buf1));\n"
403 " len = p - buf1;\n"
404 "\\&\n"
405 " printf(\"[len = %zu]: \", len);\n"
406 " fwrite(buf1, 1, len, stdout);\n"
407 " putchar(\\[aq]\\[rs]n\\[aq]);\n"
408 "\\&\n"
409 " exit(EXIT_SUCCESS);\n"
410 "}\n"
411 msgstr ""
412
413 #. SRC END
414 #. type: SH
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "SEE ALSO"
419 msgstr "VÉASE TAMBIÉN"
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, fuzzy
425 #| msgid "B<strncpy>(3), B<wcpncpy>(3)"
426 msgid "B<wcpncpy>(3), B<string_copying>(7)"
427 msgstr "B<strncpy>(3), B<wcpncpy>(3)"
428
429 #. type: TH
430 #: debian-trixie
431 #, no-wrap
432 msgid "2024-06-15"
433 msgstr "15 Junio 2024"
434
435 #. type: TH
436 #: debian-trixie
437 #, no-wrap
438 msgid "Linux man-pages 6.9.1"
439 msgstr "Páginas de Manual de Linux 6.9.1"
440
441 #. type: Plain text
442 #: debian-trixie
443 msgid "Standard C library (I<libc>, I<-lc>)"
444 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
445
446 #. type: Plain text
447 #: debian-trixie fedora-44 fedora-rawhide
448 #, no-wrap
449 msgid ""
450 "B<char *strncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n"
451 "B< size_t >I<dsize>B<);>\n"
452 "B<char *stpncpy(char >I<dst>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n"
453 "B< size_t >I<dsize>B<);>\n"
454 msgstr ""
455
456 #. type: Plain text
457 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
458 msgid "An implementation of these functions might be:"
459 msgstr ""
460
461 #. type: Plain text
462 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
463 #, fuzzy, no-wrap
464 #| msgid "B<char *stpncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
465 msgid ""
466 "char *\n"
467 "strncpy(char *restrict dst, const char *restrict src, size_t dsize)\n"
468 "{\n"
469 " stpncpy(dst, src, dsize);\n"
470 " return dst;\n"
471 "}\n"
472 "\\&\n"
473 "char *\n"
474 "stpncpy(char *restrict dst, const char *restrict src, size_t dsize)\n"
475 "{\n"
476 " size_t dlen;\n"
477 "\\&\n"
478 " dlen = strnlen(src, dsize);\n"
479 " return memset(mempcpy(dst, src, dlen), 0, dsize - dlen);\n"
480 "}\n"
481 msgstr "B<char *stpncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n"
482
483 #. type: Plain text
484 #: debian-trixie fedora-44 fedora-rawhide
485 msgid ""
486 "returns a pointer to one after the last character in the destination "
487 "character sequence."
488 msgstr ""
489
490 #. type: TH
491 #: fedora-44 fedora-rawhide
492 #, no-wrap
493 msgid "2024-07-23"
494 msgstr "23 ​​Julio 2024"
495
496 #. type: TH
497 #: fedora-44 fedora-rawhide
498 #, no-wrap
499 msgid "Linux man-pages 6.13"
500 msgstr "Páginas de Manual de Linux 6.13"
501
502 #. type: TH
503 #: mageia-cauldron
504 #, no-wrap
505 msgid "2026-01-06"
506 msgstr "6 Enero 2026"
507
508 #. type: TH
509 #: mageia-cauldron
510 #, no-wrap
511 msgid "Linux man-pages 6.17"
512 msgstr "Páginas de Manual de Linux 6.17"
513
514 #. type: TH
515 #: opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "Linux man-pages (unreleased)"
518 msgstr "Páginas de Manual de Linux (no publicadas)"