xref: /optee_os/lib/libutils/isoc/fputc.c (revision 1350576b545ef35991e459490681c8104c742f9e)
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 
9 int fputc(int c, FILE *stream)
10 {
11 	if (stream != stdout && stream != stderr)
12 		abort();
13 
14 	return putchar(c);
15 }
16