The stdio
module automatically imports the string
and err
modules.
It requires an implementation of void putchar(byte a)
and therefore works only on targets with console output
(see the frequently provided definitions for details).
On targets with idiosyncratic behaviour of putchar
, functions in this module inherit that behaviour.
All strings are assumed to be in the default encoding.
Prints a string of length len
located at address str
.
Prints a null-terminated string located at address str
.
If the string is longer than 255 bytes, then the behaviour is undefined (might even crash).
Prints a length-prefixed string located at address str
.
Prints the decimal representation of the 16-bit unsigned integer w
.
Prints the decimal representation of the 16-bit signed integer x
.
On targets that have separate all-caps and mixed-case modes (like most Commodore machines), switches to the mixed-case mode.
On the remaining platforms, does nothing.