| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:36+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\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 "printf" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 28 |
#, no-wrap |
| 29 |
msgid "2026-02-16" |
| 30 |
msgstr "" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable |
| 34 |
#, no-wrap |
| 35 |
msgid "Linux man-pages 6.18" |
| 36 |
msgstr "" |
| 37 |
|
| 38 |
#. type: SH |
| 39 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 40 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 41 |
#, no-wrap |
| 42 |
msgid "NAME" |
| 43 |
msgstr "" |
| 44 |
|
| 45 |
#. type: Plain text |
| 46 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 47 |
#: opensuse-tumbleweed |
| 48 |
msgid "" |
| 49 |
"printf, fprintf, dprintf, vprintf, vfprintf, vdprintf, - formatted output " |
| 50 |
"conversion" |
| 51 |
msgstr "" |
| 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 "" |
| 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 "" |
| 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 "" |
| 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>stdio.hE<gt>>\n" |
| 78 |
msgstr "" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 82 |
#: opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "" |
| 85 |
"B<int printf(const char *restrict >I<format>B<, ...);>\n" |
| 86 |
"B<int fprintf(FILE *restrict >I<stream>B<,>\n" |
| 87 |
"B< const char *restrict >I<format>B<, ...);>\n" |
| 88 |
"B<int dprintf(int >I<fd>B<,>\n" |
| 89 |
"B< const char *restrict >I<format>B<, ...);>\n" |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 94 |
#: opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "" |
| 97 |
"B<int vprintf(const char *restrict >I<format>B<, va_list >I<ap>B<);>\n" |
| 98 |
"B<int vfprintf(FILE *restrict >I<stream>B<,>\n" |
| 99 |
"B< const char *restrict >I<format>B<, va_list >I<ap>B<);>\n" |
| 100 |
"B<int vdprintf(int >I<fd>B<,>\n" |
| 101 |
"B< const char *restrict >I<format>B<, va_list >I<ap>B<);>\n" |
| 102 |
msgstr "" |
| 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 "" |
| 108 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 109 |
msgstr "" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
msgid "B<dprintf>(), B<vdprintf>():" |
| 115 |
msgstr "" |
| 116 |
|
| 117 |
#. type: Plain text |
| 118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 120 |
#, no-wrap |
| 121 |
msgid "" |
| 122 |
" Since glibc 2.10:\n" |
| 123 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 124 |
" Before glibc 2.10:\n" |
| 125 |
" _GNU_SOURCE\n" |
| 126 |
msgstr "" |
| 127 |
|
| 128 |
#. type: SH |
| 129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 131 |
#, no-wrap |
| 132 |
msgid "DESCRIPTION" |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#. type: Plain text |
| 136 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 137 |
#: opensuse-tumbleweed |
| 138 |
msgid "" |
| 139 |
"The functions in the B<printf>() family produce output according to a " |
| 140 |
"I<format> as described below. The functions B<printf>() and B<vprintf>() " |
| 141 |
"write output to I<stdout>, the standard output stream; B<fprintf>() and " |
| 142 |
"B<vfprintf>() write output to the given output I<stream>." |
| 143 |
msgstr "" |
| 144 |
|
| 145 |
#. type: Plain text |
| 146 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 147 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 148 |
msgid "" |
| 149 |
"The function B<dprintf>() is the same as B<fprintf>() except that it " |
| 150 |
"outputs to a file descriptor, I<fd>, instead of to a B<stdio>(3) stream." |
| 151 |
msgstr "" |
| 152 |
|
| 153 |
#. type: Plain text |
| 154 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 155 |
#: opensuse-tumbleweed |
| 156 |
msgid "" |
| 157 |
"The functions B<vprintf>(), B<vfprintf>(), B<vdprintf>() are equivalent to " |
| 158 |
"the functions B<printf>(), B<fprintf>(), B<dprintf>(), respectively, except " |
| 159 |
"that they are called with a I<va_list> instead of a variable number of " |
| 160 |
"arguments. These functions do not call the I<va_end> macro. Because they " |
| 161 |
"invoke the I<va_arg> macro, the value of I<ap> is undefined after the call. " |
| 162 |
"See B<stdarg>(3)." |
| 163 |
msgstr "" |
| 164 |
|
| 165 |
#. type: Plain text |
| 166 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 167 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 168 |
msgid "" |
| 169 |
"All of these functions write the output under the control of a I<format> " |
| 170 |
"string that specifies how subsequent arguments (or arguments accessed via " |
| 171 |
"the variable-length argument facilities of B<stdarg>(3)) are converted for " |
| 172 |
"output." |
| 173 |
msgstr "" |
| 174 |
|
| 175 |
#. type: SS |
| 176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 177 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 178 |
#, no-wrap |
| 179 |
msgid "Format of the format string" |
| 180 |
msgstr "" |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
msgid "" |
| 186 |
"The format string is a character string, beginning and ending in its initial " |
| 187 |
"shift state, if any. The format string is composed of zero or more " |
| 188 |
"directives: ordinary characters (not B<%>), which are copied unchanged to " |
| 189 |
"the output stream; and conversion specifications, each of which results in " |
| 190 |
"fetching zero or more subsequent arguments. Each conversion specification " |
| 191 |
"is introduced by the character B<%>, and ends with a I<conversion " |
| 192 |
"specifier>. In between there may be (in this order) zero or more I<flags>, " |
| 193 |
"an optional minimum I<field width>, an optional I<precision> and an optional " |
| 194 |
"I<length modifier>." |
| 195 |
msgstr "" |
| 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 "The overall syntax of a conversion specification is:" |
| 201 |
msgstr "" |
| 202 |
|
| 203 |
#. type: Plain text |
| 204 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 205 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 206 |
#, no-wrap |
| 207 |
msgid "%[argument$][flags][width][.precision][length modifier]conversion\n" |
| 208 |
msgstr "" |
| 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 |
"The arguments must correspond properly (after type promotion) with the " |
| 215 |
"conversion specifier. By default, the arguments are used in the order " |
| 216 |
"given, where each \\[aq]*\\[aq] (see I<Field width> and I<Precision> below) " |
| 217 |
"and each conversion specifier asks for the next argument (and it is an error " |
| 218 |
"if insufficiently many arguments are given). One can also specify " |
| 219 |
"explicitly which argument is taken, at each place where an argument is " |
| 220 |
"required, by writing \"%m$\" instead of \\[aq]%\\[aq] and \"*m$\" instead of " |
| 221 |
"\\[aq]*\\[aq], where the decimal integer I<m> denotes the position in the " |
| 222 |
"argument list of the desired argument, indexed starting from 1. Thus," |
| 223 |
msgstr "" |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
#, no-wrap |
| 229 |
msgid "printf(\"%*d\", width, num);\n" |
| 230 |
msgstr "" |
| 231 |
|
| 232 |
#. type: Plain text |
| 233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 234 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 235 |
msgid "and" |
| 236 |
msgstr "" |
| 237 |
|
| 238 |
#. type: Plain text |
| 239 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 240 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 241 |
#, no-wrap |
| 242 |
msgid "printf(\"%2$*1$d\", width, num);\n" |
| 243 |
msgstr "" |
| 244 |
|
| 245 |
#. type: Plain text |
| 246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 247 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
msgid "" |
| 249 |
"are equivalent. The second style allows repeated references to the same " |
| 250 |
"argument. The C99 standard does not include the style using \\[aq]$\\[aq], " |
| 251 |
"which comes from the Single UNIX Specification. If the style using \\[aq]$\\" |
| 252 |
"[aq] is used, it must be used throughout for all conversions taking an " |
| 253 |
"argument and all width and precision arguments, but it may be mixed with \"%%" |
| 254 |
"\" formats, which do not consume an argument. There may be no gaps in the " |
| 255 |
"numbers of arguments specified using \\[aq]$\\[aq]; for example, if " |
| 256 |
"arguments 1 and 3 are specified, argument 2 must also be specified somewhere " |
| 257 |
"in the format string." |
| 258 |
msgstr "" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
msgid "" |
| 264 |
"For some numeric conversions a radix character (\"decimal point\") or " |
| 265 |
"thousands' grouping character is used. The actual character used depends on " |
| 266 |
"the B<LC_NUMERIC> part of the locale. (See B<setlocale>(3).) The POSIX " |
| 267 |
"locale uses \\[aq].\\[aq] as radix character, and does not have a grouping " |
| 268 |
"character. Thus," |
| 269 |
msgstr "" |
| 270 |
|
| 271 |
#. type: Plain text |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
#, no-wrap |
| 275 |
msgid "printf(\"%\\[aq].2f\", 1234567.89);\n" |
| 276 |
msgstr "" |
| 277 |
|
| 278 |
#. type: Plain text |
| 279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 280 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 281 |
msgid "" |
| 282 |
"results in \"1234567.89\" in the POSIX locale, in \"1234567,89\" in the " |
| 283 |
"nl_NL locale, and in \"1.234.567,89\" in the da_DK locale." |
| 284 |
msgstr "" |
| 285 |
|
| 286 |
#. type: SS |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
#, no-wrap |
| 290 |
msgid "Flag characters" |
| 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 "The character % is followed by zero or more of the following flags:" |
| 297 |
msgstr "" |
| 298 |
|
| 299 |
#. type: TP |
| 300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 301 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 302 |
#, no-wrap |
| 303 |
msgid "B<#>" |
| 304 |
msgstr "" |
| 305 |
|
| 306 |
#. type: Plain text |
| 307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 308 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 309 |
msgid "" |
| 310 |
"The value should be converted to an \"alternate form\". For B<o> " |
| 311 |
"conversions, the first character of the output string is made zero (by " |
| 312 |
"prefixing a 0 if it was not zero already). For B<x> and B<X> conversions, a " |
| 313 |
"nonzero result has the string \"0x\" (or \"0X\" for B<X> conversions) " |
| 314 |
"prepended to it. For B<a>, B<A>, B<e>, B<E>, B<f>, B<F>, B<g>, and B<G> " |
| 315 |
"conversions, the result will always contain a decimal point, even if no " |
| 316 |
"digits follow it (normally, a decimal point appears in the results of those " |
| 317 |
"conversions only if a digit follows). For B<g> and B<G> conversions, " |
| 318 |
"trailing zeros are not removed from the result as they would otherwise be. " |
| 319 |
"For B<m>, if I<errno> contains a valid error code, the output of " |
| 320 |
"I<strerrorname_np(errno)> is printed; otherwise, the value stored in " |
| 321 |
"I<errno> is printed as a decimal number. For other conversions, the result " |
| 322 |
"is undefined." |
| 323 |
msgstr "" |
| 324 |
|
| 325 |
#. type: TP |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
#, no-wrap |
| 329 |
msgid "B<\\&0>" |
| 330 |
msgstr "" |
| 331 |
|
| 332 |
#. type: Plain text |
| 333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 334 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 335 |
msgid "" |
| 336 |
"The value should be zero padded. For B<d>, B<i>, B<o>, B<u>, B<x>, B<X>, " |
| 337 |
"B<a>, B<A>, B<e>, B<E>, B<f>, B<F>, B<g>, and B<G> conversions, the " |
| 338 |
"converted value is padded on the left with zeros rather than blanks. If the " |
| 339 |
"B<\\&0> and B<-> flags both appear, the B<\\&0> flag is ignored. If a " |
| 340 |
"precision is given with an integer conversion (B<d>, B<i>, B<o>, B<u>, B<x>, " |
| 341 |
"and B<X>), the B<\\&0> flag is ignored. For other conversions, the behavior " |
| 342 |
"is undefined." |
| 343 |
msgstr "" |
| 344 |
|
| 345 |
#. type: TP |
| 346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 347 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 348 |
#, no-wrap |
| 349 |
msgid "B<->" |
| 350 |
msgstr "" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
msgid "" |
| 356 |
"The converted value is to be left adjusted on the field boundary. (The " |
| 357 |
"default is right justification.) The converted value is padded on the right " |
| 358 |
"with blanks, rather than on the left with blanks or zeros. A B<-> overrides " |
| 359 |
"a B<\\&0> if both are given." |
| 360 |
msgstr "" |
| 361 |
|
| 362 |
#. type: TP |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
#, no-wrap |
| 366 |
msgid "B<\\[aq] \\[aq]>" |
| 367 |
msgstr "" |
| 368 |
|
| 369 |
#. type: Plain text |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
msgid "" |
| 373 |
"(a space) A blank should be left before a positive number (or empty string) " |
| 374 |
"produced by a signed conversion." |
| 375 |
msgstr "" |
| 376 |
|
| 377 |
#. type: TP |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
#, no-wrap |
| 381 |
msgid "B<+>" |
| 382 |
msgstr "" |
| 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 |
msgid "" |
| 388 |
"A sign (+ or -) should always be placed before a number produced by a signed " |
| 389 |
"conversion. By default, a sign is used only for negative numbers. A B<+> " |
| 390 |
"overrides a space if both are used." |
| 391 |
msgstr "" |
| 392 |
|
| 393 |
#. type: Plain text |
| 394 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 395 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 396 |
msgid "" |
| 397 |
"The five flag characters above are defined in the C99 standard. POSIX " |
| 398 |
"specifies one further flag character." |
| 399 |
msgstr "" |
| 400 |
|
| 401 |
#. type: TP |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
#, no-wrap |
| 405 |
msgid "B<\\[aq]>" |
| 406 |
msgstr "" |
| 407 |
|
| 408 |
#. type: Plain text |
| 409 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 410 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 411 |
msgid "" |
| 412 |
"For decimal conversion (B<i>, B<d>, B<u>, B<f>, B<F>, B<g>, B<G>) the " |
| 413 |
"output is to be grouped with thousands' grouping characters as a I<non-" |
| 414 |
"monetary> quantity. Misleadingly, this isn't necessarily every thousand: " |
| 415 |
"for example Karbi (\"mjw_IN\"), groups its digits into 3 once, then 2 " |
| 416 |
"repeatedly. Compare B<locale>(7) I<grouping> and I<thousands_sep>, " |
| 417 |
"contrast with I<mon_grouping>/I<mon_thousands_sep> and B<strfmon>(3). This " |
| 418 |
"is a no-op in the default \"C\" locale." |
| 419 |
msgstr "" |
| 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 |
msgid "glibc 2.2 adds one further flag character." |
| 425 |
msgstr "" |
| 426 |
|
| 427 |
#. type: TP |
| 428 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 429 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 430 |
#, no-wrap |
| 431 |
msgid "B<I>" |
| 432 |
msgstr "" |
| 433 |
|
| 434 |
#. outdigits keyword in locale file |
| 435 |
#. type: Plain text |
| 436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 437 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 438 |
msgid "" |
| 439 |
"For decimal integer conversion (B<i>, B<d>, B<u>) the output uses the " |
| 440 |
"locale's alternative output digits, if any. For example, since glibc 2.2.3 " |
| 441 |
"this will give Arabic-Indic digits in the Persian (\"fa_IR\") locale." |
| 442 |
msgstr "" |
| 443 |
|
| 444 |
#. type: SS |
| 445 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 446 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 447 |
#, no-wrap |
| 448 |
msgid "Field width" |
| 449 |
msgstr "" |
| 450 |
|
| 451 |
#. type: Plain text |
| 452 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 453 |
#: opensuse-tumbleweed |
| 454 |
msgid "" |
| 455 |
"An optional decimal digit string (with nonzero first digit) specifying a " |
| 456 |
"minimum field width. If the converted value has fewer characters than the " |
| 457 |
"field width, it will be padded with spaces on the left (or right, if the " |
| 458 |
"left-adjustment flag has been given). Instead of a decimal digit string one " |
| 459 |
"may write \"*\" or \"*m$\" (for some decimal integer I<m>) to specify that " |
| 460 |
"the field width is given in the next argument, or in the I<m>-th argument, " |
| 461 |
"respectively, which must be of type I<int>. A negative field width is taken " |
| 462 |
"as a \\[aq]-\\[aq] flag followed by a positive field width. In no case does " |
| 463 |
"a nonexistent or small field width cause truncation of a field; if the " |
| 464 |
"result of a conversion is wider than the field width, the field is expanded " |
| 465 |
"to contain the conversion result." |
| 466 |
msgstr "" |
| 467 |
|
| 468 |
#. type: SS |
| 469 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 470 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 471 |
#, no-wrap |
| 472 |
msgid "Precision" |
| 473 |
msgstr "" |
| 474 |
|
| 475 |
#. type: Plain text |
| 476 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 477 |
#: opensuse-tumbleweed |
| 478 |
msgid "" |
| 479 |
"An optional precision, in the form of a period (\\[aq].\\[aq]) followed by " |
| 480 |
"an optional decimal digit string. Instead of a decimal digit string one may " |
| 481 |
"write \"*\" or \"*m$\" (for some decimal integer I<m>) to specify that the " |
| 482 |
"precision is given in the next argument, or in the I<m>-th argument, " |
| 483 |
"respectively, which must be of type I<int>. If the precision is given as " |
| 484 |
"just \\[aq].\\[aq], the precision is taken to be zero. A negative precision " |
| 485 |
"is taken as if the precision were omitted. This gives the minimum number of " |
| 486 |
"digits to appear for B<d>, B<i>, B<o>, B<u>, B<x>, and B<X> conversions, the " |
| 487 |
"number of digits to appear after the radix character for B<a>, B<A>, B<e>, " |
| 488 |
"B<E>, B<f>, and B<F> conversions, the maximum number of significant digits " |
| 489 |
"for B<g> and B<G> conversions, or the maximum number of characters to be " |
| 490 |
"printed from a string for B<s> and B<S> conversions." |
| 491 |
msgstr "" |
| 492 |
|
| 493 |
#. type: SS |
| 494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 496 |
#, no-wrap |
| 497 |
msgid "Length modifier" |
| 498 |
msgstr "" |
| 499 |
|
| 500 |
#. type: Plain text |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
msgid "" |
| 504 |
"Here, \"integer conversion\" stands for B<d>, B<i>, B<o>, B<u>, B<x>, or " |
| 505 |
"B<X> conversion." |
| 506 |
msgstr "" |
| 507 |
|
| 508 |
#. type: TP |
| 509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 510 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 511 |
#, no-wrap |
| 512 |
msgid "B<hh>" |
| 513 |
msgstr "" |
| 514 |
|
| 515 |
#. type: Plain text |
| 516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 517 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 518 |
msgid "" |
| 519 |
"A following integer conversion corresponds to a I<signed char> or I<unsigned " |
| 520 |
"char> argument, or a following B<n> conversion corresponds to a pointer to a " |
| 521 |
"I<signed char> argument." |
| 522 |
msgstr "" |
| 523 |
|
| 524 |
#. type: TP |
| 525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
#, no-wrap |
| 528 |
msgid "B<h>" |
| 529 |
msgstr "" |
| 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 |
"A following integer conversion corresponds to a I<short> or I<unsigned " |
| 536 |
"short> argument, or a following B<n> conversion corresponds to a pointer to " |
| 537 |
"a I<short> argument." |
| 538 |
msgstr "" |
| 539 |
|
| 540 |
#. type: TP |
| 541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 542 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
#, no-wrap |
| 544 |
msgid "B<l>" |
| 545 |
msgstr "" |
| 546 |
|
| 547 |
#. type: Plain text |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
msgid "" |
| 551 |
"(ell) A following integer conversion corresponds to a I<long> or I<unsigned " |
| 552 |
"long> argument, or a following B<n> conversion corresponds to a pointer to a " |
| 553 |
"I<long> argument, or a following B<c> conversion corresponds to a I<wint_t> " |
| 554 |
"argument, or a following B<s> conversion corresponds to a pointer to " |
| 555 |
"I<wchar_t> argument. On a following B<a>, B<A>, B<e>, B<E>, B<f>, B<F>, " |
| 556 |
"B<g>, or B<G> conversion, this length modifier is ignored (C99; not in " |
| 557 |
"SUSv2)." |
| 558 |
msgstr "" |
| 559 |
|
| 560 |
#. type: TP |
| 561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 563 |
#, no-wrap |
| 564 |
msgid "B<ll>" |
| 565 |
msgstr "" |
| 566 |
|
| 567 |
#. type: Plain text |
| 568 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 569 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 570 |
msgid "" |
| 571 |
"(ell-ell). A following integer conversion corresponds to a I<long long> or " |
| 572 |
"I<unsigned long long> argument, or a following B<n> conversion corresponds " |
| 573 |
"to a pointer to a I<long long> argument." |
| 574 |
msgstr "" |
| 575 |
|
| 576 |
#. type: TP |
| 577 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 578 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 579 |
#, no-wrap |
| 580 |
msgid "B<q>" |
| 581 |
msgstr "" |
| 582 |
|
| 583 |
#. type: Plain text |
| 584 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 585 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 586 |
msgid "" |
| 587 |
"A synonym for B<ll>. This is a nonstandard extension, derived from BSD; " |
| 588 |
"avoid its use in new code." |
| 589 |
msgstr "" |
| 590 |
|
| 591 |
#. type: TP |
| 592 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 593 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 594 |
#, no-wrap |
| 595 |
msgid "B<L>" |
| 596 |
msgstr "" |
| 597 |
|
| 598 |
#. type: Plain text |
| 599 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 600 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 601 |
msgid "" |
| 602 |
"A following B<a>, B<A>, B<e>, B<E>, B<f>, B<F>, B<g>, or B<G> conversion " |
| 603 |
"corresponds to a I<long double> argument. (C99 allows %LF, but SUSv2 does " |
| 604 |
"not.)" |
| 605 |
msgstr "" |
| 606 |
|
| 607 |
#. type: TP |
| 608 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 609 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 610 |
#, no-wrap |
| 611 |
msgid "B<j>" |
| 612 |
msgstr "" |
| 613 |
|
| 614 |
#. type: Plain text |
| 615 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 616 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 617 |
msgid "" |
| 618 |
"A following integer conversion corresponds to an I<intmax_t> or I<uintmax_t> " |
| 619 |
"argument, or a following B<n> conversion corresponds to a pointer to an " |
| 620 |
"I<intmax_t> argument." |
| 621 |
msgstr "" |
| 622 |
|
| 623 |
#. type: TP |
| 624 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 625 |
#, no-wrap |
| 626 |
msgid "B<w>I<N>" |
| 627 |
msgstr "" |
| 628 |
|
| 629 |
#. type: Plain text |
| 630 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 631 |
msgid "" |
| 632 |
"A following integer conversion corresponds to an integer of a width of I<N> " |
| 633 |
"bits (C23)." |
| 634 |
msgstr "" |
| 635 |
|
| 636 |
#. type: TP |
| 637 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 638 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 639 |
#, no-wrap |
| 640 |
msgid "B<z>" |
| 641 |
msgstr "" |
| 642 |
|
| 643 |
#. type: Plain text |
| 644 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 645 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 646 |
msgid "" |
| 647 |
"A following integer conversion corresponds to a I<size_t> or I<ssize_t> " |
| 648 |
"argument, or a following B<n> conversion corresponds to a pointer to a " |
| 649 |
"I<size_t> argument." |
| 650 |
msgstr "" |
| 651 |
|
| 652 |
#. type: TP |
| 653 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 654 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 655 |
#, no-wrap |
| 656 |
msgid "B<Z>" |
| 657 |
msgstr "" |
| 658 |
|
| 659 |
#. type: Plain text |
| 660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 662 |
msgid "" |
| 663 |
"A nonstandard synonym for B<z> that predates the appearance of B<z>. Do not " |
| 664 |
"use in new code." |
| 665 |
msgstr "" |
| 666 |
|
| 667 |
#. type: TP |
| 668 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 669 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 670 |
#, no-wrap |
| 671 |
msgid "B<t>" |
| 672 |
msgstr "" |
| 673 |
|
| 674 |
#. type: Plain text |
| 675 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 676 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 677 |
msgid "" |
| 678 |
"A following integer conversion corresponds to a I<ptrdiff_t> argument, or a " |
| 679 |
"following B<n> conversion corresponds to a pointer to a I<ptrdiff_t> " |
| 680 |
"argument." |
| 681 |
msgstr "" |
| 682 |
|
| 683 |
#. type: Plain text |
| 684 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 685 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 686 |
msgid "" |
| 687 |
"SUSv3 specifies all of the above, except for those modifiers explicitly " |
| 688 |
"noted as being nonstandard extensions. SUSv2 specified only the length " |
| 689 |
"modifiers B<h> (in B<hd>, B<hi>, B<ho>, B<hx>, B<hX>, B<hn>) and B<l> (in " |
| 690 |
"B<ld>, B<li>, B<lo>, B<lx>, B<lX>, B<ln>, B<lc>, B<ls>) and B<L> (in B<Le>, " |
| 691 |
"B<LE>, B<Lf>, B<Lg>, B<LG>)." |
| 692 |
msgstr "" |
| 693 |
|
| 694 |
#. type: Plain text |
| 695 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 696 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 697 |
msgid "" |
| 698 |
"As a nonstandard extension, the GNU implementations treats B<ll> and B<L> as " |
| 699 |
"synonyms, so that one can, for example, write B<llg> (as a synonym for the " |
| 700 |
"standards-compliant B<Lg>) and B<Ld> (as a synonym for the standards " |
| 701 |
"compliant B<lld>). Such usage is nonportable." |
| 702 |
msgstr "" |
| 703 |
|
| 704 |
#. type: SS |
| 705 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 706 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 707 |
#, no-wrap |
| 708 |
msgid "Conversion specifiers" |
| 709 |
msgstr "" |
| 710 |
|
| 711 |
#. type: Plain text |
| 712 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 713 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 714 |
msgid "" |
| 715 |
"A character that specifies the type of conversion to be applied. The " |
| 716 |
"conversion specifiers and their meanings are:" |
| 717 |
msgstr "" |
| 718 |
|
| 719 |
#. type: TP |
| 720 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 721 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 722 |
#, no-wrap |
| 723 |
msgid "B<d>, B<i>" |
| 724 |
msgstr "" |
| 725 |
|
| 726 |
#. type: Plain text |
| 727 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 728 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 729 |
msgid "" |
| 730 |
"The I<int> argument is converted to signed decimal notation. The precision, " |
| 731 |
"if any, gives the minimum number of digits that must appear; if the " |
| 732 |
"converted value requires fewer digits, it is padded on the left with zeros. " |
| 733 |
"The default precision is 1. When 0 is printed with an explicit precision 0, " |
| 734 |
"the output is empty." |
| 735 |
msgstr "" |
| 736 |
|
| 737 |
#. type: TP |
| 738 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 739 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 740 |
#, no-wrap |
| 741 |
msgid "B<o>, B<u>, B<x>, B<X>" |
| 742 |
msgstr "" |
| 743 |
|
| 744 |
#. type: Plain text |
| 745 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 746 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 747 |
msgid "" |
| 748 |
"The I<unsigned int> argument is converted to unsigned octal (B<o>), unsigned " |
| 749 |
"decimal (B<u>), or unsigned hexadecimal (B<x> and B<X>) notation. The " |
| 750 |
"letters B<abcdef> are used for B<x> conversions; the letters B<ABCDEF> are " |
| 751 |
"used for B<X> conversions. The precision, if any, gives the minimum number " |
| 752 |
"of digits that must appear; if the converted value requires fewer digits, it " |
| 753 |
"is padded on the left with zeros. The default precision is 1. When 0 is " |
| 754 |
"printed with an explicit precision 0, the output is empty." |
| 755 |
msgstr "" |
| 756 |
|
| 757 |
#. type: TP |
| 758 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 759 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 760 |
#, no-wrap |
| 761 |
msgid "B<e>, B<E>" |
| 762 |
msgstr "" |
| 763 |
|
| 764 |
#. type: Plain text |
| 765 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 766 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 767 |
msgid "" |
| 768 |
"The I<double> argument is rounded and converted in the style " |
| 769 |
"[-]dB<\\&.>dddB<e>\\(+-dd where there is one digit (which is nonzero if the " |
| 770 |
"argument is nonzero) before the decimal-point character and the number of " |
| 771 |
"digits after it is equal to the precision; if the precision is missing, it " |
| 772 |
"is taken as 6; if the precision is zero, no decimal-point character " |
| 773 |
"appears. An B<E> conversion uses the letter B<E> (rather than B<e>) to " |
| 774 |
"introduce the exponent. The exponent always contains at least two digits; " |
| 775 |
"if the value is zero, the exponent is 00." |
| 776 |
msgstr "" |
| 777 |
|
| 778 |
#. type: TP |
| 779 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 780 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 781 |
#, no-wrap |
| 782 |
msgid "B<f>, B<F>" |
| 783 |
msgstr "" |
| 784 |
|
| 785 |
#. type: Plain text |
| 786 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 787 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 788 |
msgid "" |
| 789 |
"The I<double> argument is rounded and converted to decimal notation in the " |
| 790 |
"style [-]dddB<\\&.>ddd, where the number of digits after the decimal-point " |
| 791 |
"character is equal to the precision specification. If the precision is " |
| 792 |
"missing, it is taken as 6; if the precision is explicitly zero, no decimal-" |
| 793 |
"point character appears. If a decimal point appears, at least one digit " |
| 794 |
"appears before it." |
| 795 |
msgstr "" |
| 796 |
|
| 797 |
#. type: Plain text |
| 798 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 799 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 800 |
msgid "" |
| 801 |
"(SUSv2 does not know about B<F> and says that character string " |
| 802 |
"representations for infinity and NaN may be made available. SUSv3 adds a " |
| 803 |
"specification for B<F>. The C99 standard specifies \"[-]inf\" or " |
| 804 |
"\"[-]infinity\" for infinity, and a string starting with \"nan\" for NaN, in " |
| 805 |
"the case of B<f> conversion, and \"[-]INF\" or \"[-]INFINITY\" or \"NAN\" in " |
| 806 |
"the case of B<F> conversion.)" |
| 807 |
msgstr "" |
| 808 |
|
| 809 |
#. type: TP |
| 810 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 811 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 812 |
#, no-wrap |
| 813 |
msgid "B<g>, B<G>" |
| 814 |
msgstr "" |
| 815 |
|
| 816 |
#. type: Plain text |
| 817 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 818 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 819 |
msgid "" |
| 820 |
"The I<double> argument is converted in style B<f> or B<e> (or B<F> or B<E> " |
| 821 |
"for B<G> conversions). The precision specifies the number of significant " |
| 822 |
"digits. If the precision is missing, 6 digits are given; if the precision " |
| 823 |
"is zero, it is treated as 1. Style B<e> is used if the exponent from its " |
| 824 |
"conversion is less than -4 or greater than or equal to the precision. " |
| 825 |
"Trailing zeros are removed from the fractional part of the result; a decimal " |
| 826 |
"point appears only if it is followed by at least one digit." |
| 827 |
msgstr "" |
| 828 |
|
| 829 |
#. type: TP |
| 830 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 831 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 832 |
#, no-wrap |
| 833 |
msgid "B<a>, B<A>" |
| 834 |
msgstr "" |
| 835 |
|
| 836 |
#. type: Plain text |
| 837 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 838 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 839 |
msgid "" |
| 840 |
"(C99; not in SUSv2, but added in SUSv3) For B<a> conversion, the I<double> " |
| 841 |
"argument is converted to hexadecimal notation (using the letters abcdef) in " |
| 842 |
"the style [-]B<0x>hB<\\&.>hhhhB<p>\\(+-d; for B<A> conversion the prefix " |
| 843 |
"B<0X>, the letters ABCDEF, and the exponent separator B<P> is used. There " |
| 844 |
"is one hexadecimal digit before the radix point, and the number of digits " |
| 845 |
"after it is equal to the precision. The default precision suffices for an " |
| 846 |
"exact representation of the value if an exact representation in base 2 " |
| 847 |
"exists and otherwise is sufficiently large to distinguish values of type " |
| 848 |
"I<double>. The digit before the radix point is unspecified for " |
| 849 |
"nonnormalized numbers, and nonzero but otherwise unspecified for normalized " |
| 850 |
"numbers. The exponent, I<d>, is the appropriate exponent of 2 expressed as " |
| 851 |
"a decimal integer; it always contains at least one digit; if the value is " |
| 852 |
"zero, the exponent is 0." |
| 853 |
msgstr "" |
| 854 |
|
| 855 |
#. type: TP |
| 856 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 857 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 858 |
#, no-wrap |
| 859 |
msgid "B<c>" |
| 860 |
msgstr "" |
| 861 |
|
| 862 |
#. type: Plain text |
| 863 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 864 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 865 |
msgid "" |
| 866 |
"If no B<l> modifier is present, the I<int> argument is converted to an " |
| 867 |
"I<unsigned char>, and the resulting character is written. If an B<l> " |
| 868 |
"modifier is present, the I<wint_t> (wide character) argument is converted to " |
| 869 |
"a multibyte sequence by a call to the B<wcrtomb>(3) function, with a " |
| 870 |
"conversion state starting in the initial state, and the resulting multibyte " |
| 871 |
"string is written." |
| 872 |
msgstr "" |
| 873 |
|
| 874 |
#. type: TP |
| 875 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 876 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 877 |
#, no-wrap |
| 878 |
msgid "B<s>" |
| 879 |
msgstr "" |
| 880 |
|
| 881 |
#. type: Plain text |
| 882 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 883 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 884 |
msgid "" |
| 885 |
"If no B<l> modifier is present: the I<const char\\ *> argument is expected " |
| 886 |
"to be a pointer to an array of character type (pointer to a string). " |
| 887 |
"Characters from the array are written up to (but not including) a " |
| 888 |
"terminating null byte (\\[aq]\\[rs]0\\[aq]); if a precision is specified, no " |
| 889 |
"more than the number specified are written. If a precision is given, no " |
| 890 |
"null byte need be present; if the precision is not specified, or is greater " |
| 891 |
"than the size of the array, the array must contain a terminating null byte." |
| 892 |
msgstr "" |
| 893 |
|
| 894 |
#. type: Plain text |
| 895 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 896 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 897 |
msgid "" |
| 898 |
"If an B<l> modifier is present: the I<const wchar_t\\ *> argument is " |
| 899 |
"expected to be a pointer to an array of wide characters. Wide characters " |
| 900 |
"from the array are converted to multibyte characters (each by a call to the " |
| 901 |
"B<wcrtomb>(3) function, with a conversion state starting in the initial " |
| 902 |
"state before the first wide character), up to and including a terminating " |
| 903 |
"null wide character. The resulting multibyte characters are written up to " |
| 904 |
"(but not including) the terminating null byte. If a precision is specified, " |
| 905 |
"no more bytes than the number specified are written, but no partial " |
| 906 |
"multibyte characters are written. Note that the precision determines the " |
| 907 |
"number of I<bytes> written, not the number of I<wide characters> or I<screen " |
| 908 |
"positions>. The array must contain a terminating null wide character, " |
| 909 |
"unless a precision is given and it is so small that the number of bytes " |
| 910 |
"written exceeds it before the end of the array is reached." |
| 911 |
msgstr "" |
| 912 |
|
| 913 |
#. type: TP |
| 914 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 915 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 916 |
#, no-wrap |
| 917 |
msgid "B<C>" |
| 918 |
msgstr "" |
| 919 |
|
| 920 |
#. type: Plain text |
| 921 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 922 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 923 |
msgid "" |
| 924 |
"(Not in C99 or C11, but in SUSv2, SUSv3, and SUSv4.) Synonym for B<lc>. " |
| 925 |
"Don't use." |
| 926 |
msgstr "" |
| 927 |
|
| 928 |
#. type: TP |
| 929 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 930 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 931 |
#, no-wrap |
| 932 |
msgid "B<S>" |
| 933 |
msgstr "" |
| 934 |
|
| 935 |
#. type: Plain text |
| 936 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 937 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 938 |
msgid "" |
| 939 |
"(Not in C99 or C11, but in SUSv2, SUSv3, and SUSv4.) Synonym for B<ls>. " |
| 940 |
"Don't use." |
| 941 |
msgstr "" |
| 942 |
|
| 943 |
#. type: TP |
| 944 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 945 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 946 |
#, no-wrap |
| 947 |
msgid "B<p>" |
| 948 |
msgstr "" |
| 949 |
|
| 950 |
#. type: Plain text |
| 951 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 952 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 953 |
msgid "" |
| 954 |
"The I<void\\ *> pointer argument is printed in hexadecimal (as if by B<%#x> " |
| 955 |
"or B<%#lx>)." |
| 956 |
msgstr "" |
| 957 |
|
| 958 |
#. type: TP |
| 959 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 960 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 961 |
#, no-wrap |
| 962 |
msgid "B<n>" |
| 963 |
msgstr "" |
| 964 |
|
| 965 |
#. type: Plain text |
| 966 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 967 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 968 |
msgid "" |
| 969 |
"The number of characters written so far is stored into the integer pointed " |
| 970 |
"to by the corresponding argument. That argument shall be an I<int\\ *>, or " |
| 971 |
"variant whose size matches the (optionally) supplied integer length " |
| 972 |
"modifier. No argument is converted. (This specifier is not supported by " |
| 973 |
"the bionic C library.) The behavior is undefined if the conversion " |
| 974 |
"specification includes any flags, a field width, or a precision." |
| 975 |
msgstr "" |
| 976 |
|
| 977 |
#. type: TP |
| 978 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 979 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 980 |
#, no-wrap |
| 981 |
msgid "B<m>" |
| 982 |
msgstr "" |
| 983 |
|
| 984 |
#. type: Plain text |
| 985 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 986 |
#: opensuse-tumbleweed |
| 987 |
msgid "" |
| 988 |
"(glibc extension; supported by uClibc and musl, and on Android from API " |
| 989 |
"level 29.) Print output of I<strerror(errno)> (or I<strerrorname_np(errno)> " |
| 990 |
"in the alternate form). No argument is required." |
| 991 |
msgstr "" |
| 992 |
|
| 993 |
#. type: TP |
| 994 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 995 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 996 |
#, no-wrap |
| 997 |
msgid "B<%>" |
| 998 |
msgstr "" |
| 999 |
|
| 1000 |
#. type: Plain text |
| 1001 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1002 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1003 |
msgid "" |
| 1004 |
"A \\[aq]%\\[aq] is written. No argument is converted. The complete " |
| 1005 |
"conversion specification is \\[aq]%%\\[aq]." |
| 1006 |
msgstr "" |
| 1007 |
|
| 1008 |
#. type: SH |
| 1009 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1010 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1011 |
#, no-wrap |
| 1012 |
msgid "RETURN VALUE" |
| 1013 |
msgstr "" |
| 1014 |
|
| 1015 |
#. type: Plain text |
| 1016 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1017 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1018 |
msgid "" |
| 1019 |
"Upon successful return, these functions return the number of bytes printed " |
| 1020 |
"(excluding the null byte used to end output to strings)." |
| 1021 |
msgstr "" |
| 1022 |
|
| 1023 |
#. type: Plain text |
| 1024 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1025 |
#: opensuse-tumbleweed |
| 1026 |
msgid "" |
| 1027 |
"On error, a negative value is returned, and I<errno> is set to indicate the " |
| 1028 |
"error." |
| 1029 |
msgstr "" |
| 1030 |
|
| 1031 |
#. type: SH |
| 1032 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1033 |
#: opensuse-tumbleweed |
| 1034 |
#, no-wrap |
| 1035 |
msgid "ERRORS" |
| 1036 |
msgstr "" |
| 1037 |
|
| 1038 |
#. type: Plain text |
| 1039 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1040 |
#: opensuse-tumbleweed |
| 1041 |
msgid "" |
| 1042 |
"See B<write>(2) and B<putwc>(3). In addition, the following error may " |
| 1043 |
"occur:" |
| 1044 |
msgstr "" |
| 1045 |
|
| 1046 |
#. type: TP |
| 1047 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1048 |
#: opensuse-tumbleweed |
| 1049 |
#, no-wrap |
| 1050 |
msgid "B<EOVERFLOW>" |
| 1051 |
msgstr "" |
| 1052 |
|
| 1053 |
#. type: Plain text |
| 1054 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1055 |
#: opensuse-tumbleweed |
| 1056 |
msgid "The value to be returned is greater than B<INT_MAX>." |
| 1057 |
msgstr "" |
| 1058 |
|
| 1059 |
#. type: Plain text |
| 1060 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1061 |
#: opensuse-tumbleweed |
| 1062 |
msgid "The B<dprintf>() function may fail additionally if:" |
| 1063 |
msgstr "" |
| 1064 |
|
| 1065 |
#. type: TP |
| 1066 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1067 |
#: opensuse-tumbleweed |
| 1068 |
#, no-wrap |
| 1069 |
msgid "B<EBADF>" |
| 1070 |
msgstr "" |
| 1071 |
|
| 1072 |
#. type: Plain text |
| 1073 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1074 |
#: opensuse-tumbleweed |
| 1075 |
msgid "The I<fd> argument is not a valid file descriptor." |
| 1076 |
msgstr "" |
| 1077 |
|
| 1078 |
#. type: SH |
| 1079 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1080 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1081 |
#, no-wrap |
| 1082 |
msgid "ATTRIBUTES" |
| 1083 |
msgstr "" |
| 1084 |
|
| 1085 |
#. type: Plain text |
| 1086 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1087 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1088 |
msgid "" |
| 1089 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 1090 |
msgstr "" |
| 1091 |
|
| 1092 |
#. type: tbl table |
| 1093 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1094 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1095 |
#, no-wrap |
| 1096 |
msgid "Interface" |
| 1097 |
msgstr "" |
| 1098 |
|
| 1099 |
#. type: tbl table |
| 1100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1102 |
#, no-wrap |
| 1103 |
msgid "Attribute" |
| 1104 |
msgstr "" |
| 1105 |
|
| 1106 |
#. type: tbl table |
| 1107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1109 |
#, no-wrap |
| 1110 |
msgid "Value" |
| 1111 |
msgstr "" |
| 1112 |
|
| 1113 |
#. type: tbl table |
| 1114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1116 |
#, no-wrap |
| 1117 |
msgid ".na\n" |
| 1118 |
msgstr "" |
| 1119 |
|
| 1120 |
#. type: tbl table |
| 1121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1123 |
#, no-wrap |
| 1124 |
msgid ".nh\n" |
| 1125 |
msgstr "" |
| 1126 |
|
| 1127 |
#. type: tbl table |
| 1128 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1129 |
#: opensuse-tumbleweed |
| 1130 |
#, no-wrap |
| 1131 |
msgid "" |
| 1132 |
"B<printf>(),\n" |
| 1133 |
"B<fprintf>(),\n" |
| 1134 |
"B<vprintf>(),\n" |
| 1135 |
"B<vfprintf>()" |
| 1136 |
msgstr "" |
| 1137 |
|
| 1138 |
#. type: tbl table |
| 1139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1140 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1141 |
#, no-wrap |
| 1142 |
msgid "Thread safety" |
| 1143 |
msgstr "" |
| 1144 |
|
| 1145 |
#. type: tbl table |
| 1146 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1147 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1148 |
#, no-wrap |
| 1149 |
msgid "MT-Safe locale" |
| 1150 |
msgstr "" |
| 1151 |
|
| 1152 |
#. type: SH |
| 1153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1155 |
#, no-wrap |
| 1156 |
msgid "STANDARDS" |
| 1157 |
msgstr "" |
| 1158 |
|
| 1159 |
#. type: TP |
| 1160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1162 |
#, no-wrap |
| 1163 |
msgid "B<fprintf>()" |
| 1164 |
msgstr "" |
| 1165 |
|
| 1166 |
#. type: TQ |
| 1167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1169 |
#, no-wrap |
| 1170 |
msgid "B<printf>()" |
| 1171 |
msgstr "" |
| 1172 |
|
| 1173 |
#. type: TQ |
| 1174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1176 |
#, no-wrap |
| 1177 |
msgid "B<vprintf>()" |
| 1178 |
msgstr "" |
| 1179 |
|
| 1180 |
#. type: TQ |
| 1181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1183 |
#, no-wrap |
| 1184 |
msgid "B<vfprintf>()" |
| 1185 |
msgstr "" |
| 1186 |
|
| 1187 |
#. type: Plain text |
| 1188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1190 |
msgid "C11, POSIX.1-2008." |
| 1191 |
msgstr "" |
| 1192 |
|
| 1193 |
#. type: TP |
| 1194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1196 |
#, no-wrap |
| 1197 |
msgid "B<dprintf>()" |
| 1198 |
msgstr "" |
| 1199 |
|
| 1200 |
#. type: TQ |
| 1201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1203 |
#, no-wrap |
| 1204 |
msgid "B<vdprintf>()" |
| 1205 |
msgstr "" |
| 1206 |
|
| 1207 |
#. type: Plain text |
| 1208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1210 |
msgid "GNU, POSIX.1-2008." |
| 1211 |
msgstr "" |
| 1212 |
|
| 1213 |
#. type: SH |
| 1214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1216 |
#, no-wrap |
| 1217 |
msgid "HISTORY" |
| 1218 |
msgstr "" |
| 1219 |
|
| 1220 |
#. type: Plain text |
| 1221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1222 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1223 |
msgid "C89, POSIX.1-2001." |
| 1224 |
msgstr "" |
| 1225 |
|
| 1226 |
#. type: Plain text |
| 1227 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1228 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1229 |
msgid "Issue 4 of the X/Open Portability Guide (SUSv1, 1994) adds B<\\[aq]>." |
| 1230 |
msgstr "" |
| 1231 |
|
| 1232 |
#. #-#-#-#-# archlinux: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1233 |
#. Linux libc4 knows about the five C standard flags. |
| 1234 |
#. It knows about the length modifiers \f[B]h\f[], \f[B]l\f[], \f[B]L\f[], |
| 1235 |
#. and the conversions |
| 1236 |
#. \f[B]c\f[], \f[B]d\f[], \f[B]e\f[], \f[B]E\f[], \f[B]f\f[], \f[B]F\f[], |
| 1237 |
#. \f[B]g\f[], \f[B]G\f[], \f[B]i\f[], \f[B]n\f[], \f[B]o\f[], \f[B]p\f[], |
| 1238 |
#. \f[B]s\f[], \f[B]u\f[], \f[B]x\f[], and \f[B]X\f[], |
| 1239 |
#. where \f[B]F\f[] is a synonym for \f[B]f\f[]. |
| 1240 |
#. Additionally, it accepts \f[B]D\f[], \f[B]O\f[], and \f[B]U\f[] as synonyms |
| 1241 |
#. for \f[B]ld\f[], \f[B]lo\f[], and \f[B]lu\f[]. |
| 1242 |
#. (This is bad, and caused serious bugs later, when |
| 1243 |
#. support for \f[B]%D\f[] disappeared.) |
| 1244 |
#. No locale-dependent radix character, |
| 1245 |
#. no thousands' separator, no NaN or infinity, no "%m$" and "*m$". |
| 1246 |
#. .P |
| 1247 |
#. Linux libc5 knows about the five C standard flags and the \[aq] flag, |
| 1248 |
#. locale, "%m$" and "*m$". |
| 1249 |
#. It knows about the length modifiers \f[B]h\f[], \f[B]l\f[], \f[B]L\f[], |
| 1250 |
#. \f[B]Z\f[], and \f[B]q\f[], but accepts \f[B]L\f[] and \f[B]q\f[] |
| 1251 |
#. both for \f[I]long double\f[] and for \f[I]long long\f[] (this is a bug). |
| 1252 |
#. It no longer recognizes \f[B]F\f[], \f[B]D\f[], \f[B]O\f[], and \f[B]U\f[], |
| 1253 |
#. but adds the conversion character |
| 1254 |
#. .BR m , |
| 1255 |
#. which outputs |
| 1256 |
#. .IR strerror(errno) . |
| 1257 |
#. .P |
| 1258 |
#. glibc 2.0 adds conversion characters \f[B]C\f[] and \f[B]S\f[]. |
| 1259 |
#. .P |
| 1260 |
#. type: Plain text |
| 1261 |
#. #-#-#-#-# debian-trixie: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1262 |
#. Linux libc4 knows about the five C standard flags. |
| 1263 |
#. It knows about the length modifiers \fBh\fP, \fBl\fP, \fBL\fP, |
| 1264 |
#. and the conversions |
| 1265 |
#. \fBc\fP, \fBd\fP, \fBe\fP, \fBE\fP, \fBf\fP, \fBF\fP, |
| 1266 |
#. \fBg\fP, \fBG\fP, \fBi\fP, \fBn\fP, \fBo\fP, \fBp\fP, |
| 1267 |
#. \fBs\fP, \fBu\fP, \fBx\fP, and \fBX\fP, |
| 1268 |
#. where \fBF\fP is a synonym for \fBf\fP. |
| 1269 |
#. Additionally, it accepts \fBD\fP, \fBO\fP, and \fBU\fP as synonyms |
| 1270 |
#. for \fBld\fP, \fBlo\fP, and \fBlu\fP. |
| 1271 |
#. (This is bad, and caused serious bugs later, when |
| 1272 |
#. support for \fB%D\fP disappeared.) |
| 1273 |
#. No locale-dependent radix character, |
| 1274 |
#. no thousands' separator, no NaN or infinity, no "%m$" and "*m$". |
| 1275 |
#. .P |
| 1276 |
#. Linux libc5 knows about the five C standard flags and the \[aq] flag, |
| 1277 |
#. locale, "%m$" and "*m$". |
| 1278 |
#. It knows about the length modifiers \fBh\fP, \fBl\fP, \fBL\fP, |
| 1279 |
#. \fBZ\fP, and \fBq\fP, but accepts \fBL\fP and \fBq\fP |
| 1280 |
#. both for \fIlong double\fP and for \fIlong long\fP (this is a bug). |
| 1281 |
#. It no longer recognizes \fBF\fP, \fBD\fP, \fBO\fP, and \fBU\fP, |
| 1282 |
#. but adds the conversion character |
| 1283 |
#. .BR m , |
| 1284 |
#. which outputs |
| 1285 |
#. .IR strerror(errno) . |
| 1286 |
#. .P |
| 1287 |
#. glibc 2.0 adds conversion characters \fBC\fP and \fBS\fP. |
| 1288 |
#. .P |
| 1289 |
#. type: Plain text |
| 1290 |
#. #-#-#-#-# debian-unstable: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1291 |
#. Linux libc4 knows about the five C standard flags. |
| 1292 |
#. It knows about the length modifiers \f[B]h\f[], \f[B]l\f[], \f[B]L\f[], |
| 1293 |
#. and the conversions |
| 1294 |
#. \f[B]c\f[], \f[B]d\f[], \f[B]e\f[], \f[B]E\f[], \f[B]f\f[], \f[B]F\f[], |
| 1295 |
#. \f[B]g\f[], \f[B]G\f[], \f[B]i\f[], \f[B]n\f[], \f[B]o\f[], \f[B]p\f[], |
| 1296 |
#. \f[B]s\f[], \f[B]u\f[], \f[B]x\f[], and \f[B]X\f[], |
| 1297 |
#. where \f[B]F\f[] is a synonym for \f[B]f\f[]. |
| 1298 |
#. Additionally, it accepts \f[B]D\f[], \f[B]O\f[], and \f[B]U\f[] as synonyms |
| 1299 |
#. for \f[B]ld\f[], \f[B]lo\f[], and \f[B]lu\f[]. |
| 1300 |
#. (This is bad, and caused serious bugs later, when |
| 1301 |
#. support for \f[B]%D\f[] disappeared.) |
| 1302 |
#. No locale-dependent radix character, |
| 1303 |
#. no thousands' separator, no NaN or infinity, no "%m$" and "*m$". |
| 1304 |
#. .P |
| 1305 |
#. Linux libc5 knows about the five C standard flags and the \[aq] flag, |
| 1306 |
#. locale, "%m$" and "*m$". |
| 1307 |
#. It knows about the length modifiers \f[B]h\f[], \f[B]l\f[], \f[B]L\f[], |
| 1308 |
#. \f[B]Z\f[], and \f[B]q\f[], but accepts \f[B]L\f[] and \f[B]q\f[] |
| 1309 |
#. both for \f[I]long double\f[] and for \f[I]long long\f[] (this is a bug). |
| 1310 |
#. It no longer recognizes \f[B]F\f[], \f[B]D\f[], \f[B]O\f[], and \f[B]U\f[], |
| 1311 |
#. but adds the conversion character |
| 1312 |
#. .BR m , |
| 1313 |
#. which outputs |
| 1314 |
#. .IR strerror(errno) . |
| 1315 |
#. .P |
| 1316 |
#. glibc 2.0 adds conversion characters \f[B]C\f[] and \f[B]S\f[]. |
| 1317 |
#. .P |
| 1318 |
#. type: Plain text |
| 1319 |
#. #-#-#-#-# fedora-44: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1320 |
#. Linux libc4 knows about the five C standard flags. |
| 1321 |
#. It knows about the length modifiers \fBh\fP, \fBl\fP, \fBL\fP, |
| 1322 |
#. and the conversions |
| 1323 |
#. \fBc\fP, \fBd\fP, \fBe\fP, \fBE\fP, \fBf\fP, \fBF\fP, |
| 1324 |
#. \fBg\fP, \fBG\fP, \fBi\fP, \fBn\fP, \fBo\fP, \fBp\fP, |
| 1325 |
#. \fBs\fP, \fBu\fP, \fBx\fP, and \fBX\fP, |
| 1326 |
#. where \fBF\fP is a synonym for \fBf\fP. |
| 1327 |
#. Additionally, it accepts \fBD\fP, \fBO\fP, and \fBU\fP as synonyms |
| 1328 |
#. for \fBld\fP, \fBlo\fP, and \fBlu\fP. |
| 1329 |
#. (This is bad, and caused serious bugs later, when |
| 1330 |
#. support for \fB%D\fP disappeared.) |
| 1331 |
#. No locale-dependent radix character, |
| 1332 |
#. no thousands' separator, no NaN or infinity, no "%m$" and "*m$". |
| 1333 |
#. .P |
| 1334 |
#. Linux libc5 knows about the five C standard flags and the \[aq] flag, |
| 1335 |
#. locale, "%m$" and "*m$". |
| 1336 |
#. It knows about the length modifiers \fBh\fP, \fBl\fP, \fBL\fP, |
| 1337 |
#. \fBZ\fP, and \fBq\fP, but accepts \fBL\fP and \fBq\fP |
| 1338 |
#. both for \fIlong double\fP and for \fIlong long\fP (this is a bug). |
| 1339 |
#. It no longer recognizes \fBF\fP, \fBD\fP, \fBO\fP, and \fBU\fP, |
| 1340 |
#. but adds the conversion character |
| 1341 |
#. .BR m , |
| 1342 |
#. which outputs |
| 1343 |
#. .IR strerror(errno) . |
| 1344 |
#. .P |
| 1345 |
#. glibc 2.0 adds conversion characters \fBC\fP and \fBS\fP. |
| 1346 |
#. .P |
| 1347 |
#. type: Plain text |
| 1348 |
#. #-#-#-#-# fedora-rawhide: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1349 |
#. Linux libc4 knows about the five C standard flags. |
| 1350 |
#. It knows about the length modifiers \fBh\fP, \fBl\fP, \fBL\fP, |
| 1351 |
#. and the conversions |
| 1352 |
#. \fBc\fP, \fBd\fP, \fBe\fP, \fBE\fP, \fBf\fP, \fBF\fP, |
| 1353 |
#. \fBg\fP, \fBG\fP, \fBi\fP, \fBn\fP, \fBo\fP, \fBp\fP, |
| 1354 |
#. \fBs\fP, \fBu\fP, \fBx\fP, and \fBX\fP, |
| 1355 |
#. where \fBF\fP is a synonym for \fBf\fP. |
| 1356 |
#. Additionally, it accepts \fBD\fP, \fBO\fP, and \fBU\fP as synonyms |
| 1357 |
#. for \fBld\fP, \fBlo\fP, and \fBlu\fP. |
| 1358 |
#. (This is bad, and caused serious bugs later, when |
| 1359 |
#. support for \fB%D\fP disappeared.) |
| 1360 |
#. No locale-dependent radix character, |
| 1361 |
#. no thousands' separator, no NaN or infinity, no "%m$" and "*m$". |
| 1362 |
#. .P |
| 1363 |
#. Linux libc5 knows about the five C standard flags and the \[aq] flag, |
| 1364 |
#. locale, "%m$" and "*m$". |
| 1365 |
#. It knows about the length modifiers \fBh\fP, \fBl\fP, \fBL\fP, |
| 1366 |
#. \fBZ\fP, and \fBq\fP, but accepts \fBL\fP and \fBq\fP |
| 1367 |
#. both for \fIlong double\fP and for \fIlong long\fP (this is a bug). |
| 1368 |
#. It no longer recognizes \fBF\fP, \fBD\fP, \fBO\fP, and \fBU\fP, |
| 1369 |
#. but adds the conversion character |
| 1370 |
#. .BR m , |
| 1371 |
#. which outputs |
| 1372 |
#. .IR strerror(errno) . |
| 1373 |
#. .P |
| 1374 |
#. glibc 2.0 adds conversion characters \fBC\fP and \fBS\fP. |
| 1375 |
#. .P |
| 1376 |
#. type: Plain text |
| 1377 |
#. #-#-#-#-# mageia-cauldron: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1378 |
#. Linux libc4 knows about the five C standard flags. |
| 1379 |
#. It knows about the length modifiers \f[B]h\f[], \f[B]l\f[], \f[B]L\f[], |
| 1380 |
#. and the conversions |
| 1381 |
#. \f[B]c\f[], \f[B]d\f[], \f[B]e\f[], \f[B]E\f[], \f[B]f\f[], \f[B]F\f[], |
| 1382 |
#. \f[B]g\f[], \f[B]G\f[], \f[B]i\f[], \f[B]n\f[], \f[B]o\f[], \f[B]p\f[], |
| 1383 |
#. \f[B]s\f[], \f[B]u\f[], \f[B]x\f[], and \f[B]X\f[], |
| 1384 |
#. where \f[B]F\f[] is a synonym for \f[B]f\f[]. |
| 1385 |
#. Additionally, it accepts \f[B]D\f[], \f[B]O\f[], and \f[B]U\f[] as synonyms |
| 1386 |
#. for \f[B]ld\f[], \f[B]lo\f[], and \f[B]lu\f[]. |
| 1387 |
#. (This is bad, and caused serious bugs later, when |
| 1388 |
#. support for \f[B]%D\f[] disappeared.) |
| 1389 |
#. No locale-dependent radix character, |
| 1390 |
#. no thousands' separator, no NaN or infinity, no "%m$" and "*m$". |
| 1391 |
#. .P |
| 1392 |
#. Linux libc5 knows about the five C standard flags and the \[aq] flag, |
| 1393 |
#. locale, "%m$" and "*m$". |
| 1394 |
#. It knows about the length modifiers \f[B]h\f[], \f[B]l\f[], \f[B]L\f[], |
| 1395 |
#. \f[B]Z\f[], and \f[B]q\f[], but accepts \f[B]L\f[] and \f[B]q\f[] |
| 1396 |
#. both for \f[I]long double\f[] and for \f[I]long long\f[] (this is a bug). |
| 1397 |
#. It no longer recognizes \f[B]F\f[], \f[B]D\f[], \f[B]O\f[], and \f[B]U\f[], |
| 1398 |
#. but adds the conversion character |
| 1399 |
#. .BR m , |
| 1400 |
#. which outputs |
| 1401 |
#. .IR strerror(errno) . |
| 1402 |
#. .P |
| 1403 |
#. glibc 2.0 adds conversion characters \f[B]C\f[] and \f[B]S\f[]. |
| 1404 |
#. .P |
| 1405 |
#. type: Plain text |
| 1406 |
#. #-#-#-#-# opensuse-leap-16-1: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1407 |
#. Linux libc4 knows about the five C standard flags. |
| 1408 |
#. It knows about the length modifiers \f[B]h\f[], \f[B]l\f[], \f[B]L\f[], |
| 1409 |
#. and the conversions |
| 1410 |
#. \f[B]c\f[], \f[B]d\f[], \f[B]e\f[], \f[B]E\f[], \f[B]f\f[], \f[B]F\f[], |
| 1411 |
#. \f[B]g\f[], \f[B]G\f[], \f[B]i\f[], \f[B]n\f[], \f[B]o\f[], \f[B]p\f[], |
| 1412 |
#. \f[B]s\f[], \f[B]u\f[], \f[B]x\f[], and \f[B]X\f[], |
| 1413 |
#. where \f[B]F\f[] is a synonym for \f[B]f\f[]. |
| 1414 |
#. Additionally, it accepts \f[B]D\f[], \f[B]O\f[], and \f[B]U\f[] as synonyms |
| 1415 |
#. for \f[B]ld\f[], \f[B]lo\f[], and \f[B]lu\f[]. |
| 1416 |
#. (This is bad, and caused serious bugs later, when |
| 1417 |
#. support for \f[B]%D\f[] disappeared.) |
| 1418 |
#. No locale-dependent radix character, |
| 1419 |
#. no thousands' separator, no NaN or infinity, no "%m$" and "*m$". |
| 1420 |
#. .P |
| 1421 |
#. Linux libc5 knows about the five C standard flags and the \[aq] flag, |
| 1422 |
#. locale, "%m$" and "*m$". |
| 1423 |
#. It knows about the length modifiers \f[B]h\f[], \f[B]l\f[], \f[B]L\f[], |
| 1424 |
#. \f[B]Z\f[], and \f[B]q\f[], but accepts \f[B]L\f[] and \f[B]q\f[] |
| 1425 |
#. both for \f[I]long double\f[] and for \f[I]long long\f[] (this is a bug). |
| 1426 |
#. It no longer recognizes \f[B]F\f[], \f[B]D\f[], \f[B]O\f[], and \f[B]U\f[], |
| 1427 |
#. but adds the conversion character |
| 1428 |
#. .BR m , |
| 1429 |
#. which outputs |
| 1430 |
#. .IR strerror(errno) . |
| 1431 |
#. .P |
| 1432 |
#. glibc 2.0 adds conversion characters \f[B]C\f[] and \f[B]S\f[]. |
| 1433 |
#. .P |
| 1434 |
#. type: Plain text |
| 1435 |
#. #-#-#-#-# opensuse-tumbleweed: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1436 |
#. Linux libc4 knows about the five C standard flags. |
| 1437 |
#. It knows about the length modifiers \f[B]h\f[], \f[B]l\f[], \f[B]L\f[], |
| 1438 |
#. and the conversions |
| 1439 |
#. \f[B]c\f[], \f[B]d\f[], \f[B]e\f[], \f[B]E\f[], \f[B]f\f[], \f[B]F\f[], |
| 1440 |
#. \f[B]g\f[], \f[B]G\f[], \f[B]i\f[], \f[B]n\f[], \f[B]o\f[], \f[B]p\f[], |
| 1441 |
#. \f[B]s\f[], \f[B]u\f[], \f[B]x\f[], and \f[B]X\f[], |
| 1442 |
#. where \f[B]F\f[] is a synonym for \f[B]f\f[]. |
| 1443 |
#. Additionally, it accepts \f[B]D\f[], \f[B]O\f[], and \f[B]U\f[] as synonyms |
| 1444 |
#. for \f[B]ld\f[], \f[B]lo\f[], and \f[B]lu\f[]. |
| 1445 |
#. (This is bad, and caused serious bugs later, when |
| 1446 |
#. support for \f[B]%D\f[] disappeared.) |
| 1447 |
#. No locale-dependent radix character, |
| 1448 |
#. no thousands' separator, no NaN or infinity, no "%m$" and "*m$". |
| 1449 |
#. .P |
| 1450 |
#. Linux libc5 knows about the five C standard flags and the \[aq] flag, |
| 1451 |
#. locale, "%m$" and "*m$". |
| 1452 |
#. It knows about the length modifiers \f[B]h\f[], \f[B]l\f[], \f[B]L\f[], |
| 1453 |
#. \f[B]Z\f[], and \f[B]q\f[], but accepts \f[B]L\f[] and \f[B]q\f[] |
| 1454 |
#. both for \f[I]long double\f[] and for \f[I]long long\f[] (this is a bug). |
| 1455 |
#. It no longer recognizes \f[B]F\f[], \f[B]D\f[], \f[B]O\f[], and \f[B]U\f[], |
| 1456 |
#. but adds the conversion character |
| 1457 |
#. .BR m , |
| 1458 |
#. which outputs |
| 1459 |
#. .IR strerror(errno) . |
| 1460 |
#. .P |
| 1461 |
#. glibc 2.0 adds conversion characters \f[B]C\f[] and \f[B]S\f[]. |
| 1462 |
#. .P |
| 1463 |
#. type: Plain text |
| 1464 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1465 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1466 |
msgid "" |
| 1467 |
"glibc 2.1 adds length modifiers B<hh>, B<j>, B<t>, and B<z> and conversion " |
| 1468 |
"characters B<a> and B<A>." |
| 1469 |
msgstr "" |
| 1470 |
|
| 1471 |
#. type: Plain text |
| 1472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1473 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1474 |
msgid "" |
| 1475 |
"glibc 2.2 adds the conversion character B<F> with C99 semantics, and the " |
| 1476 |
"flag character B<I>." |
| 1477 |
msgstr "" |
| 1478 |
|
| 1479 |
#. #-#-#-#-# archlinux: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1480 |
#. .SH HISTORY |
| 1481 |
#. UNIX V7 defines the three routines |
| 1482 |
#. .BR printf (), |
| 1483 |
#. .BR fprintf (), |
| 1484 |
#. .BR sprintf (), |
| 1485 |
#. and has the flag \-, the width or precision *, the length modifier l, |
| 1486 |
#. and the conversions doxfegcsu, and also D,O,U,X as synonyms for ld,lo,lu,lx. |
| 1487 |
#. This is still true for 2.9.1BSD, but 2.10BSD has the flags |
| 1488 |
#. #, + and <space> and no longer mentions D,O,U,X. |
| 1489 |
#. 2.11BSD has |
| 1490 |
#. .BR vprintf (), |
| 1491 |
#. .BR vfprintf (), |
| 1492 |
#. .BR vsprintf (), |
| 1493 |
#. and warns not to use D,O,U,X. |
| 1494 |
#. 4.3BSD Reno has the flag 0, the length modifiers h and L, |
| 1495 |
#. and the conversions n, p, E, G, X (with current meaning) |
| 1496 |
#. and deprecates D,O,U. |
| 1497 |
#. 4.4BSD introduces the functions |
| 1498 |
#. .BR snprintf () |
| 1499 |
#. and |
| 1500 |
#. .BR vsnprintf (), |
| 1501 |
#. and the length modifier q. |
| 1502 |
#. FreeBSD also has functions |
| 1503 |
#. .BR asprintf () |
| 1504 |
#. and |
| 1505 |
#. .BR vasprintf (), |
| 1506 |
#. that allocate a buffer large enough for |
| 1507 |
#. .BR sprintf (). |
| 1508 |
#. In glibc there are functions |
| 1509 |
#. .BR dprintf () |
| 1510 |
#. and |
| 1511 |
#. .BR vdprintf () |
| 1512 |
#. that print to a file descriptor instead of a stream. |
| 1513 |
#. type: Plain text |
| 1514 |
#. #-#-#-#-# debian-trixie: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1515 |
#. type: Plain text |
| 1516 |
#. #-#-#-#-# debian-unstable: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1517 |
#. .SH HISTORY |
| 1518 |
#. UNIX V7 defines the three routines |
| 1519 |
#. .BR printf (), |
| 1520 |
#. .BR fprintf (), |
| 1521 |
#. .BR sprintf (), |
| 1522 |
#. and has the flag \-, the width or precision *, the length modifier l, |
| 1523 |
#. and the conversions doxfegcsu, and also D,O,U,X as synonyms for ld,lo,lu,lx. |
| 1524 |
#. This is still true for 2.9.1BSD, but 2.10BSD has the flags |
| 1525 |
#. #, + and <space> and no longer mentions D,O,U,X. |
| 1526 |
#. 2.11BSD has |
| 1527 |
#. .BR vprintf (), |
| 1528 |
#. .BR vfprintf (), |
| 1529 |
#. .BR vsprintf (), |
| 1530 |
#. and warns not to use D,O,U,X. |
| 1531 |
#. 4.3BSD Reno has the flag 0, the length modifiers h and L, |
| 1532 |
#. and the conversions n, p, E, G, X (with current meaning) |
| 1533 |
#. and deprecates D,O,U. |
| 1534 |
#. 4.4BSD introduces the functions |
| 1535 |
#. .BR snprintf () |
| 1536 |
#. and |
| 1537 |
#. .BR vsnprintf (), |
| 1538 |
#. and the length modifier q. |
| 1539 |
#. FreeBSD also has functions |
| 1540 |
#. .BR asprintf () |
| 1541 |
#. and |
| 1542 |
#. .BR vasprintf (), |
| 1543 |
#. that allocate a buffer large enough for |
| 1544 |
#. .BR sprintf (). |
| 1545 |
#. In glibc there are functions |
| 1546 |
#. .BR dprintf () |
| 1547 |
#. and |
| 1548 |
#. .BR vdprintf () |
| 1549 |
#. that print to a file descriptor instead of a stream. |
| 1550 |
#. type: Plain text |
| 1551 |
#. #-#-#-#-# fedora-44: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1552 |
#. type: Plain text |
| 1553 |
#. #-#-#-#-# fedora-rawhide: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1554 |
#. type: Plain text |
| 1555 |
#. #-#-#-#-# mageia-cauldron: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1556 |
#. .SH HISTORY |
| 1557 |
#. UNIX V7 defines the three routines |
| 1558 |
#. .BR printf (), |
| 1559 |
#. .BR fprintf (), |
| 1560 |
#. .BR sprintf (), |
| 1561 |
#. and has the flag \-, the width or precision *, the length modifier l, |
| 1562 |
#. and the conversions doxfegcsu, and also D,O,U,X as synonyms for ld,lo,lu,lx. |
| 1563 |
#. This is still true for 2.9.1BSD, but 2.10BSD has the flags |
| 1564 |
#. #, + and <space> and no longer mentions D,O,U,X. |
| 1565 |
#. 2.11BSD has |
| 1566 |
#. .BR vprintf (), |
| 1567 |
#. .BR vfprintf (), |
| 1568 |
#. .BR vsprintf (), |
| 1569 |
#. and warns not to use D,O,U,X. |
| 1570 |
#. 4.3BSD Reno has the flag 0, the length modifiers h and L, |
| 1571 |
#. and the conversions n, p, E, G, X (with current meaning) |
| 1572 |
#. and deprecates D,O,U. |
| 1573 |
#. 4.4BSD introduces the functions |
| 1574 |
#. .BR snprintf () |
| 1575 |
#. and |
| 1576 |
#. .BR vsnprintf (), |
| 1577 |
#. and the length modifier q. |
| 1578 |
#. FreeBSD also has functions |
| 1579 |
#. .BR asprintf () |
| 1580 |
#. and |
| 1581 |
#. .BR vasprintf (), |
| 1582 |
#. that allocate a buffer large enough for |
| 1583 |
#. .BR sprintf (). |
| 1584 |
#. In glibc there are functions |
| 1585 |
#. .BR dprintf () |
| 1586 |
#. and |
| 1587 |
#. .BR vdprintf () |
| 1588 |
#. that print to a file descriptor instead of a stream. |
| 1589 |
#. type: Plain text |
| 1590 |
#. #-#-#-#-# opensuse-leap-16-1: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1591 |
#. .SH HISTORY |
| 1592 |
#. UNIX V7 defines the three routines |
| 1593 |
#. .BR printf (), |
| 1594 |
#. .BR fprintf (), |
| 1595 |
#. .BR sprintf (), |
| 1596 |
#. and has the flag \-, the width or precision *, the length modifier l, |
| 1597 |
#. and the conversions doxfegcsu, and also D,O,U,X as synonyms for ld,lo,lu,lx. |
| 1598 |
#. This is still true for 2.9.1BSD, but 2.10BSD has the flags |
| 1599 |
#. #, + and <space> and no longer mentions D,O,U,X. |
| 1600 |
#. 2.11BSD has |
| 1601 |
#. .BR vprintf (), |
| 1602 |
#. .BR vfprintf (), |
| 1603 |
#. .BR vsprintf (), |
| 1604 |
#. and warns not to use D,O,U,X. |
| 1605 |
#. 4.3BSD Reno has the flag 0, the length modifiers h and L, |
| 1606 |
#. and the conversions n, p, E, G, X (with current meaning) |
| 1607 |
#. and deprecates D,O,U. |
| 1608 |
#. 4.4BSD introduces the functions |
| 1609 |
#. .BR snprintf () |
| 1610 |
#. and |
| 1611 |
#. .BR vsnprintf (), |
| 1612 |
#. and the length modifier q. |
| 1613 |
#. FreeBSD also has functions |
| 1614 |
#. .BR asprintf () |
| 1615 |
#. and |
| 1616 |
#. .BR vasprintf (), |
| 1617 |
#. that allocate a buffer large enough for |
| 1618 |
#. .BR sprintf (). |
| 1619 |
#. In glibc there are functions |
| 1620 |
#. .BR dprintf () |
| 1621 |
#. and |
| 1622 |
#. .BR vdprintf () |
| 1623 |
#. that print to a file descriptor instead of a stream. |
| 1624 |
#. type: Plain text |
| 1625 |
#. #-#-#-#-# opensuse-tumbleweed: printf.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 1626 |
#. .SH HISTORY |
| 1627 |
#. UNIX V7 defines the three routines |
| 1628 |
#. .BR printf (), |
| 1629 |
#. .BR fprintf (), |
| 1630 |
#. .BR sprintf (), |
| 1631 |
#. and has the flag \-, the width or precision *, the length modifier l, |
| 1632 |
#. and the conversions doxfegcsu, and also D,O,U,X as synonyms for ld,lo,lu,lx. |
| 1633 |
#. This is still true for 2.9.1BSD, but 2.10BSD has the flags |
| 1634 |
#. #, + and <space> and no longer mentions D,O,U,X. |
| 1635 |
#. 2.11BSD has |
| 1636 |
#. .BR vprintf (), |
| 1637 |
#. .BR vfprintf (), |
| 1638 |
#. .BR vsprintf (), |
| 1639 |
#. and warns not to use D,O,U,X. |
| 1640 |
#. 4.3BSD Reno has the flag 0, the length modifiers h and L, |
| 1641 |
#. and the conversions n, p, E, G, X (with current meaning) |
| 1642 |
#. and deprecates D,O,U. |
| 1643 |
#. 4.4BSD introduces the functions |
| 1644 |
#. .BR snprintf () |
| 1645 |
#. and |
| 1646 |
#. .BR vsnprintf (), |
| 1647 |
#. and the length modifier q. |
| 1648 |
#. FreeBSD also has functions |
| 1649 |
#. .BR asprintf () |
| 1650 |
#. and |
| 1651 |
#. .BR vasprintf (), |
| 1652 |
#. that allocate a buffer large enough for |
| 1653 |
#. .BR sprintf (). |
| 1654 |
#. In glibc there are functions |
| 1655 |
#. .BR dprintf () |
| 1656 |
#. and |
| 1657 |
#. .BR vdprintf () |
| 1658 |
#. that print to a file descriptor instead of a stream. |
| 1659 |
#. type: Plain text |
| 1660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1662 |
msgid "" |
| 1663 |
"glibc 2.35 gives a meaning to the alternate form (B<#>) of the B<m> " |
| 1664 |
"conversion specifier, that is I<%#m>." |
| 1665 |
msgstr "" |
| 1666 |
|
| 1667 |
#. type: SH |
| 1668 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1669 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1670 |
#, no-wrap |
| 1671 |
msgid "BUGS" |
| 1672 |
msgstr "" |
| 1673 |
|
| 1674 |
#. .P |
| 1675 |
#. Some floating-point conversions under early libc4 |
| 1676 |
#. caused memory leaks. |
| 1677 |
#. type: Plain text |
| 1678 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1679 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1680 |
msgid "" |
| 1681 |
"Code such as B<printf(>I<foo>B<);> often indicates a bug, since I<foo> may " |
| 1682 |
"contain a % character. If I<foo> comes from untrusted user input, it may " |
| 1683 |
"contain B<%n>, causing the B<printf>() call to write to memory and creating " |
| 1684 |
"a security hole." |
| 1685 |
msgstr "" |
| 1686 |
|
| 1687 |
#. type: SH |
| 1688 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1689 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1690 |
#, no-wrap |
| 1691 |
msgid "EXAMPLES" |
| 1692 |
msgstr "" |
| 1693 |
|
| 1694 |
#. type: Plain text |
| 1695 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1696 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1697 |
msgid "To print I<Pi> to five decimal places:" |
| 1698 |
msgstr "" |
| 1699 |
|
| 1700 |
#. type: Plain text |
| 1701 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1702 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1703 |
#, no-wrap |
| 1704 |
msgid "" |
| 1705 |
"#include E<lt>math.hE<gt>\n" |
| 1706 |
"#include E<lt>stdio.hE<gt>\n" |
| 1707 |
"fprintf(stdout, \"pi = %.5f\\[rs]n\", 4 * atan(1.0));\n" |
| 1708 |
msgstr "" |
| 1709 |
|
| 1710 |
#. type: Plain text |
| 1711 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1712 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1713 |
msgid "" |
| 1714 |
"To print a date and time in the form \"Sunday, July 3, 10:02\", where " |
| 1715 |
"I<weekday> and I<month> are pointers to strings:" |
| 1716 |
msgstr "" |
| 1717 |
|
| 1718 |
#. type: Plain text |
| 1719 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1720 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1721 |
#, no-wrap |
| 1722 |
msgid "" |
| 1723 |
"#include E<lt>stdio.hE<gt>\n" |
| 1724 |
"fprintf(stdout, \"%s, %s %d, %.2d:%.2d\\[rs]n\",\n" |
| 1725 |
" weekday, month, day, hour, min);\n" |
| 1726 |
msgstr "" |
| 1727 |
|
| 1728 |
#. type: Plain text |
| 1729 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1730 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1731 |
msgid "" |
| 1732 |
"Many countries use the day-month-year order. Hence, an internationalized " |
| 1733 |
"version must be able to print the arguments in an order specified by the " |
| 1734 |
"format:" |
| 1735 |
msgstr "" |
| 1736 |
|
| 1737 |
#. type: Plain text |
| 1738 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1739 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1740 |
#, no-wrap |
| 1741 |
msgid "" |
| 1742 |
"#include E<lt>stdio.hE<gt>\n" |
| 1743 |
"fprintf(stdout, format,\n" |
| 1744 |
" weekday, month, day, hour, min);\n" |
| 1745 |
msgstr "" |
| 1746 |
|
| 1747 |
#. type: Plain text |
| 1748 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1749 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1750 |
msgid "" |
| 1751 |
"where I<format> depends on locale, and may permute the arguments. With the " |
| 1752 |
"value:" |
| 1753 |
msgstr "" |
| 1754 |
|
| 1755 |
#. type: Plain text |
| 1756 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1757 |
#: opensuse-tumbleweed |
| 1758 |
#, no-wrap |
| 1759 |
msgid "\"%1$s, %3$d.\\& %2$s, %4$d:%5$.2d\\[rs]n\"\n" |
| 1760 |
msgstr "" |
| 1761 |
|
| 1762 |
#. type: Plain text |
| 1763 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1764 |
#: opensuse-tumbleweed |
| 1765 |
msgid "one might obtain \"Sonntag, 3.\\& Juli, 10:02\"." |
| 1766 |
msgstr "" |
| 1767 |
|
| 1768 |
#. type: SH |
| 1769 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1770 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1771 |
#, no-wrap |
| 1772 |
msgid "SEE ALSO" |
| 1773 |
msgstr "" |
| 1774 |
|
| 1775 |
#. type: Plain text |
| 1776 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1777 |
#: opensuse-tumbleweed |
| 1778 |
msgid "" |
| 1779 |
"B<printf>(1), B<asprintf>(3), B<puts>(3), B<scanf>(3), B<setlocale>(3), " |
| 1780 |
"B<snprintf>(3), B<strfromd>(3), B<wcrtomb>(3), B<wprintf>(3), B<locale>(5)" |
| 1781 |
msgstr "" |
| 1782 |
|
| 1783 |
#. type: TH |
| 1784 |
#: debian-trixie |
| 1785 |
#, no-wrap |
| 1786 |
msgid "2024-06-15" |
| 1787 |
msgstr "" |
| 1788 |
|
| 1789 |
#. type: TH |
| 1790 |
#: debian-trixie |
| 1791 |
#, no-wrap |
| 1792 |
msgid "Linux man-pages 6.9.1" |
| 1793 |
msgstr "" |
| 1794 |
|
| 1795 |
#. type: Plain text |
| 1796 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1797 |
msgid "" |
| 1798 |
"printf, fprintf, dprintf, sprintf, snprintf, vprintf, vfprintf, vdprintf, " |
| 1799 |
"vsprintf, vsnprintf - formatted output conversion" |
| 1800 |
msgstr "" |
| 1801 |
|
| 1802 |
#. type: Plain text |
| 1803 |
#: debian-trixie |
| 1804 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1805 |
msgstr "" |
| 1806 |
|
| 1807 |
#. type: Plain text |
| 1808 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1809 |
#, no-wrap |
| 1810 |
msgid "" |
| 1811 |
"B<int printf(const char *restrict >I<format>B<, ...);>\n" |
| 1812 |
"B<int fprintf(FILE *restrict >I<stream>B<,>\n" |
| 1813 |
"B< const char *restrict >I<format>B<, ...);>\n" |
| 1814 |
"B<int dprintf(int >I<fd>B<,>\n" |
| 1815 |
"B< const char *restrict >I<format>B<, ...);>\n" |
| 1816 |
"B<int sprintf(char *restrict >I<str>B<,>\n" |
| 1817 |
"B< const char *restrict >I<format>B<, ...);>\n" |
| 1818 |
"B<int snprintf(char >I<str>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 1819 |
"B< const char *restrict >I<format>B<, ...);>\n" |
| 1820 |
msgstr "" |
| 1821 |
|
| 1822 |
#. type: Plain text |
| 1823 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1824 |
#, no-wrap |
| 1825 |
msgid "" |
| 1826 |
"B<int vprintf(const char *restrict >I<format>B<, va_list >I<ap>B<);>\n" |
| 1827 |
"B<int vfprintf(FILE *restrict >I<stream>B<,>\n" |
| 1828 |
"B< const char *restrict >I<format>B<, va_list >I<ap>B<);>\n" |
| 1829 |
"B<int vdprintf(int >I<fd>B<,>\n" |
| 1830 |
"B< const char *restrict >I<format>B<, va_list >I<ap>B<);>\n" |
| 1831 |
"B<int vsprintf(char *restrict >I<str>B<,>\n" |
| 1832 |
"B< const char *restrict >I<format>B<, va_list >I<ap>B<);>\n" |
| 1833 |
"B<int vsnprintf(char >I<str>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 1834 |
"B< const char *restrict >I<format>B<, va_list >I<ap>B<);>\n" |
| 1835 |
msgstr "" |
| 1836 |
|
| 1837 |
#. type: Plain text |
| 1838 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1839 |
msgid "B<snprintf>(), B<vsnprintf>():" |
| 1840 |
msgstr "" |
| 1841 |
|
| 1842 |
#. type: Plain text |
| 1843 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1844 |
#, no-wrap |
| 1845 |
msgid "" |
| 1846 |
" _XOPEN_SOURCE E<gt>= 500 || _ISOC99_SOURCE\n" |
| 1847 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n" |
| 1848 |
msgstr "" |
| 1849 |
|
| 1850 |
#. type: Plain text |
| 1851 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1852 |
msgid "" |
| 1853 |
"The functions in the B<printf>() family produce output according to a " |
| 1854 |
"I<format> as described below. The functions B<printf>() and B<vprintf>() " |
| 1855 |
"write output to I<stdout>, the standard output stream; B<fprintf>() and " |
| 1856 |
"B<vfprintf>() write output to the given output I<stream>; B<sprintf>(), " |
| 1857 |
"B<snprintf>(), B<vsprintf>(), and B<vsnprintf>() write to the character " |
| 1858 |
"string I<str>." |
| 1859 |
msgstr "" |
| 1860 |
|
| 1861 |
#. type: Plain text |
| 1862 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1863 |
msgid "" |
| 1864 |
"The functions B<snprintf>() and B<vsnprintf>() write at most I<size> bytes " |
| 1865 |
"(including the terminating null byte (\\[aq]\\[rs]0\\[aq])) to I<str>." |
| 1866 |
msgstr "" |
| 1867 |
|
| 1868 |
#. type: Plain text |
| 1869 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1870 |
msgid "" |
| 1871 |
"The functions B<vprintf>(), B<vfprintf>(), B<vdprintf>(), B<vsprintf>(), " |
| 1872 |
"B<vsnprintf>() are equivalent to the functions B<printf>(), B<fprintf>(), " |
| 1873 |
"B<dprintf>(), B<sprintf>(), B<snprintf>(), respectively, except that they " |
| 1874 |
"are called with a I<va_list> instead of a variable number of arguments. " |
| 1875 |
"These functions do not call the I<va_end> macro. Because they invoke the " |
| 1876 |
"I<va_arg> macro, the value of I<ap> is undefined after the call. See " |
| 1877 |
"B<stdarg>(3)." |
| 1878 |
msgstr "" |
| 1879 |
|
| 1880 |
#. type: Plain text |
| 1881 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1882 |
msgid "" |
| 1883 |
"C99 and POSIX.1-2001 specify that the results are undefined if a call to " |
| 1884 |
"B<sprintf>(), B<snprintf>(), B<vsprintf>(), or B<vsnprintf>() would cause " |
| 1885 |
"copying to take place between objects that overlap (e.g., if the target " |
| 1886 |
"string array and one of the supplied input arguments refer to the same " |
| 1887 |
"buffer). See CAVEATS." |
| 1888 |
msgstr "" |
| 1889 |
|
| 1890 |
#. type: Plain text |
| 1891 |
#: debian-trixie |
| 1892 |
#, no-wrap |
| 1893 |
msgid "%[$][flags][width][.precision][length modifier]conversion\n" |
| 1894 |
msgstr "" |
| 1895 |
|
| 1896 |
#. type: Plain text |
| 1897 |
#: debian-trixie |
| 1898 |
msgid "" |
| 1899 |
"The five flag characters above are defined in the C99 standard. The Single " |
| 1900 |
"UNIX Specification specifies one further flag character." |
| 1901 |
msgstr "" |
| 1902 |
|
| 1903 |
#. type: Plain text |
| 1904 |
#: debian-trixie |
| 1905 |
msgid "" |
| 1906 |
"For decimal conversion (B<i>, B<d>, B<u>, B<f>, B<F>, B<g>, B<G>) the " |
| 1907 |
"output is to be grouped with thousands' grouping characters if the locale " |
| 1908 |
"information indicates any. (See B<setlocale>(3).) Note that many versions " |
| 1909 |
"of B<gcc>(1) cannot parse this option and will issue a warning. (SUSv2 did " |
| 1910 |
"not include I<%\\[aq]F>, but SUSv3 added it.) Note also that the default " |
| 1911 |
"locale of a C program is \"C\" whose locale information indicates no " |
| 1912 |
"thousands' grouping character. Therefore, without a prior call to " |
| 1913 |
"B<setlocale>(3), no thousands' grouping characters will be printed." |
| 1914 |
msgstr "" |
| 1915 |
|
| 1916 |
#. type: Plain text |
| 1917 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1918 |
msgid "" |
| 1919 |
"An optional decimal digit string (with nonzero first digit) specifying a " |
| 1920 |
"minimum field width. If the converted value has fewer characters than the " |
| 1921 |
"field width, it will be padded with spaces on the left (or right, if the " |
| 1922 |
"left-adjustment flag has been given). Instead of a decimal digit string one " |
| 1923 |
"may write \"*\" or \"*m$\" (for some decimal integer I<m>) to specify that " |
| 1924 |
"the field width is given in the next argument, or in the I<m>-th argument, " |
| 1925 |
"respectively, which must be of type I<int>. A negative field width is taken " |
| 1926 |
"as a \\[aq]-\\[aq] flag followed by a positive field width. In no case does " |
| 1927 |
"a nonexistent or small field width cause truncation of a field; if the " |
| 1928 |
"result of a conversion is wider than the field width, the field is expanded " |
| 1929 |
"to contain the conversion result." |
| 1930 |
msgstr "" |
| 1931 |
|
| 1932 |
#. type: Plain text |
| 1933 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1934 |
msgid "" |
| 1935 |
"An optional precision, in the form of a period (\\[aq].\\[aq]) followed by " |
| 1936 |
"an optional decimal digit string. Instead of a decimal digit string one may " |
| 1937 |
"write \"*\" or \"*m$\" (for some decimal integer I<m>) to specify that the " |
| 1938 |
"precision is given in the next argument, or in the I<m>-th argument, " |
| 1939 |
"respectively, which must be of type I<int>. If the precision is given as " |
| 1940 |
"just \\[aq].\\[aq], the precision is taken to be zero. A negative precision " |
| 1941 |
"is taken as if the precision were omitted. This gives the minimum number of " |
| 1942 |
"digits to appear for B<d>, B<i>, B<o>, B<u>, B<x>, and B<X> conversions, the " |
| 1943 |
"number of digits to appear after the radix character for B<a>, B<A>, B<e>, " |
| 1944 |
"B<E>, B<f>, and B<F> conversions, the maximum number of significant digits " |
| 1945 |
"for B<g> and B<G> conversions, or the maximum number of characters to be " |
| 1946 |
"printed from a string for B<s> and B<S> conversions." |
| 1947 |
msgstr "" |
| 1948 |
|
| 1949 |
#. type: Plain text |
| 1950 |
#: debian-trixie |
| 1951 |
msgid "" |
| 1952 |
"(C99; not in SUSv2, but added in SUSv3) For B<a> conversion, the I<double> " |
| 1953 |
"argument is converted to hexadecimal notation (using the letters abcdef) in " |
| 1954 |
"the style [-]B<0x>hB<\\&.>hhhhB<p>\\(+-d; for B<A> conversion the prefix " |
| 1955 |
"B<0X>, the letters ABCDEF, and the exponent separator B<P> is used. There " |
| 1956 |
"is one hexadecimal digit before the decimal point, and the number of digits " |
| 1957 |
"after it is equal to the precision. The default precision suffices for an " |
| 1958 |
"exact representation of the value if an exact representation in base 2 " |
| 1959 |
"exists and otherwise is sufficiently large to distinguish values of type " |
| 1960 |
"I<double>. The digit before the decimal point is unspecified for " |
| 1961 |
"nonnormalized numbers, and nonzero but otherwise unspecified for normalized " |
| 1962 |
"numbers. The exponent always contains at least one digit; if the value is " |
| 1963 |
"zero, the exponent is 0." |
| 1964 |
msgstr "" |
| 1965 |
|
| 1966 |
#. type: Plain text |
| 1967 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1968 |
msgid "" |
| 1969 |
"(glibc extension; supported by uClibc and musl.) Print output of " |
| 1970 |
"I<strerror(errno)> (or I<strerrorname_np(errno)> in the alternate form). No " |
| 1971 |
"argument is required." |
| 1972 |
msgstr "" |
| 1973 |
|
| 1974 |
#. type: Plain text |
| 1975 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1976 |
msgid "" |
| 1977 |
"The functions B<snprintf>() and B<vsnprintf>() do not write more than " |
| 1978 |
"I<size> bytes (including the terminating null byte (\\[aq]\\[rs]0\\[aq])). " |
| 1979 |
"If the output was truncated due to this limit, then the return value is the " |
| 1980 |
"number of characters (excluding the terminating null byte) which would have " |
| 1981 |
"been written to the final string if enough space had been available. Thus, " |
| 1982 |
"a return value of I<size> or more means that the output was truncated. (See " |
| 1983 |
"also below under CAVEATS.)" |
| 1984 |
msgstr "" |
| 1985 |
|
| 1986 |
#. type: Plain text |
| 1987 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1988 |
msgid "If an output error is encountered, a negative value is returned." |
| 1989 |
msgstr "" |
| 1990 |
|
| 1991 |
#. type: tbl table |
| 1992 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1993 |
#, no-wrap |
| 1994 |
msgid "" |
| 1995 |
"B<printf>(),\n" |
| 1996 |
"B<fprintf>(),\n" |
| 1997 |
"B<sprintf>(),\n" |
| 1998 |
"B<snprintf>(),\n" |
| 1999 |
"B<vprintf>(),\n" |
| 2000 |
"B<vfprintf>(),\n" |
| 2001 |
"B<vsprintf>(),\n" |
| 2002 |
"B<vsnprintf>()" |
| 2003 |
msgstr "" |
| 2004 |
|
| 2005 |
#. type: TQ |
| 2006 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2007 |
#, no-wrap |
| 2008 |
msgid "B<sprintf>()" |
| 2009 |
msgstr "" |
| 2010 |
|
| 2011 |
#. type: TQ |
| 2012 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2013 |
#, no-wrap |
| 2014 |
msgid "B<vsprintf>()" |
| 2015 |
msgstr "" |
| 2016 |
|
| 2017 |
#. type: TP |
| 2018 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2019 |
#, no-wrap |
| 2020 |
msgid "B<snprintf>()" |
| 2021 |
msgstr "" |
| 2022 |
|
| 2023 |
#. type: TQ |
| 2024 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2025 |
#, no-wrap |
| 2026 |
msgid "B<vsnprintf>()" |
| 2027 |
msgstr "" |
| 2028 |
|
| 2029 |
#. type: Plain text |
| 2030 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2031 |
msgid "SUSv2, C99, POSIX.1-2001." |
| 2032 |
msgstr "" |
| 2033 |
|
| 2034 |
#. type: Plain text |
| 2035 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2036 |
msgid "" |
| 2037 |
"Concerning the return value of B<snprintf>(), SUSv2 and C99 contradict each " |
| 2038 |
"other: when B<snprintf>() is called with I<size>=0 then SUSv2 stipulates an " |
| 2039 |
"unspecified return value less than 1, while C99 allows I<str> to be NULL in " |
| 2040 |
"this case, and gives the return value (as always) as the number of " |
| 2041 |
"characters that would have been written in case the output string has been " |
| 2042 |
"large enough. POSIX.1-2001 and later align their specification of " |
| 2043 |
"B<snprintf>() with C99." |
| 2044 |
msgstr "" |
| 2045 |
|
| 2046 |
#. type: SH |
| 2047 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2048 |
#, no-wrap |
| 2049 |
msgid "CAVEATS" |
| 2050 |
msgstr "" |
| 2051 |
|
| 2052 |
#. type: Plain text |
| 2053 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2054 |
msgid "Some programs imprudently rely on code such as the following" |
| 2055 |
msgstr "" |
| 2056 |
|
| 2057 |
#. type: Plain text |
| 2058 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2059 |
#, no-wrap |
| 2060 |
msgid "sprintf(buf, \"%s some further text\", buf);\n" |
| 2061 |
msgstr "" |
| 2062 |
|
| 2063 |
#. http://sourceware.org/bugzilla/show_bug.cgi?id=7075 |
| 2064 |
#. type: Plain text |
| 2065 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2066 |
msgid "" |
| 2067 |
"to append text to I<buf>. However, the standards explicitly note that the " |
| 2068 |
"results are undefined if source and destination buffers overlap when calling " |
| 2069 |
"B<sprintf>(), B<snprintf>(), B<vsprintf>(), and B<vsnprintf>(). Depending " |
| 2070 |
"on the version of B<gcc>(1) used, and the compiler options employed, calls " |
| 2071 |
"such as the above will B<not> produce the expected results." |
| 2072 |
msgstr "" |
| 2073 |
|
| 2074 |
#. .SH HISTORY |
| 2075 |
#. UNIX V7 defines the three routines |
| 2076 |
#. .BR printf (), |
| 2077 |
#. .BR fprintf (), |
| 2078 |
#. .BR sprintf (), |
| 2079 |
#. and has the flag \-, the width or precision *, the length modifier l, |
| 2080 |
#. and the conversions doxfegcsu, and also D,O,U,X as synonyms for ld,lo,lu,lx. |
| 2081 |
#. This is still true for 2.9.1BSD, but 2.10BSD has the flags |
| 2082 |
#. #, + and <space> and no longer mentions D,O,U,X. |
| 2083 |
#. 2.11BSD has |
| 2084 |
#. .BR vprintf (), |
| 2085 |
#. .BR vfprintf (), |
| 2086 |
#. .BR vsprintf (), |
| 2087 |
#. and warns not to use D,O,U,X. |
| 2088 |
#. 4.3BSD Reno has the flag 0, the length modifiers h and L, |
| 2089 |
#. and the conversions n, p, E, G, X (with current meaning) |
| 2090 |
#. and deprecates D,O,U. |
| 2091 |
#. 4.4BSD introduces the functions |
| 2092 |
#. .BR snprintf () |
| 2093 |
#. and |
| 2094 |
#. .BR vsnprintf (), |
| 2095 |
#. and the length modifier q. |
| 2096 |
#. FreeBSD also has functions |
| 2097 |
#. .BR asprintf () |
| 2098 |
#. and |
| 2099 |
#. .BR vasprintf (), |
| 2100 |
#. that allocate a buffer large enough for |
| 2101 |
#. .BR sprintf (). |
| 2102 |
#. In glibc there are functions |
| 2103 |
#. .BR dprintf () |
| 2104 |
#. and |
| 2105 |
#. .BR vdprintf () |
| 2106 |
#. that print to a file descriptor instead of a stream. |
| 2107 |
#. type: Plain text |
| 2108 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2109 |
msgid "" |
| 2110 |
"The glibc implementation of the functions B<snprintf>() and B<vsnprintf>() " |
| 2111 |
"conforms to the C99 standard, that is, behaves as described above, since " |
| 2112 |
"glibc 2.1. Until glibc 2.0.6, they would return -1 when the output was " |
| 2113 |
"truncated." |
| 2114 |
msgstr "" |
| 2115 |
|
| 2116 |
#. .P |
| 2117 |
#. Linux libc4.[45] does not have a |
| 2118 |
#. .BR snprintf (), |
| 2119 |
#. but provides a libbsd that contains an |
| 2120 |
#. .BR snprintf () |
| 2121 |
#. equivalent to |
| 2122 |
#. .BR sprintf (), |
| 2123 |
#. that is, one that ignores the |
| 2124 |
#. .I size |
| 2125 |
#. argument. |
| 2126 |
#. Thus, the use of |
| 2127 |
#. .BR snprintf () |
| 2128 |
#. with early libc4 leads to serious security problems. |
| 2129 |
#. type: Plain text |
| 2130 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2131 |
msgid "" |
| 2132 |
"Because B<sprintf>() and B<vsprintf>() assume an arbitrarily long string, " |
| 2133 |
"callers must be careful not to overflow the actual space; this is often " |
| 2134 |
"impossible to assure. Note that the length of the strings produced is " |
| 2135 |
"locale-dependent and difficult to predict. Use B<snprintf>() and " |
| 2136 |
"B<vsnprintf>() instead (or B<asprintf>(3) and B<vasprintf>(3))." |
| 2137 |
msgstr "" |
| 2138 |
|
| 2139 |
#. type: Plain text |
| 2140 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2141 |
#, no-wrap |
| 2142 |
msgid "\"%1$s, %3$d. %2$s, %4$d:%5$.2d\\[rs]n\"\n" |
| 2143 |
msgstr "" |
| 2144 |
|
| 2145 |
#. type: Plain text |
| 2146 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2147 |
msgid "one might obtain \"Sonntag, 3. Juli, 10:02\"." |
| 2148 |
msgstr "" |
| 2149 |
|
| 2150 |
#. type: Plain text |
| 2151 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2152 |
msgid "" |
| 2153 |
"To allocate a sufficiently large string and print into it (code correct for " |
| 2154 |
"both glibc 2.0 and glibc 2.1):" |
| 2155 |
msgstr "" |
| 2156 |
|
| 2157 |
#. type: Plain text |
| 2158 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2159 |
#, no-wrap |
| 2160 |
msgid "" |
| 2161 |
"#include E<lt>stdio.hE<gt>\n" |
| 2162 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2163 |
"#include E<lt>stdarg.hE<gt>\n" |
| 2164 |
"\\&\n" |
| 2165 |
"char *\n" |
| 2166 |
"make_message(const char *fmt, ...)\n" |
| 2167 |
"{\n" |
| 2168 |
" int n = 0;\n" |
| 2169 |
" size_t size = 0;\n" |
| 2170 |
" char *p = NULL;\n" |
| 2171 |
" va_list ap;\n" |
| 2172 |
"\\&\n" |
| 2173 |
" /* Determine required size. */\n" |
| 2174 |
"\\&\n" |
| 2175 |
" va_start(ap, fmt);\n" |
| 2176 |
" n = vsnprintf(p, size, fmt, ap);\n" |
| 2177 |
" va_end(ap);\n" |
| 2178 |
"\\&\n" |
| 2179 |
" if (n E<lt> 0)\n" |
| 2180 |
" return NULL;\n" |
| 2181 |
"\\&\n" |
| 2182 |
" size = (size_t) n + 1; /* One extra byte for \\[aq]\\[rs]0\\[aq] */\n" |
| 2183 |
" p = malloc(size);\n" |
| 2184 |
" if (p == NULL)\n" |
| 2185 |
" return NULL;\n" |
| 2186 |
"\\&\n" |
| 2187 |
" va_start(ap, fmt);\n" |
| 2188 |
" n = vsnprintf(p, size, fmt, ap);\n" |
| 2189 |
" va_end(ap);\n" |
| 2190 |
"\\&\n" |
| 2191 |
" if (n E<lt> 0) {\n" |
| 2192 |
" free(p);\n" |
| 2193 |
" return NULL;\n" |
| 2194 |
" }\n" |
| 2195 |
"\\&\n" |
| 2196 |
" return p;\n" |
| 2197 |
"}\n" |
| 2198 |
msgstr "" |
| 2199 |
|
| 2200 |
#. type: Plain text |
| 2201 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2202 |
msgid "" |
| 2203 |
"If truncation occurs in glibc versions prior to glibc 2.0.6, this is treated " |
| 2204 |
"as an error instead of being handled gracefully." |
| 2205 |
msgstr "" |
| 2206 |
|
| 2207 |
#. type: Plain text |
| 2208 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2209 |
msgid "" |
| 2210 |
"B<printf>(1), B<asprintf>(3), B<puts>(3), B<scanf>(3), B<setlocale>(3), " |
| 2211 |
"B<strfromd>(3), B<wcrtomb>(3), B<wprintf>(3), B<locale>(5)" |
| 2212 |
msgstr "" |
| 2213 |
|
| 2214 |
#. type: TH |
| 2215 |
#: fedora-44 fedora-rawhide |
| 2216 |
#, no-wrap |
| 2217 |
msgid "2024-11-17" |
| 2218 |
msgstr "" |
| 2219 |
|
| 2220 |
#. type: TH |
| 2221 |
#: fedora-44 fedora-rawhide |
| 2222 |
#, no-wrap |
| 2223 |
msgid "Linux man-pages 6.13" |
| 2224 |
msgstr "" |
| 2225 |
|
| 2226 |
#. type: TH |
| 2227 |
#: mageia-cauldron |
| 2228 |
#, no-wrap |
| 2229 |
msgid "2026-02-08" |
| 2230 |
msgstr "" |
| 2231 |
|
| 2232 |
#. type: TH |
| 2233 |
#: mageia-cauldron |
| 2234 |
#, no-wrap |
| 2235 |
msgid "Linux man-pages 6.17" |
| 2236 |
msgstr "" |
| 2237 |
|
| 2238 |
#. type: TH |
| 2239 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2240 |
#, no-wrap |
| 2241 |
msgid "Linux man-pages (unreleased)" |
| 2242 |
msgstr "" |