syscall_armlibc.c 282 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) 2020, Armink, <armink.ztl@gmail.com>
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include <stdio.h>
  7. int fputc(int ch, FILE *f)
  8. {
  9. extern void print_char(char);
  10. if (ch == '\n') {
  11. print_char('\r');
  12. }
  13. print_char(ch);
  14. return ch;
  15. }