1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-04 09:04:33 +00:00
millfork/docs/stdlib/other.md
2018-12-19 19:01:53 +01:00

711 B

< back to index

stdio

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.

void putstr(pointer str, byte len)

Prints a string of length len located at address str.

void putstrz(pointer 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).

err

enum error_number

Standard error codes. All codes other than err_ok suggest that the last operation failed.

error_number errno

The result of the last operation.