What would be the Kotlin Native way to do what the...
# kotlin-native
c
What would be the Kotlin Native way to do what the Java based String.format does?
l
The default cinterop setup allow you to use snprintf.
e
you may want to keep an eye on https://youtrack.jetbrains.com/issue/KT-25506
there's differences between Java's String.format and C's printf family of functions
snprintf, in particular, requires you to pre-allocate a buffer (although on sme platforms you can make one pass first with a null buffer to measure the size required)