The following table shows new format specifiers implemented in C++ Builder for the printf and scanf family of functions. This implementation allows the input and output of 64-bit integers and provides greater I/O flexibility for other types.
Format Character |
Functionality |
%Ld |
__int64 |
%I8d |
8–bit wide integer (char) |
%I16d |
16–bit wide integer (short) |
%I32d |
32–bit wide integer (long) |
%I64d |
64–bit wide integer (__int64) |
Note that the above table uses the %d format as an example. The I8, I16, I32, I64 prefixes can be used with the d, i, o, x, X formats, as well as the new L prefix previously allowed only on float to specify long double type.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|