| 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 |
# Carlos Gomez Romero <[email protected]>, 1998. |
| 5 |
# Miguel Pérez Ibars <[email protected]>, 2005. |
| 6 |
# Marcos Fouces <[email protected]>, 2023-2025. |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: manpages-l10n\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:45+0200\n" |
| 11 |
"PO-Revision-Date: 2025-11-08 19:47+0100\n" |
| 12 |
"Last-Translator: Marcos Fouces <[email protected]>\n" |
| 13 |
"Language-Team: Spanish <[email protected]>\n" |
| 14 |
"Language: es\n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
"Plural-Forms: nplurals=2; plural=(n != 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 "strtol" |
| 25 |
msgstr "strtoll" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 29 |
#: opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "2026-02-08" |
| 32 |
msgstr "8 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 "strtol, strtoll, strtoq - convert a string to a long integer" |
| 52 |
msgstr "" |
| 53 |
"strtol, strtoll, strtoq - convierten una cadena en un entero de tipo long" |
| 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>stdlib.hE<gt>>\n" |
| 80 |
msgstr "B<#include E<lt>stdlib.hE<gt>>\n" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "" |
| 87 |
"B<long strtol(const char *restrict >I<nptr>B<,>\n" |
| 88 |
"B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n" |
| 89 |
"B<long long strtoll(const char *restrict >I<nptr>B<,>\n" |
| 90 |
"B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n" |
| 91 |
msgstr "" |
| 92 |
"B<long strtol(const char *restrict >I<nptr>B<,>\n" |
| 93 |
"B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n" |
| 94 |
"B<long long strtoll(const char *restrict >I<nptr>B<,>\n" |
| 95 |
"B< char **_Nullable restrict >I<endptr>B<, int >I<base>B<);>\n" |
| 96 |
|
| 97 |
#. type: Plain text |
| 98 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 99 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 100 |
msgid "" |
| 101 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 102 |
msgstr "" |
| 103 |
"Requisitos de Macros de Prueba de Características para glibc (véase " |
| 104 |
"B<feature_test_macros>(7)):" |
| 105 |
|
| 106 |
#. type: Plain text |
| 107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 109 |
msgid "B<strtoll>():" |
| 110 |
msgstr "B<strtoll>():" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
#, no-wrap |
| 116 |
msgid "" |
| 117 |
" _ISOC99_SOURCE\n" |
| 118 |
" || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n" |
| 119 |
msgstr "" |
| 120 |
" _ISOC99_SOURCE\n" |
| 121 |
" || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n" |
| 122 |
|
| 123 |
#. type: SH |
| 124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 125 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 126 |
#, no-wrap |
| 127 |
msgid "DESCRIPTION" |
| 128 |
msgstr "DESCRIPCIÓN" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 132 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
msgid "" |
| 134 |
"The B<strtol>() function converts the initial part of the string in I<nptr> " |
| 135 |
"to a long integer value according to the given I<base>, which must be " |
| 136 |
"between 2 and 36 inclusive, or be the special value 0." |
| 137 |
msgstr "" |
| 138 |
"La función B<strtol>() convierte la parte inicial de la cadena de entrada " |
| 139 |
"I<nptr> en un valor entero de tipo long de acuerdo a la I<base> dada, que " |
| 140 |
"debe estar entre 2 y 36 ambos incluidos o ser el valor especial 0." |
| 141 |
|
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 144 |
#: opensuse-tumbleweed |
| 145 |
msgid "" |
| 146 |
"The string may begin with an arbitrary amount of white space (as determined " |
| 147 |
"by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] or \\[aq]-\\" |
| 148 |
"[aq] sign. If I<base> is zero or 16, the string may then include a \"0x\" " |
| 149 |
"or \"0X\" prefix, and the number will be read in base 16; if I<base> is zero " |
| 150 |
"or 2, the string may then include a \"0b\" or \"0B\" prefix, and the number " |
| 151 |
"will be read in base 2; otherwise, a zero I<base> is taken as 10 (decimal) " |
| 152 |
"unless the next character is \\[aq]0\\[aq], in which case it is taken as 8 " |
| 153 |
"(octal)." |
| 154 |
msgstr "" |
| 155 |
"La cadena puede comenzar con una cantidad arbitraria de espacios en blanco " |
| 156 |
"(según lo determinado por B<isspace>(3)) seguido de un único signo opcional " |
| 157 |
"\\[aq]+\\[aq] o \\[aq]-\\[aq]. Si I<base> es cero o 16, la cadena puede " |
| 158 |
"incluir un prefijo «0x» o «0X», y el número se leerá en base 16; si I<base> " |
| 159 |
"es cero o 2, la cadena puede incluir un prefijo «0b» o «0B», y el número se " |
| 160 |
"leerá en base 2. De lo contrario, un cero I<base> se toma como 10 (decimal), " |
| 161 |
"a menos que el siguiente carácter sea \\[aq]0\\[aq], en cuyo caso se toma " |
| 162 |
"como 8 (octal)." |
| 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 remainder of the string is converted to a I<long> value in the obvious " |
| 169 |
"manner, stopping at the first character which is not a valid digit in the " |
| 170 |
"given base. (In bases above 10, the letter \\[aq]A\\[aq] in either " |
| 171 |
"uppercase or lowercase represents 10, \\[aq]B\\[aq] represents 11, and so " |
| 172 |
"forth, with \\[aq]Z\\[aq] representing 35.)" |
| 173 |
msgstr "" |
| 174 |
"El resto de la cadena se convierte a un valor I<long> de forma obvia, " |
| 175 |
"deteniéndose en el primer carácter que no sea un dígito válido en la base " |
| 176 |
"dada. (En bases superiores a 10, la letra \\[aq]A\\[aq], ya sea en mayúscula " |
| 177 |
"o minúscula, representa 10, \\[aq]B\\[aq] representa 11, y así " |
| 178 |
"sucesivamente, con \\[aq]Z\\[aq] representando 35)." |
| 179 |
|
| 180 |
#. type: Plain text |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
msgid "" |
| 184 |
"If I<endptr> is not NULL, and the I<base> is supported, B<strtol>() stores " |
| 185 |
"the address of the first invalid character in I<*endptr>. If there were no " |
| 186 |
"digits at all, B<strtol>() stores the original value of I<nptr> in " |
| 187 |
"I<*endptr> (and returns 0). In particular, if I<*nptr> is not \\[aq]\\" |
| 188 |
"[rs]0\\[aq] but I<**endptr> is \\[aq]\\[rs]0\\[aq] on return, the entire " |
| 189 |
"string is valid." |
| 190 |
msgstr "" |
| 191 |
"Si I<endptr> no es NULL y se admite I<base>, B<strtol>() almacena la " |
| 192 |
"dirección del primer carácter no válido en I<*endptr>. Si no hay dígitos, " |
| 193 |
"B<strtol>() almacena el valor original de I<nptr> en I<*endptr> (y devuelve " |
| 194 |
"0). En particular, si I<*nptr> no es \\[aq]\\[rs]0\\[aq] pero I<**endptr> sí " |
| 195 |
"es \\[aq]\\[rs]0\\[aq] al devolver, la cadena completa es válida." |
| 196 |
|
| 197 |
#. type: Plain text |
| 198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 199 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 200 |
msgid "" |
| 201 |
"The B<strtoll>() function works just like the B<strtol>() function but " |
| 202 |
"returns a I<long long> integer value." |
| 203 |
msgstr "" |
| 204 |
"La función B<strtoll>() hace el mismo trabajo que la función B<strtol>() " |
| 205 |
"pero devuelve un valor entero de tipo I<long long>." |
| 206 |
|
| 207 |
#. type: SH |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
#, no-wrap |
| 211 |
msgid "RETURN VALUE" |
| 212 |
msgstr "VALOR DEVUELTO" |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
msgid "" |
| 218 |
"The B<strtol>() function returns the result of the conversion, unless the " |
| 219 |
"value would underflow or overflow. If an underflow occurs, B<strtol>() " |
| 220 |
"returns B<LONG_MIN>. If an overflow occurs, B<strtol>() returns " |
| 221 |
"B<LONG_MAX>. In both cases, I<errno> is set to B<ERANGE>. Precisely the " |
| 222 |
"same holds for B<strtoll>() (with B<LLONG_MIN> and B<LLONG_MAX> instead of " |
| 223 |
"B<LONG_MIN> and B<LONG_MAX>)." |
| 224 |
msgstr "" |
| 225 |
"La función B<strtol>() devuelve el resultado de la conversión, a menos que " |
| 226 |
"el valor se desbordara por arriba o por abajo. Si ocurriera un " |
| 227 |
"desbordamiento inferior, B<strtol>() devuelve B<LONG_MIN>. Si ocurriera un " |
| 228 |
"desbordamiento superior, B<strtol>() devuelve B<LONG_MAX>. En ambos casos, " |
| 229 |
"I<errno> se establece a B<ERANGE>. Precisamente lo mismo se aplica a " |
| 230 |
"B<strtoll>() (con B<LLONG_MIN> y B<LLONG_MAX> en lugar de B<LONG_MIN> y " |
| 231 |
"B<LONG_MAX>)." |
| 232 |
|
| 233 |
#. type: SH |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
#, no-wrap |
| 237 |
msgid "ERRORS" |
| 238 |
msgstr "ERRORES" |
| 239 |
|
| 240 |
#. type: Plain text |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
msgid "This function does not modify I<errno> on success." |
| 244 |
msgstr "Esta función no modifica I<errno> en caso de éxito." |
| 245 |
|
| 246 |
#. type: TP |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
#, no-wrap |
| 250 |
msgid "B<EINVAL>" |
| 251 |
msgstr "B<EINVAL>" |
| 252 |
|
| 253 |
#. type: Plain text |
| 254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 255 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 256 |
msgid "(not in C99) The given I<base> contains an unsupported value." |
| 257 |
msgstr "(no está en C99) La I<base> dada contiene un valor no soportado." |
| 258 |
|
| 259 |
#. type: TP |
| 260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 262 |
#, no-wrap |
| 263 |
msgid "B<ERANGE>" |
| 264 |
msgstr "B<ERANGE>" |
| 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 "The resulting value was out of range." |
| 270 |
msgstr "El valor resultante está fuera de rango." |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
msgid "" |
| 276 |
"The implementation may also set I<errno> to B<EINVAL> in case no conversion " |
| 277 |
"was performed (no digits seen, and 0 returned)." |
| 278 |
msgstr "" |
| 279 |
"La implementación puede poner también I<errno> a B<EINVAL> en caso de que no " |
| 280 |
"se realice ninguna conversión (no se encuentren dígitos, y se devuelva 0)." |
| 281 |
|
| 282 |
#. type: SH |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
#, no-wrap |
| 286 |
msgid "ATTRIBUTES" |
| 287 |
msgstr "ATRIBUTOS" |
| 288 |
|
| 289 |
#. type: Plain text |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
msgid "" |
| 293 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 294 |
msgstr "" |
| 295 |
"Para obtener una explicación de los términos usados en esta sección, véase " |
| 296 |
"B<attributes>(7)." |
| 297 |
|
| 298 |
#. type: tbl table |
| 299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 301 |
#, no-wrap |
| 302 |
msgid "Interface" |
| 303 |
msgstr "Interfaz" |
| 304 |
|
| 305 |
#. type: tbl table |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
#, no-wrap |
| 309 |
msgid "Attribute" |
| 310 |
msgstr "Atributo" |
| 311 |
|
| 312 |
#. type: tbl table |
| 313 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 314 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 315 |
#, no-wrap |
| 316 |
msgid "Value" |
| 317 |
msgstr "Valor" |
| 318 |
|
| 319 |
#. type: tbl table |
| 320 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 321 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 322 |
#, no-wrap |
| 323 |
msgid ".na\n" |
| 324 |
msgstr ".na\n" |
| 325 |
|
| 326 |
#. type: tbl table |
| 327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
#, no-wrap |
| 330 |
msgid ".nh\n" |
| 331 |
msgstr ".nh\n" |
| 332 |
|
| 333 |
#. type: tbl table |
| 334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 335 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 336 |
#, no-wrap |
| 337 |
msgid "" |
| 338 |
"B<strtol>(),\n" |
| 339 |
"B<strtoll>(),\n" |
| 340 |
"B<strtoq>()" |
| 341 |
msgstr "" |
| 342 |
"B<strtol>(),\n" |
| 343 |
"B<strtoll>(),\n" |
| 344 |
"B<strtoq>()" |
| 345 |
|
| 346 |
#. type: tbl table |
| 347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 348 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
#, no-wrap |
| 350 |
msgid "Thread safety" |
| 351 |
msgstr "Seguridad del hilo" |
| 352 |
|
| 353 |
#. type: tbl table |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "MT-Safe locale" |
| 358 |
msgstr "Configuración regional de multi-hilo seguro" |
| 359 |
|
| 360 |
#. type: SH |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
#, no-wrap |
| 364 |
msgid "VERSIONS" |
| 365 |
msgstr "VERSIONES" |
| 366 |
|
| 367 |
#. type: Plain text |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
msgid "" |
| 371 |
"According to POSIX.1, in locales other than \"C\" and \"POSIX\", these " |
| 372 |
"functions may accept other, implementation-defined numeric strings." |
| 373 |
msgstr "" |
| 374 |
"Según POSIX.1, en configuraciones regionales distintas de «C» y «POSIX», " |
| 375 |
"estas funciones pueden aceptar otras cadenas numéricas definidas por la " |
| 376 |
"implementación." |
| 377 |
|
| 378 |
#. type: Plain text |
| 379 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 380 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 381 |
msgid "BSD also has" |
| 382 |
msgstr "BSD tiene también la función" |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
#, no-wrap |
| 388 |
msgid "B<quad_t strtoq(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n" |
| 389 |
msgstr "B<quad_t strtoq(const char *>I<nptr>B<, char **>I<endptr>B<, int >I<base>B<);>\n" |
| 390 |
|
| 391 |
#. type: Plain text |
| 392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
msgid "" |
| 395 |
"with completely analogous definition. Depending on the wordsize of the " |
| 396 |
"current architecture, this may be equivalent to B<strtoll>() or to " |
| 397 |
"B<strtol>()." |
| 398 |
msgstr "" |
| 399 |
"con una definición completamente análoga. Dependiendo del tamaño de palabra " |
| 400 |
"de la arquitectura actual, ésta puede ser equivalente a B<strtoll>() o a " |
| 401 |
"B<strtol>()." |
| 402 |
|
| 403 |
#. type: SH |
| 404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
#, no-wrap |
| 407 |
msgid "STANDARDS" |
| 408 |
msgstr "ESTÁNDARES" |
| 409 |
|
| 410 |
#. type: Plain text |
| 411 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 412 |
#: opensuse-tumbleweed |
| 413 |
msgid "C23, POSIX.1-2024." |
| 414 |
msgstr "C23, POSIX.1-2024." |
| 415 |
|
| 416 |
#. type: SH |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
#, no-wrap |
| 420 |
msgid "HISTORY" |
| 421 |
msgstr "HISTORIAL" |
| 422 |
|
| 423 |
#. type: TP |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
#, no-wrap |
| 427 |
msgid "B<strtol>()" |
| 428 |
msgstr "B<strtol>()" |
| 429 |
|
| 430 |
#. type: Plain text |
| 431 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 432 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 433 |
msgid "POSIX.1-2001, C89, SVr4, 4.3BSD." |
| 434 |
msgstr "POSIX.1-2001, C89, SVr4, 4.3BSD." |
| 435 |
|
| 436 |
#. type: TP |
| 437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 439 |
#, no-wrap |
| 440 |
msgid "B<strtoll>()" |
| 441 |
msgstr "B<strtoll>()" |
| 442 |
|
| 443 |
#. type: Plain text |
| 444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 445 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 446 |
msgid "POSIX.1-2001, C99." |
| 447 |
msgstr "POSIX.1-2001, C99." |
| 448 |
|
| 449 |
#. type: TP |
| 450 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 451 |
#: opensuse-tumbleweed |
| 452 |
#, no-wrap |
| 453 |
msgid "\"0b\", \"0B\"" |
| 454 |
msgstr "\"0b\", \"0B\"" |
| 455 |
|
| 456 |
#. type: Plain text |
| 457 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 458 |
#: opensuse-tumbleweed |
| 459 |
msgid "C23. glibc 2.38. (Not in POSIX.)" |
| 460 |
msgstr "C23. glibc 2.38. (No en POSIX)." |
| 461 |
|
| 462 |
#. type: SH |
| 463 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 464 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 465 |
#, no-wrap |
| 466 |
msgid "CAVEATS" |
| 467 |
msgstr "ADVERTENCIAS" |
| 468 |
|
| 469 |
#. type: SS |
| 470 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 471 |
#: opensuse-tumbleweed |
| 472 |
#, no-wrap |
| 473 |
msgid "Range checks" |
| 474 |
msgstr "Comprobaciones de intervalo" |
| 475 |
|
| 476 |
#. type: Plain text |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
msgid "" |
| 480 |
"Since B<strtol>() can legitimately return 0, B<LONG_MAX>, or B<LONG_MIN> " |
| 481 |
"(B<LLONG_MAX> or B<LLONG_MIN> for B<strtoll>()) on both success and " |
| 482 |
"failure, the calling program should set I<errno> to 0 before the call, and " |
| 483 |
"then determine if an error occurred by checking whether I<errno == ERANGE> " |
| 484 |
"after the call." |
| 485 |
msgstr "" |
| 486 |
"Dado que B<strtol>() puede devolver legítimamente 0, B<LONG_MAX> o " |
| 487 |
"B<LONG_MIN> (B<LLONG_MAX> o B<LLONG_MIN> para B<strtoll>()) tanto en caso de " |
| 488 |
"éxito como de fracaso, el programa que realiza la llamada debe establecer " |
| 489 |
"I<errno> en 0 antes de la llamada y, a continuación, determinar si se ha " |
| 490 |
"producido un error comprobando si I<errno == ERANGE> después de la llamada." |
| 491 |
|
| 492 |
#. type: Plain text |
| 493 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 494 |
#: opensuse-tumbleweed |
| 495 |
#, fuzzy, no-wrap |
| 496 |
#| msgid "" |
| 497 |
#| "errno = 0;\n" |
| 498 |
#| "n = strtol(s, &end, base);\n" |
| 499 |
#| "if (end == s)\n" |
| 500 |
#| "\tgoto no_number;\n" |
| 501 |
#| "if ((errno == ERANGE && n == LONG_MIN) || n E<lt> min)\n" |
| 502 |
#| "\tgoto too_low;\n" |
| 503 |
#| "if ((errno == ERANGE && n == LONG_MAX) || n E<gt> max)\n" |
| 504 |
#| "\tgoto too_high;\n" |
| 505 |
msgid "" |
| 506 |
"errno = 0;\n" |
| 507 |
"n = strtol(s, &end, base);\n" |
| 508 |
"if (end == s)\n" |
| 509 |
"\tgoto no_number;\n" |
| 510 |
"if ((errno == ERANGE && n == _Minof(long)) || n E<lt> min)\n" |
| 511 |
"\tgoto too_low;\n" |
| 512 |
"if ((errno == ERANGE && n == _Maxof(long)) || n E<gt> max)\n" |
| 513 |
"\tgoto too_high;\n" |
| 514 |
msgstr "" |
| 515 |
"errno = 0;\n" |
| 516 |
"n = strtol(s, &end, base);\n" |
| 517 |
"if (end == s)\n" |
| 518 |
"\tgoto no_number;\n" |
| 519 |
"if ((errno == ERANGE && n == LONG_MIN) || n E<lt> min)\n" |
| 520 |
"\tgoto too_low;\n" |
| 521 |
"if ((errno == ERANGE && n == LONG_MAX) || n E<gt> max)\n" |
| 522 |
"\tgoto too_high;\n" |
| 523 |
|
| 524 |
#. type: SS |
| 525 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 526 |
#: opensuse-tumbleweed |
| 527 |
#, no-wrap |
| 528 |
msgid "base" |
| 529 |
msgstr "base" |
| 530 |
|
| 531 |
#. type: Plain text |
| 532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 534 |
msgid "" |
| 535 |
"If the I<base> needs to be tested, it should be tested in a call where the " |
| 536 |
"string is known to succeed. Otherwise, it's impossible to portably " |
| 537 |
"differentiate the errors." |
| 538 |
msgstr "" |
| 539 |
"Si es necesario probar I<base>, debe hacerse en una llamada donde se sepa " |
| 540 |
"que la cadena se ejecuta correctamente. De lo contrario, es imposible " |
| 541 |
"diferenciar los errores de forma portable." |
| 542 |
|
| 543 |
#. type: Plain text |
| 544 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 545 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 546 |
#, no-wrap |
| 547 |
msgid "" |
| 548 |
"errno = 0;\n" |
| 549 |
"strtol(\"0\", NULL, base);\n" |
| 550 |
"if (errno == EINVAL)\n" |
| 551 |
" goto unsupported_base;\n" |
| 552 |
msgstr "" |
| 553 |
"errno = 0;\n" |
| 554 |
"strtol(\"0\", NULL, base);\n" |
| 555 |
"if (errno == EINVAL)\n" |
| 556 |
" goto unsupported_base;\n" |
| 557 |
|
| 558 |
#. type: SH |
| 559 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 560 |
#: opensuse-tumbleweed |
| 561 |
#, no-wrap |
| 562 |
msgid "BUGS" |
| 563 |
msgstr "ERRORES" |
| 564 |
|
| 565 |
#. type: SS |
| 566 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 567 |
#: opensuse-tumbleweed |
| 568 |
#, no-wrap |
| 569 |
msgid "White space" |
| 570 |
msgstr "Espacio en blanco" |
| 571 |
|
| 572 |
#. type: Plain text |
| 573 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 574 |
#: opensuse-tumbleweed |
| 575 |
msgid "" |
| 576 |
"These functions silently accept leading white space. To reject white space, " |
| 577 |
"call B<isspace>(3) before B<strtol>()." |
| 578 |
msgstr "" |
| 579 |
"Estas funciones aceptan espacios en blanco iniciales sin indicar nada. Para " |
| 580 |
"rechazarlos, llame a B<isspace>(3) antes de B<strtol>()." |
| 581 |
|
| 582 |
#. type: SH |
| 583 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 584 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 585 |
#, no-wrap |
| 586 |
msgid "EXAMPLES" |
| 587 |
msgstr "EJEMPLOS" |
| 588 |
|
| 589 |
#. type: Plain text |
| 590 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 591 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 592 |
msgid "" |
| 593 |
"The program shown below demonstrates the use of B<strtol>(). The first " |
| 594 |
"command-line argument specifies a string from which B<strtol>() should " |
| 595 |
"parse a number. The second (optional) argument specifies the base to be " |
| 596 |
"used for the conversion. (This argument is converted to numeric form using " |
| 597 |
"B<atoi>(3), a function that performs no error checking and has a simpler " |
| 598 |
"interface than B<strtol>().) Some examples of the results produced by this " |
| 599 |
"program are the following:" |
| 600 |
msgstr "" |
| 601 |
"El programa que se muestra a continuación muestra el uso de B<strtol>(). El " |
| 602 |
"primer argumento de la línea de órdenes especifica una cadena desde la cual " |
| 603 |
"B<strtol>() debe analizar un número. El segundo argumento (opcional) " |
| 604 |
"especifica la base que se utilizará para la conversión. (Este argumento se " |
| 605 |
"convierte a formato numérico mediante B<atoi>(3), una función que no realiza " |
| 606 |
"comprobación de errores y tiene una interfaz más sencilla que B<strtol>()). " |
| 607 |
"Algunos ejemplos de los resultados generados por este programa son los " |
| 608 |
"siguientes:" |
| 609 |
|
| 610 |
#. type: Plain text |
| 611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 613 |
#, no-wrap |
| 614 |
msgid "" |
| 615 |
"$B< ./a.out 123>\n" |
| 616 |
"strtol() returned 123\n" |
| 617 |
"$B< ./a.out \\[aq] 123\\[aq]>\n" |
| 618 |
"strtol() returned 123\n" |
| 619 |
"$B< ./a.out 123abc>\n" |
| 620 |
"strtol() returned 123\n" |
| 621 |
"Further characters after number: \"abc\"\n" |
| 622 |
"$B< ./a.out 123abc 55>\n" |
| 623 |
"strtol: Invalid argument\n" |
| 624 |
"$B< ./a.out \\[aq]\\[aq]>\n" |
| 625 |
"No digits were found\n" |
| 626 |
"$B< ./a.out 4000000000>\n" |
| 627 |
"strtol: Numerical result out of range\n" |
| 628 |
msgstr "" |
| 629 |
"$B< ./a.out 123>\n" |
| 630 |
"strtol() returned 123\n" |
| 631 |
"$B< ./a.out \\[aq] 123\\[aq]>\n" |
| 632 |
"strtol() returned 123\n" |
| 633 |
"$B< ./a.out 123abc>\n" |
| 634 |
"strtol() returned 123\n" |
| 635 |
"Further characters after number: \"abc\"\n" |
| 636 |
"$B< ./a.out 123abc 55>\n" |
| 637 |
"strtol: Invalid argument\n" |
| 638 |
"$B< ./a.out \\[aq]\\[aq]>\n" |
| 639 |
"No digits were found\n" |
| 640 |
"$B< ./a.out 4000000000>\n" |
| 641 |
"strtol: Numerical result out of range\n" |
| 642 |
|
| 643 |
#. type: SS |
| 644 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 645 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 646 |
#, no-wrap |
| 647 |
msgid "Program source" |
| 648 |
msgstr "Código fuente" |
| 649 |
|
| 650 |
#. type: Plain text |
| 651 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 652 |
#: opensuse-tumbleweed |
| 653 |
#, no-wrap |
| 654 |
msgid "" |
| 655 |
"#include E<lt>errno.hE<gt>\n" |
| 656 |
"#include E<lt>stdio.hE<gt>\n" |
| 657 |
"#include E<lt>stdlib.hE<gt>\n" |
| 658 |
"\\&\n" |
| 659 |
"int\n" |
| 660 |
"main(int argc, char *argv[])\n" |
| 661 |
"{\n" |
| 662 |
" int base;\n" |
| 663 |
" char *endptr, *str;\n" |
| 664 |
" long val;\n" |
| 665 |
"\\&\n" |
| 666 |
" if (argc E<lt> 2) {\n" |
| 667 |
" fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n" |
| 668 |
" exit(EXIT_FAILURE);\n" |
| 669 |
" }\n" |
| 670 |
"\\&\n" |
| 671 |
" str = argv[1];\n" |
| 672 |
" base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n" |
| 673 |
"\\&\n" |
| 674 |
" errno = 0; /* To distinguish success/failure after call */\n" |
| 675 |
" strtol(\"0\", NULL, base);\n" |
| 676 |
" if (errno == EINVAL) {\n" |
| 677 |
" perror(\"strtol\");\n" |
| 678 |
" exit(EXIT_FAILURE);\n" |
| 679 |
" }\n" |
| 680 |
"\\&\n" |
| 681 |
" errno = 0; /* To distinguish success/failure after call */\n" |
| 682 |
" val = strtol(str, &endptr, base);\n" |
| 683 |
"\\&\n" |
| 684 |
" /* Check for various possible errors. */\n" |
| 685 |
"\\&\n" |
| 686 |
" if (errno == ERANGE) {\n" |
| 687 |
" perror(\"strtol\");\n" |
| 688 |
" exit(EXIT_FAILURE);\n" |
| 689 |
" }\n" |
| 690 |
"\\&\n" |
| 691 |
" if (endptr == str) {\n" |
| 692 |
" fprintf(stderr, \"No digits were found\\[rs]n\");\n" |
| 693 |
" exit(EXIT_FAILURE);\n" |
| 694 |
" }\n" |
| 695 |
"\\&\n" |
| 696 |
" /* If we got here, strtol() successfully parsed a number. */\n" |
| 697 |
"\\&\n" |
| 698 |
" printf(\"strtol() returned %ld\\[rs]n\", val);\n" |
| 699 |
"\\&\n" |
| 700 |
" if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error. */\n" |
| 701 |
" printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n" |
| 702 |
"\\&\n" |
| 703 |
" exit(EXIT_SUCCESS);\n" |
| 704 |
"}\n" |
| 705 |
msgstr "" |
| 706 |
"#include E<lt>errno.hE<gt>\n" |
| 707 |
"#include E<lt>stdio.hE<gt>\n" |
| 708 |
"#include E<lt>stdlib.hE<gt>\n" |
| 709 |
"\\&\n" |
| 710 |
"int\n" |
| 711 |
"main(int argc, char *argv[])\n" |
| 712 |
"{\n" |
| 713 |
" int base;\n" |
| 714 |
" char *endptr, *str;\n" |
| 715 |
" long val;\n" |
| 716 |
"\\&\n" |
| 717 |
" if (argc E<lt> 2) {\n" |
| 718 |
" fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n" |
| 719 |
" exit(EXIT_FAILURE);\n" |
| 720 |
" }\n" |
| 721 |
"\\&\n" |
| 722 |
" str = argv[1];\n" |
| 723 |
" base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n" |
| 724 |
"\\&\n" |
| 725 |
" errno = 0; /* Para diferenciar el éxito/error después de la llamada */\n" |
| 726 |
" strtol(\"0\", NULL, base);\n" |
| 727 |
" if (errno == EINVAL) {\n" |
| 728 |
" perror(\"strtol\");\n" |
| 729 |
" exit(EXIT_FAILURE);\n" |
| 730 |
" }\n" |
| 731 |
"\\&\n" |
| 732 |
" errno = 0; /* Para distinguir el éxito/error después de la llamada */\n" |
| 733 |
" val = strtol(str, &endptr, base);\n" |
| 734 |
"\\&\n" |
| 735 |
" /* Comprueba varios posibles errores */\n" |
| 736 |
"\\&\n" |
| 737 |
" if (errno == ERANGE) {\n" |
| 738 |
" perror(\"strtol\");\n" |
| 739 |
" exit(EXIT_FAILURE);\n" |
| 740 |
" }\n" |
| 741 |
"\\&\n" |
| 742 |
" if (endptr == str) {\n" |
| 743 |
" fprintf(stderr, \"No digits were found\\[rs]n\");\n" |
| 744 |
" exit(EXIT_FAILURE);\n" |
| 745 |
" }\n" |
| 746 |
"\\&\n" |
| 747 |
" /* Si llegamos hasta aqui, seguro que strtol() ha encontrado un número. */\n" |
| 748 |
"\\&\n" |
| 749 |
" printf(\"strtol() returned %ld\\[rs]n\", val);\n" |
| 750 |
"\\&\n" |
| 751 |
" if (*endptr != \\[aq]\\[rs]0\\[aq]) /* No necesariamente un error. */\n" |
| 752 |
" printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n" |
| 753 |
"\\&\n" |
| 754 |
" exit(EXIT_SUCCESS);\n" |
| 755 |
"}\n" |
| 756 |
|
| 757 |
#. SRC END |
| 758 |
#. type: SH |
| 759 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 760 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 761 |
#, no-wrap |
| 762 |
msgid "SEE ALSO" |
| 763 |
msgstr "VÉASE TAMBIÉN" |
| 764 |
|
| 765 |
#. type: Plain text |
| 766 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 767 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 768 |
msgid "" |
| 769 |
"B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3), " |
| 770 |
"B<strtoul>(3)" |
| 771 |
msgstr "" |
| 772 |
"B<atof>(3), B<atoi>(3), B<atol>(3), B<strtod>(3), B<strtoimax>(3), " |
| 773 |
"B<strtoul>(3)" |
| 774 |
|
| 775 |
#. type: TH |
| 776 |
#: debian-trixie |
| 777 |
#, no-wrap |
| 778 |
msgid "2024-06-16" |
| 779 |
msgstr "16 Junio 2024" |
| 780 |
|
| 781 |
#. type: TH |
| 782 |
#: debian-trixie |
| 783 |
#, no-wrap |
| 784 |
msgid "Linux man-pages 6.9.1" |
| 785 |
msgstr "Páginas de Manual de Linux 6.9.1" |
| 786 |
|
| 787 |
#. type: Plain text |
| 788 |
#: debian-trixie |
| 789 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 790 |
msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)" |
| 791 |
|
| 792 |
#. type: Plain text |
| 793 |
#: debian-trixie fedora-44 fedora-rawhide |
| 794 |
msgid "" |
| 795 |
"The string may begin with an arbitrary amount of white space (as determined " |
| 796 |
"by B<isspace>(3)) followed by a single optional \\[aq]+\\[aq] or \\[aq]-\\" |
| 797 |
"[aq] sign. If I<base> is zero or 16, the string may then include a \"0x\" " |
| 798 |
"or \"0X\" prefix, and the number will be read in base 16; otherwise, a zero " |
| 799 |
"I<base> is taken as 10 (decimal) unless the next character is \\[aq]0\\[aq], " |
| 800 |
"in which case it is taken as 8 (octal)." |
| 801 |
msgstr "" |
| 802 |
"La cadena puede comenzar con una cantidad arbitraria de espacios en blanco " |
| 803 |
"(según lo determinado por B<isspace>(3)) seguido de un único signo opcional " |
| 804 |
"\\[aq]+\\[aq] o \\[aq]-\\[aq]. Si I<base> es cero o 16, la cadena puede " |
| 805 |
"incluir un prefijo «0x» o «0X», y el número se leerá en base 16. De lo " |
| 806 |
"contrario, un cero en I<base> se toma como 10 (decimal), a menos que el " |
| 807 |
"siguiente carácter sea \\[aq]0\\[aq], en cuyo caso se toma como 8 (octal)." |
| 808 |
|
| 809 |
#. type: Plain text |
| 810 |
#: debian-trixie fedora-44 fedora-rawhide |
| 811 |
msgid "C11, POSIX.1-2008." |
| 812 |
msgstr "C11, POSIX.1-2008." |
| 813 |
|
| 814 |
#. type: Plain text |
| 815 |
#: debian-trixie fedora-44 fedora-rawhide |
| 816 |
#, no-wrap |
| 817 |
msgid "" |
| 818 |
"#include E<lt>errno.hE<gt>\n" |
| 819 |
"#include E<lt>stdio.hE<gt>\n" |
| 820 |
"#include E<lt>stdlib.hE<gt>\n" |
| 821 |
"\\&\n" |
| 822 |
"int\n" |
| 823 |
"main(int argc, char *argv[])\n" |
| 824 |
"{\n" |
| 825 |
" int base;\n" |
| 826 |
" char *endptr, *str;\n" |
| 827 |
" long val;\n" |
| 828 |
"\\&\n" |
| 829 |
" if (argc E<lt> 2) {\n" |
| 830 |
" fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n" |
| 831 |
" exit(EXIT_FAILURE);\n" |
| 832 |
" }\n" |
| 833 |
"\\&\n" |
| 834 |
" str = argv[1];\n" |
| 835 |
" base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n" |
| 836 |
"\\&\n" |
| 837 |
" errno = 0; /* To distinguish success/failure after call */\n" |
| 838 |
" strtol(\"0\", NULL, base);\n" |
| 839 |
" if (errno == EINVAL) {\n" |
| 840 |
" perror(\"strtol\");\n" |
| 841 |
" exit(EXIT_FAILURE);\n" |
| 842 |
" }\n" |
| 843 |
"\\&\n" |
| 844 |
" errno = 0; /* To distinguish success/failure after call */\n" |
| 845 |
" val = strtol(str, &endptr, base);\n" |
| 846 |
"\\&\n" |
| 847 |
" /* Check for various possible errors. */\n" |
| 848 |
"\\&\n" |
| 849 |
" if (errno == ERANGE) {\n" |
| 850 |
" perror(\"strtol\");\n" |
| 851 |
" exit(EXIT_FAILURE);\n" |
| 852 |
" }\n" |
| 853 |
"\\&\n" |
| 854 |
" if (endptr == str) {\n" |
| 855 |
" fprintf(stderr, \"No digits were found\\[rs]n\");\n" |
| 856 |
" exit(EXIT_FAILURE);\n" |
| 857 |
" }\n" |
| 858 |
"\\&\n" |
| 859 |
" /* If we got here, strtol() successfully parsed a number. */\n" |
| 860 |
"\\&\n" |
| 861 |
" printf(\"strtol() returned %ld\\[rs]n\", val);\n" |
| 862 |
"\\&\n" |
| 863 |
" if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error... */\n" |
| 864 |
" printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n" |
| 865 |
"\\&\n" |
| 866 |
" exit(EXIT_SUCCESS);\n" |
| 867 |
"}\n" |
| 868 |
msgstr "" |
| 869 |
"#include E<lt>errno.hE<gt>\n" |
| 870 |
"#include E<lt>stdio.hE<gt>\n" |
| 871 |
"#include E<lt>stdlib.hE<gt>\n" |
| 872 |
"\\&\n" |
| 873 |
"int\n" |
| 874 |
"main(int argc, char *argv[])\n" |
| 875 |
"{\n" |
| 876 |
" int base;\n" |
| 877 |
" char *endptr, *str;\n" |
| 878 |
" long val;\n" |
| 879 |
"\\&\n" |
| 880 |
" if (argc E<lt> 2) {\n" |
| 881 |
" fprintf(stderr, \"Usage: %s str [base]\\[rs]n\", argv[0]);\n" |
| 882 |
" exit(EXIT_FAILURE);\n" |
| 883 |
" }\n" |
| 884 |
"\\&\n" |
| 885 |
" str = argv[1];\n" |
| 886 |
" base = (argc E<gt> 2) ? atoi(argv[2]) : 0;\n" |
| 887 |
"\\&\n" |
| 888 |
" errno = 0; /* To distinguish success/failure after call */\n" |
| 889 |
" strtol(\"0\", NULL, base);\n" |
| 890 |
" if (errno == EINVAL) {\n" |
| 891 |
" perror(\"strtol\");\n" |
| 892 |
" exit(EXIT_FAILURE);\n" |
| 893 |
" }\n" |
| 894 |
"\\&\n" |
| 895 |
" errno = 0; /* To distinguish success/failure after call */\n" |
| 896 |
" val = strtol(str, &endptr, base);\n" |
| 897 |
"\\&\n" |
| 898 |
" /* Check for various possible errors. */\n" |
| 899 |
"\\&\n" |
| 900 |
" if (errno == ERANGE) {\n" |
| 901 |
" perror(\"strtol\");\n" |
| 902 |
" exit(EXIT_FAILURE);\n" |
| 903 |
" }\n" |
| 904 |
"\\&\n" |
| 905 |
" if (endptr == str) {\n" |
| 906 |
" fprintf(stderr, \"No digits were found\\[rs]n\");\n" |
| 907 |
" exit(EXIT_FAILURE);\n" |
| 908 |
" }\n" |
| 909 |
"\\&\n" |
| 910 |
" /* If we got here, strtol() successfully parsed a number. */\n" |
| 911 |
"\\&\n" |
| 912 |
" printf(\"strtol() returned %ld\\[rs]n\", val);\n" |
| 913 |
"\\&\n" |
| 914 |
" if (*endptr != \\[aq]\\[rs]0\\[aq]) /* Not necessarily an error... */\n" |
| 915 |
" printf(\"Further characters after number: \\[rs]\"%s\\[rs]\"\\[rs]n\", endptr);\n" |
| 916 |
"\\&\n" |
| 917 |
" exit(EXIT_SUCCESS);\n" |
| 918 |
"}\n" |
| 919 |
|
| 920 |
#. type: TH |
| 921 |
#: fedora-44 fedora-rawhide |
| 922 |
#, no-wrap |
| 923 |
msgid "2024-07-23" |
| 924 |
msgstr "23 Julio 2024" |
| 925 |
|
| 926 |
#. type: TH |
| 927 |
#: fedora-44 fedora-rawhide |
| 928 |
#, no-wrap |
| 929 |
msgid "Linux man-pages 6.13" |
| 930 |
msgstr "Páginas de Manual de Linux 6.13" |
| 931 |
|
| 932 |
#. type: TH |
| 933 |
#: mageia-cauldron |
| 934 |
#, no-wrap |
| 935 |
msgid "Linux man-pages 6.17" |
| 936 |
msgstr "Páginas de Manual de Linux 6.17" |
| 937 |
|
| 938 |
#. type: TH |
| 939 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 940 |
#, no-wrap |
| 941 |
msgid "Linux man-pages (unreleased)" |
| 942 |
msgstr "Páginas de Manual de Linux (no publicadas)" |