For convenience and to reduce the learning curve, Mythryl supports printf, sprintf and fprintf functions patterned closely after those of C.
These are a bit of a hack in that their types appear to vary depending upon the format string. This is implemented by a special-case tweak in the Mythryl parser which analyses the format string (which must be a string constant) and synthesizes an appropriate argument list.
The core functionality is implemented in the sfprintf package from file src/lib/src/sfprintf.pkg. It may sometimes be useful to invoke that package directly, for example if the format string must be computed instead of a string constant.