FSF.snprintf

Far Manager

snprintf

The FSF.snprintf function allows to write formatted output to a string.
int WINAPI snprintf(
  char *Buffer,
  size_t Sizebuf,
  const char *Format,
  ...
);

Parameters

Buffer
Buffer that receives the formatted string.
Sizebuf
The maximum allowed size of the receiving buffer.
Format
Format string.
...
Series of arguments, in accordance with the format string.

Return value

If the function succeeds the return value is the number of bytes put to Buffer, otherwise it returns -1.

Remarks

See a C/C++ run-time library reference for more information.
Delphi:
You can use format() function.
Please read Object Pascal (Delphi) language reference for more information on that function.
See also: