# sprintf

The FSF.sprintf function allows to write formatted output to a string.

    int WINAPI sprintf(
      char *Buffer,
      const char *Format,
      ...
    );

### Parameters

Buffer
Buffer that receives the formatted string.
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:
FSF.snprintf