xref: /rk3399_ARM-atf/include/lib/libc/stdio.h (revision 2fb88cb2e9050d4cda97f8de1e8f000a28599869)
1 /*
2  * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 /*
7  * Portions copyright (c) 2018, ARM Limited and Contributors.
8  * All rights reserved.
9  */
10 
11 #ifndef STDIO_H
12 #define STDIO_H
13 
14 #include <stdio_.h>
15 
16 #ifndef NULL
17 #define NULL ((void *) 0)
18 #endif
19 
20 #define EOF            -1
21 
22 int printf(const char *fmt, ...);
23 int snprintf(char *s, size_t n, const char *fmt, ...);
24 int sprintf(char *s, const char *fmt, ...);
25 int sscanf(const char *s, const char *fmt, ...);
26 
27 #ifdef STDARG_H
28 int vsnprintf(char *s, size_t n, const char *fmt, va_list arg);
29 int vsprintf(char *s, const char *fmt, va_list arg);
30 #endif
31 
32 int putchar(int c);
33 int puts(const char *s);
34 
35 #endif /* STDIO_H */
36