stdio.h 610 Bytes
Newer Older
1
2
3
4
5
/*
 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
6
7
8
9
/*
 * Portions copyright (c) 2018, ARM Limited and Contributors.
 * All rights reserved.
 */
10

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
11
12
#ifndef STDIO_H
#define STDIO_H
13

14
#include <cdefs.h>
15
#include <stdio_.h>
16
17
18
19
20
21
22

#ifndef NULL
#define NULL ((void *) 0)
#endif

#define EOF            -1

23
24
int printf(const char *fmt, ...) __printflike(1, 2);
int snprintf(char *s, size_t n, const char *fmt, ...) __printflike(3, 4);
25

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
26
#ifdef STDARG_H
27
int vprintf(const char *fmt, va_list args);
28
29
#endif

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
30
31
int putchar(int c);
int puts(const char *s);
32

Antonio Nino Diaz's avatar
Antonio Nino Diaz committed
33
#endif /* STDIO_H */