does Kotlin/native have a printf function?
# kotlin-native
m
does Kotlin/native have a printf function?
a
t
It does have printf through posix (with all the due caveats):
Copy code
import platform.posix.*

fun main() {
  printf("Foo %d\n", 42)
}
m
Thanks
a
or even just
println()
m
Does println work with string templates?
a
yup,
println("foo $bar $baz")
m
Does println work with string format specifiers like "%.2f"?
🚫 1