blob: 1da175c944711650909a021eaee3a865f1c70c20 [file] [log] [blame]
Ambroise Vincent4128f9f2019-02-11 13:34:41 +00001/*
2 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6/*
Bence Szépkúti59130302019-12-18 17:18:16 +01007 * Portions copyright (c) 2018-2019, ARM Limited and Contributors.
Ambroise Vincent4128f9f2019-02-11 13:34:41 +00008 * All rights reserved.
9 */
10
11#ifndef STDIO_H
12#define STDIO_H
13
14#include <cdefs.h>
Bence Szépkúti59130302019-12-18 17:18:16 +010015#include <stddef.h>
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000016#include <stdio_.h>
17
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000018#define EOF -1
19
20int printf(const char *fmt, ...) __printflike(1, 2);
21int snprintf(char *s, size_t n, const char *fmt, ...) __printflike(3, 4);
22
23#ifdef STDARG_H
Ambroise Vincent8a573de2019-02-11 13:54:30 +000024int vprintf(const char *fmt, va_list args) __printflike(1, 0);
25int vsnprintf(char *str, size_t size, const char *format, va_list ap) __printflike(3, 0);
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000026#endif
27
28int putchar(int c);
29int puts(const char *s);
30
31#endif /* STDIO_H */