/* * Copyright (c) 2020, Armink, * * SPDX-License-Identifier: Apache-2.0 */ #include int fputc(int ch, FILE *f) { extern void print_char(char); if (ch == '\n') { print_char('\r'); } print_char(ch); return ch; }