| 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-11 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 "strcpy" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 28 |
#, no-wrap |
| 29 |
msgid "2026-02-25" |
| 30 |
msgstr "25 Febrero 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-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
#, fuzzy |
| 49 |
#| msgid "strcpy, strncpy - copy a string" |
| 50 |
msgid "strcpy, strcat - copy or catenate a string" |
| 51 |
msgstr "strcpy, strncpy - copian una cadena de caracteres" |
| 52 |
|
| 53 |
#. type: SH |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
#, no-wrap |
| 57 |
msgid "LIBRARY" |
| 58 |
msgstr "BIBLIOTECA" |
| 59 |
|
| 60 |
#. type: Plain text |
| 61 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 62 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 64 |
msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "SYNOPSIS" |
| 71 |
msgstr "SINOPSIS" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "B<#include E<lt>string.hE<gt>>\n" |
| 78 |
msgstr "B<#include E<lt>string.hE<gt>>\n" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, fuzzy, no-wrap |
| 83 |
#| msgid "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n" |
| 84 |
msgid "" |
| 85 |
"B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n" |
| 86 |
"B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n" |
| 87 |
msgstr "B<char *strncpy(char *>I<dest>B<, const char *>I<orig>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-trixie debian-unstable fedora-44 fedora-rawhide |
| 98 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 99 |
#, fuzzy, no-wrap |
| 100 |
#| msgid "B<standards>(7)" |
| 101 |
msgid "B<strcpy>()" |
| 102 |
msgstr "B<standards>(7)" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
msgid "" |
| 107 |
"This function copies the string pointed to by I<src>, into a string at the " |
| 108 |
"buffer pointed to by I<dst>. The programmer is responsible for allocating a " |
| 109 |
"destination buffer large enough, that is, I<strlen(src) + 1>." |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
#, fuzzy |
| 115 |
#| msgid "Equivalent to B<-l>." |
| 116 |
msgid "It is equivalent to" |
| 117 |
msgstr "Equivale a B<-l>." |
| 118 |
|
| 119 |
#. type: Plain text |
| 120 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
#, no-wrap |
| 122 |
msgid "stpcpy(dst, src), dst\n" |
| 123 |
msgstr "" |
| 124 |
|
| 125 |
#. #-#-#-#-# archlinux: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 126 |
#. type: TP |
| 127 |
#. #-#-#-#-# debian-trixie: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 128 |
#. type: TQ |
| 129 |
#. #-#-#-#-# debian-unstable: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 130 |
#. type: TP |
| 131 |
#. #-#-#-#-# fedora-44: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 132 |
#. type: TQ |
| 133 |
#. #-#-#-#-# fedora-rawhide: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 134 |
#. type: TQ |
| 135 |
#. #-#-#-#-# mageia-cauldron: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 136 |
#. type: TQ |
| 137 |
#. #-#-#-#-# opensuse-leap-16-1: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 138 |
#. type: TP |
| 139 |
#. #-#-#-#-# opensuse-tumbleweed: strcpy.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 140 |
#. type: TP |
| 141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 142 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 143 |
#, fuzzy, no-wrap |
| 144 |
#| msgid "B<standards>(7)" |
| 145 |
msgid "B<strcat>()" |
| 146 |
msgstr "B<standards>(7)" |
| 147 |
|
| 148 |
#. type: Plain text |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
msgid "" |
| 152 |
"This function catenates the string pointed to by I<src>, after the string " |
| 153 |
"pointed to by I<dst> (overwriting its terminating null byte). The " |
| 154 |
"programmer is responsible for allocating a destination buffer large enough, " |
| 155 |
"that is, I<strlen(dst) + strlen(src) + 1>." |
| 156 |
msgstr "" |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 160 |
#, no-wrap |
| 161 |
msgid "stpcpy(strnul(dst), src), dst\n" |
| 162 |
msgstr "" |
| 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 "RETURN VALUE" |
| 169 |
msgstr "VALOR DEVUELTO" |
| 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 "These functions return I<dst>." |
| 175 |
msgstr "" |
| 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-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
#, fuzzy, no-wrap |
| 231 |
#| msgid "" |
| 232 |
#| "B<strcpy>(),\n" |
| 233 |
#| "B<strncpy>()" |
| 234 |
msgid "" |
| 235 |
"B<strcpy>(),\n" |
| 236 |
"B<strcat>()" |
| 237 |
msgstr "" |
| 238 |
"B<strcpy>(),\n" |
| 239 |
"B<strncpy>()" |
| 240 |
|
| 241 |
#. type: tbl table |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
#, no-wrap |
| 245 |
msgid "Thread safety" |
| 246 |
msgstr "Seguridad del hilo" |
| 247 |
|
| 248 |
#. type: tbl table |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
#, no-wrap |
| 252 |
msgid "MT-Safe" |
| 253 |
msgstr "Multi-hilo seguro" |
| 254 |
|
| 255 |
#. type: SH |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
#, no-wrap |
| 259 |
msgid "STANDARDS" |
| 260 |
msgstr "ESTÁNDARES" |
| 261 |
|
| 262 |
#. type: Plain text |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
msgid "C11, POSIX.1-2008." |
| 266 |
msgstr "C11, POSIX.1-2008." |
| 267 |
|
| 268 |
#. type: SH |
| 269 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, no-wrap |
| 271 |
msgid "HISTORY" |
| 272 |
msgstr "HISTORIAL" |
| 273 |
|
| 274 |
#. type: Plain text |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
msgid "POSIX.1-2001, C89, SVr4, 4.3BSD." |
| 278 |
msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD." |
| 279 |
|
| 280 |
#. type: SH |
| 281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 282 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 283 |
#, no-wrap |
| 284 |
msgid "CAVEATS" |
| 285 |
msgstr "" |
| 286 |
|
| 287 |
#. type: Plain text |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
msgid "The strings I<src> and I<dst> may not overlap." |
| 291 |
msgstr "" |
| 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 "" |
| 297 |
"If the destination buffer is not large enough, the behavior is undefined. " |
| 298 |
"See B<_FORTIFY_SOURCE> in B<feature_test_macros>(7)." |
| 299 |
msgstr "" |
| 300 |
|
| 301 |
#. type: Plain text |
| 302 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 303 |
#: opensuse-tumbleweed |
| 304 |
msgid "" |
| 305 |
"B<strcat>() can be very inefficient. Read about E<.UR https:\\://" |
| 306 |
"www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the " |
| 307 |
"painter E<.UE .>" |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: SH |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
#, no-wrap |
| 314 |
msgid "EXAMPLES" |
| 315 |
msgstr "EJEMPLOS" |
| 316 |
|
| 317 |
#. type: Plain text |
| 318 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
#, no-wrap |
| 320 |
msgid "" |
| 321 |
"#include E<lt>err.hE<gt>\n" |
| 322 |
"#include E<lt>stdio.hE<gt>\n" |
| 323 |
"#include E<lt>stdlib.hE<gt>\n" |
| 324 |
"#include E<lt>string.hE<gt>\n" |
| 325 |
"\\&\n" |
| 326 |
"int\n" |
| 327 |
"main(void)\n" |
| 328 |
"{\n" |
| 329 |
" char *buf1;\n" |
| 330 |
" size_t len, size;\n" |
| 331 |
"\\&\n" |
| 332 |
" size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n" |
| 333 |
" buf1 = malloc(sizeof(*buf1) * size);\n" |
| 334 |
" if (buf1 == NULL)\n" |
| 335 |
" err(EXIT_FAILURE, \"malloc()\");\n" |
| 336 |
"\\&\n" |
| 337 |
" strcpy(buf1, \"Hello \");\n" |
| 338 |
" strcat(buf1, \"world\");\n" |
| 339 |
" strcat(buf1, \"!\");\n" |
| 340 |
" len = strlen(buf1);\n" |
| 341 |
"\\&\n" |
| 342 |
" printf(\"[len = %zu]: \", len);\n" |
| 343 |
" puts(buf1); // \"Hello world!\"\n" |
| 344 |
" free(buf1);\n" |
| 345 |
"\\&\n" |
| 346 |
" exit(EXIT_SUCCESS);\n" |
| 347 |
"}\n" |
| 348 |
msgstr "" |
| 349 |
|
| 350 |
#. SRC END |
| 351 |
#. type: SH |
| 352 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 353 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 354 |
#, no-wrap |
| 355 |
msgid "SEE ALSO" |
| 356 |
msgstr "VÉASE TAMBIÉN" |
| 357 |
|
| 358 |
#. type: Plain text |
| 359 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 360 |
#, fuzzy |
| 361 |
#| msgid "" |
| 362 |
#| "B<ceil>(3), B<floor>(3), B<lrint>(3), B<nearbyint>(3), B<rint>(3), " |
| 363 |
#| "B<round>(3)" |
| 364 |
msgid "" |
| 365 |
"B<stpcpy>(3), B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)" |
| 366 |
msgstr "" |
| 367 |
"B<ceil>(3), B<floor>(3), B<lrint>(3), B<nearbyint>(3), B<rint>(3), " |
| 368 |
"B<round>(3)" |
| 369 |
|
| 370 |
#. type: TH |
| 371 |
#: debian-trixie |
| 372 |
#, no-wrap |
| 373 |
msgid "2024-06-15" |
| 374 |
msgstr "15 Junio 2024" |
| 375 |
|
| 376 |
#. type: TH |
| 377 |
#: debian-trixie |
| 378 |
#, no-wrap |
| 379 |
msgid "Linux man-pages 6.9.1" |
| 380 |
msgstr "Páginas de Manual de Linux 6.9.1" |
| 381 |
|
| 382 |
#. type: Plain text |
| 383 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 384 |
#, fuzzy |
| 385 |
#| msgid "strcpy, strncpy - copy a string" |
| 386 |
msgid "stpcpy, strcpy, strcat - copy or catenate a string" |
| 387 |
msgstr "strcpy, strncpy - copian una cadena de caracteres" |
| 388 |
|
| 389 |
#. type: Plain text |
| 390 |
#: debian-trixie |
| 391 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 392 |
msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)" |
| 393 |
|
| 394 |
#. type: Plain text |
| 395 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 396 |
#, fuzzy, no-wrap |
| 397 |
#| msgid "B<char *strncpy(char *>I<dest>B<, const char *>I<src>B<, size_t >I<n>B<);>\n" |
| 398 |
msgid "" |
| 399 |
"B<char *stpcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n" |
| 400 |
"B<char *strcpy(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n" |
| 401 |
"B<char *strcat(char *restrict >I<dst>B<, const char *restrict >I<src>B<);>\n" |
| 402 |
msgstr "B<char *strncpy(char *>I<dest>B<, const char *>I<orig>B<, size_t >I<n>B<);>\n" |
| 403 |
|
| 404 |
#. type: Plain text |
| 405 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 406 |
msgid "" |
| 407 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 408 |
msgstr "" |
| 409 |
"Requisitos de Macros de Prueba de Características para glibc (véase " |
| 410 |
"B<feature_test_macros>(7)):" |
| 411 |
|
| 412 |
#. type: Plain text |
| 413 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 414 |
msgid "B<stpcpy>():" |
| 415 |
msgstr "B<stpcpy>():" |
| 416 |
|
| 417 |
#. type: Plain text |
| 418 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 419 |
#, no-wrap |
| 420 |
msgid "" |
| 421 |
" Since glibc 2.10:\n" |
| 422 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 423 |
" Before glibc 2.10:\n" |
| 424 |
" _GNU_SOURCE\n" |
| 425 |
msgstr "" |
| 426 |
" Desde glibc 2.10:\n" |
| 427 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 428 |
" Antes de glibc 2.10:\n" |
| 429 |
" _GNU_SOURCE\n" |
| 430 |
|
| 431 |
#. type: TP |
| 432 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 433 |
#, no-wrap |
| 434 |
msgid "B<stpcpy>()" |
| 435 |
msgstr "B<stpcpy>()" |
| 436 |
|
| 437 |
#. type: Plain text |
| 438 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 439 |
msgid "" |
| 440 |
"These functions copy the string pointed to by I<src>, into a string at the " |
| 441 |
"buffer pointed to by I<dst>. The programmer is responsible for allocating a " |
| 442 |
"destination buffer large enough, that is, I<strlen(src) + 1>. For the " |
| 443 |
"difference between the two functions, see RETURN VALUE." |
| 444 |
msgstr "" |
| 445 |
|
| 446 |
#. type: Plain text |
| 447 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 448 |
msgid "An implementation of these functions might be:" |
| 449 |
msgstr "" |
| 450 |
|
| 451 |
#. type: Plain text |
| 452 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 453 |
#, no-wrap |
| 454 |
msgid "" |
| 455 |
"char *\n" |
| 456 |
"stpcpy(char *restrict dst, const char *restrict src)\n" |
| 457 |
"{\n" |
| 458 |
" char *p;\n" |
| 459 |
"\\&\n" |
| 460 |
" p = mempcpy(dst, src, strlen(src));\n" |
| 461 |
" *p = \\[aq]\\[rs]0\\[aq];\n" |
| 462 |
"\\&\n" |
| 463 |
" return p;\n" |
| 464 |
"}\n" |
| 465 |
"\\&\n" |
| 466 |
"char *\n" |
| 467 |
"strcpy(char *restrict dst, const char *restrict src)\n" |
| 468 |
"{\n" |
| 469 |
" stpcpy(dst, src);\n" |
| 470 |
" return dst;\n" |
| 471 |
"}\n" |
| 472 |
"\\&\n" |
| 473 |
"char *\n" |
| 474 |
"strcat(char *restrict dst, const char *restrict src)\n" |
| 475 |
"{\n" |
| 476 |
" stpcpy(dst + strlen(dst), src);\n" |
| 477 |
" return dst;\n" |
| 478 |
"}\n" |
| 479 |
msgstr "" |
| 480 |
|
| 481 |
#. type: Plain text |
| 482 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 483 |
msgid "" |
| 484 |
"This function returns a pointer to the terminating null byte of the copied " |
| 485 |
"string." |
| 486 |
msgstr "" |
| 487 |
|
| 488 |
#. type: tbl table |
| 489 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 490 |
#, fuzzy, no-wrap |
| 491 |
#| msgid "" |
| 492 |
#| "B<strcpy>(),\n" |
| 493 |
#| "B<strncpy>()" |
| 494 |
msgid "" |
| 495 |
"B<stpcpy>(),\n" |
| 496 |
"B<strcpy>(),\n" |
| 497 |
"B<strcat>()" |
| 498 |
msgstr "" |
| 499 |
"B<strcpy>(),\n" |
| 500 |
"B<strncpy>()" |
| 501 |
|
| 502 |
#. type: Plain text |
| 503 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 504 |
msgid "POSIX.1-2008." |
| 505 |
msgstr "POSIX.1-2008." |
| 506 |
|
| 507 |
#. type: Plain text |
| 508 |
#: debian-trixie fedora-44 fedora-rawhide |
| 509 |
msgid "" |
| 510 |
"B<strcat>() can be very inefficient. Read about E<.UR https://" |
| 511 |
"www.joelonsoftware.com/\\:2001/12/11/\\:back-to-basics/> Shlemiel the " |
| 512 |
"painter E<.UE .>" |
| 513 |
msgstr "" |
| 514 |
|
| 515 |
#. type: Plain text |
| 516 |
#: debian-trixie |
| 517 |
#, no-wrap |
| 518 |
msgid "" |
| 519 |
"#include E<lt>err.hE<gt>\n" |
| 520 |
"#include E<lt>stdio.hE<gt>\n" |
| 521 |
"#include E<lt>stdlib.hE<gt>\n" |
| 522 |
"#include E<lt>string.hE<gt>\n" |
| 523 |
"\\&\n" |
| 524 |
"int\n" |
| 525 |
"main(void)\n" |
| 526 |
"{\n" |
| 527 |
" char *p;\n" |
| 528 |
" char *buf1;\n" |
| 529 |
" char *buf2;\n" |
| 530 |
" size_t len, maxsize;\n" |
| 531 |
"\\&\n" |
| 532 |
" maxsize = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n" |
| 533 |
" buf1 = malloc(sizeof(*buf1) * maxsize);\n" |
| 534 |
" if (buf1 == NULL)\n" |
| 535 |
" err(EXIT_FAILURE, \"malloc()\");\n" |
| 536 |
" buf2 = malloc(sizeof(*buf2) * maxsize);\n" |
| 537 |
" if (buf2 == NULL)\n" |
| 538 |
" err(EXIT_FAILURE, \"malloc()\");\n" |
| 539 |
"\\&\n" |
| 540 |
" p = buf1;\n" |
| 541 |
" p = stpcpy(p, \"Hello \");\n" |
| 542 |
" p = stpcpy(p, \"world\");\n" |
| 543 |
" p = stpcpy(p, \"!\");\n" |
| 544 |
" len = p - buf1;\n" |
| 545 |
"\\&\n" |
| 546 |
" printf(\"[len = %zu]: \", len);\n" |
| 547 |
" puts(buf1); // \"Hello world!\"\n" |
| 548 |
" free(buf1);\n" |
| 549 |
"\\&\n" |
| 550 |
" strcpy(buf2, \"Hello \");\n" |
| 551 |
" strcat(buf2, \"world\");\n" |
| 552 |
" strcat(buf2, \"!\");\n" |
| 553 |
" len = strlen(buf2);\n" |
| 554 |
"\\&\n" |
| 555 |
" printf(\"[len = %zu]: \", len);\n" |
| 556 |
" puts(buf2); // \"Hello world!\"\n" |
| 557 |
" free(buf2);\n" |
| 558 |
"\\&\n" |
| 559 |
" exit(EXIT_SUCCESS);\n" |
| 560 |
"}\n" |
| 561 |
msgstr "" |
| 562 |
|
| 563 |
#. type: Plain text |
| 564 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 565 |
msgid "B<strdup>(3), B<string>(3), B<wcscpy>(3), B<string_copying>(7)" |
| 566 |
msgstr "" |
| 567 |
|
| 568 |
#. type: TH |
| 569 |
#: fedora-44 fedora-rawhide |
| 570 |
#, no-wrap |
| 571 |
msgid "2024-11-17" |
| 572 |
msgstr "17 Noviembre 2024" |
| 573 |
|
| 574 |
#. type: TH |
| 575 |
#: fedora-44 fedora-rawhide |
| 576 |
#, no-wrap |
| 577 |
msgid "Linux man-pages 6.13" |
| 578 |
msgstr "Páginas de Manual de Linux 6.13" |
| 579 |
|
| 580 |
#. type: Plain text |
| 581 |
#: fedora-44 fedora-rawhide mageia-cauldron |
| 582 |
#, no-wrap |
| 583 |
msgid "" |
| 584 |
"#include E<lt>err.hE<gt>\n" |
| 585 |
"#include E<lt>stdio.hE<gt>\n" |
| 586 |
"#include E<lt>stdlib.hE<gt>\n" |
| 587 |
"#include E<lt>string.hE<gt>\n" |
| 588 |
"\\&\n" |
| 589 |
"int\n" |
| 590 |
"main(void)\n" |
| 591 |
"{\n" |
| 592 |
" char *p;\n" |
| 593 |
" char *buf1;\n" |
| 594 |
" char *buf2;\n" |
| 595 |
" size_t len, size;\n" |
| 596 |
"\\&\n" |
| 597 |
" size = strlen(\"Hello \") + strlen(\"world\") + strlen(\"!\") + 1;\n" |
| 598 |
" buf1 = malloc(sizeof(*buf1) * size);\n" |
| 599 |
" if (buf1 == NULL)\n" |
| 600 |
" err(EXIT_FAILURE, \"malloc()\");\n" |
| 601 |
" buf2 = malloc(sizeof(*buf2) * size);\n" |
| 602 |
" if (buf2 == NULL)\n" |
| 603 |
" err(EXIT_FAILURE, \"malloc()\");\n" |
| 604 |
"\\&\n" |
| 605 |
" p = buf1;\n" |
| 606 |
" p = stpcpy(p, \"Hello \");\n" |
| 607 |
" p = stpcpy(p, \"world\");\n" |
| 608 |
" p = stpcpy(p, \"!\");\n" |
| 609 |
" len = p - buf1;\n" |
| 610 |
"\\&\n" |
| 611 |
" printf(\"[len = %zu]: \", len);\n" |
| 612 |
" puts(buf1); // \"Hello world!\"\n" |
| 613 |
" free(buf1);\n" |
| 614 |
"\\&\n" |
| 615 |
" strcpy(buf2, \"Hello \");\n" |
| 616 |
" strcat(buf2, \"world\");\n" |
| 617 |
" strcat(buf2, \"!\");\n" |
| 618 |
" len = strlen(buf2);\n" |
| 619 |
"\\&\n" |
| 620 |
" printf(\"[len = %zu]: \", len);\n" |
| 621 |
" puts(buf2); // \"Hello world!\"\n" |
| 622 |
" free(buf2);\n" |
| 623 |
"\\&\n" |
| 624 |
" exit(EXIT_SUCCESS);\n" |
| 625 |
"}\n" |
| 626 |
msgstr "" |
| 627 |
|
| 628 |
#. type: TH |
| 629 |
#: mageia-cauldron |
| 630 |
#, no-wrap |
| 631 |
msgid "2025-12-25" |
| 632 |
msgstr "25 Diciembre 2025" |
| 633 |
|
| 634 |
#. type: TH |
| 635 |
#: mageia-cauldron |
| 636 |
#, no-wrap |
| 637 |
msgid "Linux man-pages 6.17" |
| 638 |
msgstr "Páginas de Manual de Linux 6.17" |
| 639 |
|
| 640 |
#. type: TH |
| 641 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 642 |
#, no-wrap |
| 643 |
msgid "Linux man-pages (unreleased)" |
| 644 |
msgstr "Páginas de Manual de Linux (no publicadas)" |