sprintf

Prints a formatted string to a buffer.

extern (C) nothrow @nogc pragma(printf) extern @system pure
int
sprintf
(
char* buffer
,
const(char)* format
,)

Parameters

buffer char*

The buffer to write to.

format const(char)*

The format string. ... = Arguments following format.

Return Value

Type: int

On success, the total number of characters written is returned. A terminating '\0' is automatically written to the buffer after the content.

Meta