// SPDX-License-Identifier: GPL-3.0-or-later #ifndef VCC_PRINTER_H #define VCC_PRINTER_H #include // Send formatted text to the CoCo BASIC serial printer from foreground code. // Use the same integer, character and string conversions as vcccompat snprintf. // Each C newline goes to the ROM as a carriage return. The return value counts // formatted characters submitted, up to 32767, or is -1 for a format/count // error. A prefix may already have been sent. The guest cannot tell whether // the host captured, saved or printed the report. Link with -lvcccompat. int vcc_printer_printf(const char *format, ...); int vcc_printer_vprintf(const char *format, va_list args); #endif