use fmt
Formatted output functions.
Functions
fn printf
Print formatted output to stdout.
Signature: (format:str -- )
| Parameter | Type | Description |
|---|---|---|
format |
str |
Format string with % specifiers |
Example:
"world" "Hello %s\n" fmt::printf // Hello world
fn sprintf
Format a string with printf-style specifiers.
Signature: (format:str -- result:str)
| Parameter | Type | Description |
|---|---|---|
format |
str |
Format string with % specifiers |
| Output | Type | Description |
|---|---|---|
result |
str |
Formatted string |
Example:
"world" "Hello %s\n" fmt::sprintf // "Hello world\n"