Core.Printf

1Core.printf "hello ";;
hello - : unit = ()
1Core.printf "%s%c" "world" '!';;
world!- : unit = ()
1let s = Core.sprintf "hello";;
s;;
- : string = "hello"