#include <inttypes.h>
#include <stdarg.h>
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | __file |
Defines | |
#define | _STDIO_H_ 1 |
#define | __need_NULL |
#define | __need_size_t |
#define | __SRD 0x0001 |
#define | __SWR 0x0002 |
#define | __SSTR 0x0004 |
#define | __SPGM 0x0008 |
#define | __SERR 0x0010 |
#define | __SEOF 0x0020 |
#define | __SUNGET 0x040 |
#define | __SMALLOC 0x80 |
#define | FILE struct __file |
#define | stdin (__iob[0]) |
#define | stdout (__iob[1]) |
#define | stderr (__iob[2]) |
#define | EOF (-1) |
#define | fdev_set_udata(stream, u) do { (stream)->udata = u; } while(0) |
#define | fdev_get_udata(stream) ((stream)->udata) |
#define | fdev_setup_stream(stream, p, g, f) |
#define | _FDEV_SETUP_READ __SRD |
#define | _FDEV_SETUP_WRITE __SWR |
#define | _FDEV_SETUP_RW (__SRD|__SWR) |
#define | _FDEV_ERR (-1) |
#define | _FDEV_EOF (-2) |
#define | FDEV_SETUP_STREAM(p, g, f) |
#define | fdev_close() ((void)0) |
#define | putc(__c, __stream) fputc(__c, __stream) |
#define | putchar(__c) fputc(__c, stdout) |
#define | getc(__stream) fgetc(__stream) |
#define | getchar() fgetc(stdin) |
#define | clearerror(s) do { (s)->flags &= ~(__SERR | __SEOF); } while(0) |
#define | feof(s) ((s)->flags & __SEOF) |
#define | ferror(s) ((s)->flags & __SERR) |
#define | SEEK_SET 0 |
#define | SEEK_CUR 1 |
#define | SEEK_END 2 |
Functions | |
FILE * | fdevopen (int(*__put)(char, FILE *), int(*__get)(FILE *)) |
int | fclose (FILE *__stream) |
Close a stream. | |
int | vfprintf (FILE *__stream, const char *__fmt, va_list __ap) |
int | vfprintf_P (FILE *__stream, const char *__fmt, va_list __ap) |
int | fputc (int __c, FILE *__stream) |
Write a character to a stream. | |
int | putc (int __c, FILE *__stream) |
Write a character to a stream. | |
int | putchar (int __c) |
Write a character to standard output. | |
int | printf (const char *__fmt,...) |
int | printf_P (const char *__fmt,...) |
int | vprintf (const char *__fmt, va_list __ap) |
int | sprintf (char *__s, const char *__fmt,...) |
int | sprintf_P (char *__s, const char *__fmt,...) |
int | snprintf (char *__s, size_t __n, const char *__fmt,...) |
int | snprintf_P (char *__s, size_t __n, const char *__fmt,...) |
int | vsprintf (char *__s, const char *__fmt, va_list ap) |
int | vsprintf_P (char *__s, const char *__fmt, va_list ap) |
int | vsnprintf (char *__s, size_t __n, const char *__fmt, va_list ap) |
int | vsnprintf_P (char *__s, size_t __n, const char *__fmt, va_list ap) |
int | fprintf (FILE *__stream, const char *__fmt,...) |
int | fprintf_P (FILE *__stream, const char *__fmt,...) |
int | fputs (const char *__str, FILE *__stream) |
int | fputs_P (const char *__str, FILE *__stream) |
int | puts (const char *__str) |
int | puts_P (const char *__str) |
size_t | fwrite (const void *__ptr, size_t __size, size_t __nmemb, FILE *__stream) |
int | fgetc (FILE *__stream) |
Read a character from a stream. | |
int | getc (FILE *__stream) |
Read a character from a stream. | |
int | ungetc (int __c, FILE *__stream) |
Push a character back onto a stream. | |
char * | fgets (char *__str, int __size, FILE *__stream) |
Read a line from a stream. | |
char * | gets (char *__str) |
Get a line from the standard input stream. | |
size_t | fread (void *__ptr, size_t __size, size_t __nmemb, FILE *__stream) |
Read data from a stream. | |
void | clearerr (FILE *__stream) |
Reset error status of a stream. | |
int | feof (FILE *__stream) |
Test if a stream reached the end of file. | |
int | ferror (FILE *__stream) |
Test for an error on a stream. | |
int | vfscanf (FILE *__stream, const char *__fmt, va_list __ap) |
int | vfscanf_P (FILE *__stream, const char *__fmt, va_list __ap) |
int | fscanf (FILE *__stream, const char *__fmt,...) |
int | fscanf_P (FILE *__stream, const char *__fmt,...) |
int | scanf (const char *__fmt,...) |
int | scanf_P (const char *__fmt,...) |
int | vscanf (const char *__fmt, va_list __ap) |
int | sscanf (const char *__buf, const char *__fmt,...) |
int | sscanf_P (const char *__buf, const char *__fmt,...) |
static __inline__ int | fflush (FILE *stream __attribute__((unused))) |
Variables | |
struct __file * | __iob [] |
Definition in file stdio.h.