fxlibc/include/stdio.h

30 lines
975 B
C
Raw Normal View History

2021-05-09 23:00:11 +02:00
#ifndef __STDIO_H__
# define __STDIO_H__
2020-09-17 19:27:01 +02:00
#include <stddef.h>
#include <stdarg.h>
#include <bits/types/FILE.h>
extern FILE *stdin;
extern FILE *stdout;
extern FILE *stderr;
/* Make them macros (7.19.1§3) */
#define stdin stdin
#define stdout stdout
#define stderr stderr
2020-09-17 19:27:01 +02:00
/* *printf() familly - formatted output conversion. */
extern int printf(const char *restrict format, ...);
extern int dprintf(int fd, const char *restrict format, ...);
extern int sprintf(char *restrict str, const char *restrict format, ...);
extern int snprintf(char *restrict str, size_t size, const char *restrict format, ...);
extern int vdprintf(int fd, const char *restrict format, va_list ap);
extern int vsprintf(char *restrict str, const char *restrict format, va_list ap);
extern int vsnprintf(char *restrict str, size_t size, const char *restrict format, va_list ap);
/* putx() - display char / string */
extern int putchar(int c);
extern int puts(const char *s);
2021-05-09 23:00:11 +02:00
#endif /*__STDIO_H__*/