Lines Matching refs:conversion

28 * Customizing Printf::          You can define new conversion specifiers for
235 wide-oriented with appropriate conversion functions in place to convert
240 conversion functions to convert to the coded character set used for the
836 conversion happens is unspecified and it happens invisibly to the user.
839 no conversion associated with it. The conversion which will be used is
1544 the binary form avoids possible loss of precision in the conversion
1615 * Output Conversion Syntax:: General syntax of conversion
1641 output stream as-is, while @dfn{conversion specifications} introduced by
1644 @cindex conversion specifications (@code{printf})
1661 This example shows the use of the @samp{%d} conversion to specify that
1663 @samp{%s} conversion to specify printing of a string argument, and
1664 the @samp{%%} conversion to print a literal @samp{%} character.
1672 using the @samp{%f} conversion or in exponential notation using the
1673 @samp{%e} conversion. The @samp{%g} conversion uses either @samp{%e}
1678 between the @samp{%} and the character that indicates which conversion
1679 to apply. These slightly alter the ordinary behavior of the conversion.
1680 For example, most conversion specifications permit you to specify a
1685 interpretation vary depending on the particular conversion. They're all
1695 This section provides details about the precise syntax of conversion
1699 Characters in the template string that are not part of a conversion
1704 The conversion specifications in a @code{printf} template string have
1708 …{param-no} @r{$]} @var{flags} @var{width} @r{[} . @var{precision} @r{]} @var{type} @var{conversion}
1715 …-no} @r{$]} @var{flags} @var{width} . @r{*} @r{[} @var{param-no} @r{$]} @var{type} @var{conversion}
1718 For example, in the conversion specifier @samp{%-10.8ld}, the @samp{-}
1721 the conversion style. (This particular type specifier says to
1725 In more detail, output conversion specifications consist of an
1758 the conversion specification.
1763 If the normal conversion produces fewer characters than this, the field
1765 value; if the normal conversion produces more characters than this, the
1799 A character that specifies the conversion to be applied.
1803 between the different conversion specifiers. See the descriptions of the
1888 Note that this conversion specification never produces any output.
1899 If the syntax of a conversion specification is invalid, unpredictable
1901 arguments provided to supply values for all the conversion
1904 arguments than conversion specifications, the extra argument values are
1911 @samp{%b}, @samp{%B}, @samp{%o}, @samp{%u}, @samp{%x}, and @samp{%X} conversion
1914 The @samp{%d} and @samp{%i} conversion specifications both print an
1917 decimal, or hexadecimal number (respectively). The @samp{%X} conversion
1920 conversion specification is just like @samp{%b} except that, with the
1941 For the @samp{%o} conversion, this forces the leading digit to be
1949 Integers}) and @code{scanf} with the @samp{%i} conversion
1952 For the @samp{%m} conversion, print an error constant or decimal error
2046 conversion gives results like:
2075 This section discusses the conversion specifications for floating-point
2079 The @samp{%f} conversion prints its argument in fixed-point notation,
2085 The @samp{%e} conversion prints its argument in exponential notation,
2090 @samp{%E} conversion is similar but the exponent is marked with the letter
2113 @pxref{Floating Point Parameters}). For the @samp{%a} conversion
2123 @w{[@code{-}]@code{inf}} or @code{nan} respectively if the conversion
2125 @w{[@code{-}]@code{INF}} or @code{NAN} respectively if the conversion is
2210 Notice how the @samp{%g} conversion drops trailing zeros.
2217 The @samp{%c} conversion prints a single character. In case there is no
2237 The @samp{%s} conversion prints a string. If no @samp{l} modifier is
2245 but no other flags or type modifiers are defined for this conversion.
2259 conversion, @theglibc{} prints it as @samp{(null)}. We think this
2263 The @samp{%m} conversion prints the string corresponding to the error
2277 The @samp{%m} conversion can be used with the @samp{#} flag to print an
2281 The @samp{%p} conversion prints a pointer value. The corresponding
2286 as if a @samp{%#x} conversion were used. Null pointers print as
2300 You can supply the @samp{-} flag with the @samp{%p} conversion to
2304 The @samp{%n} conversion is unlike any of the other output conversions.
2331 The @samp{%%} conversion prints a literal @samp{%} character. This
2332 conversion doesn't use an argument, and no flags, field width,
2391 as an argument to be printed under control of the @samp{%s} conversion.
2397 given in a conversion specification is only a @emph{minimum} value.
2895 @r{Each conversion specification must be at least two characters}
2951 @Theglibc{} lets you define your own custom conversion specifiers
2955 The way you do this is by registering the conversion with the function
2962 number and type of arguments expected by the conversion specifier.
2970 to register a new output conversion.
2993 The function to register a new output conversion is
3005 This function defines the conversion specifier character @var{spec}.
3006 Thus, if @var{spec} is @code{'Y'}, it defines the conversion @samp{%Y}.
3015 friends when this conversion appears in a template string.
3021 @code{parse_printf_format} when this conversion appears in a
3029 @c Normally, you install both functions for a conversion at the same time,
3047 registered for a standard conversion will be called for each such
3048 conversion in every format string in a program.
3061 information about the options appearing in an instance of the conversion
3069 in an instance of a conversion specifier in a @code{printf} template
3091 This is the conversion specifier character specified. It's stored in
3165 conversion in the template string. You should not modify this structure
3197 @var{arginfo-function} argument for each new conversion you install with
3208 conversion expects. The function should also fill in no more than
3217 the number and type of arguments used by a conversion specifier.
3225 defines the @samp{%W} conversion to print information about @w{@code{Widget *}}
3227 structure. The @samp{%W} conversion supports the minimum field width and
3359 * Input Conversion Syntax:: Syntax of conversion specifications.
3374 a template string. While the syntax of the conversion specifications in
3385 @cindex conversion specifications (@code{scanf})
3433 multibyte characters interspersed with conversion specifications that
3444 Other characters in the template string that are not part of conversion
3448 The conversion specifications in a @code{scanf} template string
3452 % @var{flags} @var{width} @var{type} @var{conversion}
3455 In more detail, an input conversion specification consists of an initial
3461 read for this specification. When @code{scanf} finds a conversion
3463 rest of the conversion specification, but it discards this input, does
3493 A character that specifies the conversion to be applied.
3497 between the different conversion specifiers. See the descriptions of the
3513 Here is a table that summarizes the various conversion specifications:
3572 read is controlled by the maximum field width given for the conversion.
3577 before storing it. Note that this conversion can produce more than one
3589 by the @samp{%p} output conversion for @code{printf}. @xref{Other Input
3593 This conversion doesn't read any characters; it records the number of
3601 If the syntax of a conversion specification is invalid, the behavior is
3603 addresses for all the conversion specifications in the template strings
3614 The @samp{%d} conversion matches an optionally signed integer in decimal
3619 The @samp{%i} conversion matches an optionally signed integer in any of
3625 @samp{%x}, @samp{%o}, or @samp{%d} conversion. @xref{Integer Conversions}.)
3628 could be read in as integers under the @samp{%i} conversion. Each of
3637 The @samp{%X} conversion is identical to the @samp{%x} conversion. They
3755 The @samp{%c} conversion is the simplest: it matches a fixed number of
3758 conversion doesn't append a null character to the end of the text it
3767 characters which are converted using the conversion determined at the
3772 The @samp{%s} conversion matches a string of non-whitespace characters.
3784 with the conversion @samp{%10c} produces @code{" hello, wo"}, but
3785 reading the same input with the conversion @samp{%10s} produces
3794 except that the external byte sequence is converted using the conversion
3802 use the @samp{%[} conversion. You specify the set between the @samp{[}
3821 The @samp{%[} conversion does not skip over initial whitespace
3826 @emph{not} available in the @samp{%[} conversion.
3874 conversion specification to read a ``variable assignment'' of the form
3897 The @samp{%p} conversion is used to read a pointer value. It recognizes
3898 the same syntax used by the @samp{%p} output conversion for
3900 number just as the @samp{%x} conversion accepts. The corresponding
3907 The @samp{%n} conversion produces the number of characters read so far
3910 This conversion works in the same way as the @samp{%n} conversion for
3913 The @samp{%n} conversion is the only mechanism for determining the
3921 Finally, the @samp{%%} conversion matches a literal @samp{%} character
3922 in the input stream, without using an argument. This conversion does
3985 @samp{%S}, or @samp{%[} conversion.
3998 @samp{%S}, or @samp{%[} conversion.
4509 contains internal data to represent file offset and conversion state
4525 contains internal data to represent file offset and conversion state