Merging NList MCC 0.119 into the main branch.
[AROS.git] / arch / all-unix / bootstrap / kputc.c
blobc04e523a8e630a26c18a2a428452c8b06c06ed32
1 #include <stdarg.h>
2 #include <stdio.h>
4 #include "hostlib.h"
6 /*
7 * Redirect debug output to stderr. This is especially
8 * needed on iOS where reading stdout is only possible with
9 * remote gdb, which is tied to XCode's own build system.
10 * On other unixes this won't hurt either.
12 int KPutC(int chr)
14 int ret;
16 ret = fputc(chr, stderr);
17 if (chr == '\n')
18 fflush(stderr);
20 return ret;