revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-unix / bootstrap / kputc.c
blob0631ae5308270973d857ec091b81f8905ed309f6
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdarg.h>
7 #include <stdio.h>
9 #include "hostlib.h"
12 * Redirect debug output to stderr. This is especially
13 * needed on iOS where reading stdout is only possible with
14 * remote gdb, which is tied to XCode's own build system.
15 * On other unixes this won't hurt either.
17 int KPutC(int chr)
19 int ret;
21 ret = fputc(chr, stderr);
22 if (chr == '\n')
23 fflush(stderr);
25 return ret;