Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - if the argument is negative. if the argument is non-zero, the digit http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
        if the argument is negative.  If the argument is non-zero, the digit
        before the decimal-point character is non-zero.  The precision is
        used as the number of digits following the decimal-point character.
        If the precision is not specified, a default precision of six is
        used.  If the precision is 0, the decimal-point character is
        suppressed.  The value is rounded to the appropriate number of
        digits.  For "E" conversions, the exponent begins with the character
        "E" rather than "e".  The exponent sign and a three-digit number
        (that indicates the power of ten by which the decimal fraction is
        multiplied) are always produced.

    f
        An argument of type double is converted to a decimal notation in the
        form [-]ddd.ddd similar to FORTRAN fixed-point (F) notation.  The
        leading sign appears (subject to the format control flags) only if
        the argument is negative.  The precision is used as the number of
        digits following the decimal-point character.  If the precision is
        not specified, a default precision of six is used.  If the precision
        is 0, the decimal-point character is suppressed, otherwise, at least
        one digit is produced before the decimal-point character.  The value
        is rounded to the appropriate number of digits.

    g, G
        An argument of type double is converted using either the "f" or "e"
        (or "E", for a "G" conversion) style of conversion depending on the
        value of the argument.  In either case, the precision specifies the
        number of significant digits that are contained in the result.  "e"
        style conversion is used only if the exponent from such a conversion
        would be less than -4 or greater than the precision.  Trailing zeros
        are removed from the result and a decimal-point character only
        appears if it is followed by a digit.

    n
        The number of characters that have been written to the output stream
        is assigned to the integer pointed to by the argument.  No output is
        produced.

    o
        An argument of type int is converted to an unsigned octal notation
        and written to the output stream.  The default precision is 1, but
        if more digits are required, leading zeros are added.

    p, P
        An argument of type void * is converted to a value of type int and
        the value is formatted as for a hexadecimal ("x") conversion.
    s
        Characters from the string specified by an argument of type char *
        or wchar_t *, up to, but not including the terminating null
        character ('\0'), are written to the output stream.  If a precision
        is specified, no more than that many characters (bytes) are written
        (e.g., %.7s)

        For printf, this specifier refers to an ASCII character string
        unless the "l" or "w" modifiers are used to indicate a wide
        character string.

        For wprintf, this specifier refers to a wide character string unless
        the "h" modifier is used to indicate an ASCII character string.

    S
        Characters from the string specified by an argument of type wchar_t
        *, up to, but not including the terminating null wide character
        (L'\0'), are converted to multibyte characters and written to the
        output stream.  If a precision is specified, no more than that many
        characters (bytes) are written (e.g., %.7S)

    u
        An argument of type int is converted to an unsigned decimal notation
        and written to the output stream.  The default precision is 1, but
        if more digits are required, leading zeros are added.

    x, X
        An argument of type int is converted to an unsigned hexadecimal
        notation and written to the output stream.  The default precision is
        1, but if more digits are required, leading zeros are added.
         Hexadecimal notation uses the digits "0" through "9" and the
        characters "a" through "f" or "A" through "F" for "x" or "X"
        conversions respectively, as the hexadecimal digits.  Subject to the
        alternate-form control flag, "0x" or "0X" is prepended to the
        output.

    Any other conversion type specifier character, including another percent
    character (%), is written to the output stream with no special
    interpretation.

    The arguments must correspond with the conversion type specifiers, left
    to right in the string; otherwise, indeterminate results will occur.

    If the value corresponding to a floating-point specifier is infinity, or
    not a number (NAN), then the output will be "inf" or "-inf" for
    infinity, and "nan" or "-nan" for NAN's.

    For example, a specifier of the form "%8.*f" will define a field to be
    at least 8 characters wide, and will get the next argument for the
    precision to be used in the conversion.

Classification:
    ANSI, (except for F and N modifiers)

Systems:
     printf - All, Netware

    wprintf - All

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson