blob: f4e6e0d6bc2e01be8b7c2a7ce8a77a2eecd6c0d7 [file] [log] [blame]
#include <stdio.h>
#include "starboard/common/log.h"
int fputc(int c, FILE *f) {
// There is no Starboard implementation that writes to a FILE object so only
// writing to stdout or stderr are handled.
SB_DCHECK((f == stdout) || (f == stderr));
const char ch = c;
if (f == stdout) {
SbLog(kSbLogPriorityInfo, ch);
} else {
SbLog(kSbLogPriorityError, ch);
}
return ch;
}