RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStringT::printf Method

Sets the value of the System::AnsiStringT given a format string and its arguments.

Pascal
function printf(const format: char*; : ...): Integer; cdecl;
C++
__cdecl int printf(const char* format, ...);

Use System::AnsiStringT::printf to set the value of the System::AnsiStringT given a standard C++ format specifier. Pass the values to any arguments in the format specifier as additional parameters following the format parameter. This method returns the length of the final formatted string. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!