1 // SPDX-License-Identifier: BSD-2-Clause
2 /*
3  * Copyright (c) 2020, Huawei Technologies Co., Ltd
4  */
5 
6 #include <stdio.h>
7 #include <stdlib.h>
8 
fputc(int c,FILE * stream)9 int fputc(int c, FILE *stream)
10 {
11 	if (stream != stdout && stream != stderr)
12 		abort();
13 
14 	return putchar(c);
15 }
16