Function uucore::memo::printf

source ·
pub fn printf(format_string: &str, args: &[String]) -> UResult<()>
Expand description

Write a formatted string to stdout.

format_string contains the template and args contains the arguments to render into the template.

See also sprintf, which creates a new formatted String.

Examples

use uucore::memo::printf;

printf("hello %s", &["world".to_string()]).unwrap();
// prints "hello world"