Share via


_get_output_format

 

The latest version of this topic can be found at _get_output_format.

Gets the current value of the output format flag.

Important

This function is obsolete. Beginning in Visual Studio 2015, it is not available in the CRT.

Syntax

unsigned int _get_output_format();  

Return Value

The current value of the output format flag.

Remarks

The output format flag controls features of formatted I/O. At present the flag has two possible values: 0 and _TWO_DIGIT_EXPONENT. If _TWO_DIGIT_EXPONENT is set, the floating point numbers is printed with only two digits in the exponent unless a third digit is required by the size of the exponent. If the flag is zero, the floating point output displays three digits of exponent, using zeroes if necessary to pad the value to three digits.

Requirements

Routine Required header
_get_output_format <stdio.h>

For more compatibility information, see Compatibility in the Introduction.

.NET Framework Equivalent

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

See Also

printf, _printf_l, wprintf, _wprintf_l
printf_s, _printf_s_l, wprintf_s, _wprintf_s_l
printf Type Field Characters
_set_output_format