stdio.h header reference
[C library module]

The source code of this header can be browsed online.

Members  

Types  

Functions  

  • void clearerr(FILE *stream)
  • error_t fclose(FILE *file)
  • bool_t feof(FILE *stream)
  • bool_t ferror(FILE *stream)
  • error_t fflush(FILE *file)
  • int_fast16_t fgetc(FILE *file)
  • error_t fgetpos(FILE *file, fpos_t *pos)
  • char * fgets(char *str, size_t size, FILE *file)
  • FILE * fopen(const char *path, const char *mode)
  • ssize_t fprintf(FILE *file, const char *format, ...)
  • error_t fpurge(FILE *file)
  • int_fast16_t fputc(unsigned char c, FILE *file)
  • error_t fputs(const char *str, FILE *file)
  • size_t fread(void *ptr, size_t size, size_t nmemb, FILE *file)
  • ssize_t fscanf(FILE *file, const char *format, ...)
  • error_t fseek(FILE *file, fpos_t offset, int_fast8_t whence)
  • error_t fsetpos(FILE *file, const fpos_t *pos)
  • fpos_t ftell(FILE *file)
  • size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *file)
  • int_fast16_t getc(FILE *file)
  • int_fast16_t getchar(void )
  • char * gets(char *s)
  • void perror(const char *reason)
  • ssize_t printf(const char *format, ...)
  • int_fast16_t putc(int_fast16_t c, FILE *file)
  • int_fast16_t putchar(int_fast16_t c)
  • error_t puts(const char *str)
  • void rewind(FILE *file)
  • ssize_t scanf(const char *format, ...)
  • error_t setvbuf(FILE *file, char *buf, enum stdio_buf_mode_e mode, size_t size)
  • ssize_t snprintf(char *str, size_t size, const char *format, ...)
  • ssize_t sprintf(char *str, const char *format, ...)
  • ssize_t sscanf(const char *str, const char *format, ...)
  • int_fast16_t ungetc(int_fast16_t c, FILE *file)
  • ssize_t vfprintf(FILE *file, const char *format, va_list ap)
  • ssize_t vfscanf(FILE *file, const char *fmt, va_list ap)
  • ssize_t vprintf(const char *format, va_list ap)
  • ssize_t vscanf(const char *format, va_list ap)
  • ssize_t vsnprintf(char *str, size_t size, const char *format, va_list ap)
  • ssize_t vsprintf(char *str, const char *format, va_list ap)
  • ssize_t vsscanf(const char *str, const char *format, va_list ap)
  • error_t __stdio_read(size_t size_, FILE *file, uint8_t *ptr)
  • void __stdio_stream_init(FILE *stream)
  • error_t __stdio_write(size_t size_, FILE *file, const uint8_t *ptr)

Variables  

Macros  

Members detail  

#define BUFSIZ  

This macro is declared in stdio.h source file, line 76.

standard BUFSIZ macro

#define EOF  

This macro is declared in stdio.h source file, line 79.

standard EOF macro

typedef struct file_s FILE  

This typedef is declared in stdio.h source file, line 107.

Alternate declarations with same identifier: [1], [2].

Preprocessor condition: defined( CONFIG_LIBC_STREAM )

typedef struct file_s FILE  

This typedef is declared in stdio.h source file, line 123.

Alternate declarations with same identifier: [1], [2].

Preprocessor condition: not defined( CONFIG_LIBC_STREAM )

#define GCT_CONTAINER_ALGO_stream_fifo  

This macro is declared in stdio.h source file, line 90.

Preprocessor condition: defined( CONFIG_LIBC_STREAM )

#define STDIO_H_  

This macro is declared in stdio.h source file, line 23.

void clearerr(FILE *stream)  

This function is declared in stdio.h source file, line 288.

This is available when CONFIG_LIBC_STREAM is defined.

error_t fclose(FILE *file)  

This is available when CONFIG_LIBC_STREAM is defined.

bool_t feof(FILE *stream)  

This function is declared in stdio.h source file, line 315.

This is available when CONFIG_LIBC_STREAM is defined.

bool_t ferror(FILE *stream)  

This function is declared in stdio.h source file, line 302.

This is available when CONFIG_LIBC_STREAM is defined.

error_t fflush(FILE *file)  

This is available when CONFIG_LIBC_STREAM is defined.

int_fast16_t fgetc(FILE *file)  

This is available when CONFIG_LIBC_STREAM is defined.

error_t fgetpos(FILE *file, fpos_t *pos)  

This function is declared in stdio.h source file, line 234.

This is available when CONFIG_LIBC_STREAM is defined.

char * fgets(char *str, size_t size, FILE *file)  

This is available when CONFIG_LIBC_STREAM is defined.

struct file_s  

This struct is declared in stdio.h source file, line 96.

Alternate declarations with same identifier: [1], [2].

Preprocessor condition: defined( CONFIG_LIBC_STREAM )

FieldDescription
const struct fileops_s * ops;
void * hndl;
error_t (*rwflush)(struct file_s *file) ;
stream_fifo_root_t fifo_read;
stream_fifo_root_t fifo_write;
fpos_t pos;
enum stdio_buf_mode_e buf_mode;
bool_t eof;
bool_t error;

See also FILE.

struct file_s  

This struct is declared in stdio.h source file, line 123.

Alternate declarations with same identifier: [1], [2].

Preprocessor condition: not defined( CONFIG_LIBC_STREAM )

This struct is empty.

See also FILE.

FILE * fopen(const char *path, const char *mode)  

This is available when CONFIG_LIBC_STREAM and CONFIG_LIBC_VFS are both defined.

typedef int32_t fpos_t  

This typedef is declared in stdio.h source file, line 82.

ssize_t fprintf(FILE *file, const char *format, ...)  

This is available when CONFIG_LIBC_STREAM and CONFIG_LIBC_PRINTF are both defined.

error_t fpurge(FILE *file)  

This is available when CONFIG_LIBC_STREAM is defined.

int_fast16_t fputc(unsigned char c, FILE *file)  

This is available when CONFIG_LIBC_STREAM is defined.

error_t fputs(const char *str, FILE *file)  

This is available when CONFIG_LIBC_STREAM is defined.

size_t fread(void *ptr, size_t size, size_t nmemb, FILE *file)  

This is available when CONFIG_LIBC_STREAM is defined.

ssize_t fscanf(FILE *file, const char *format, ...)  

This is available when CONFIG_LIBC_STREAM and CONFIG_LIBC_SCANF are both defined.

error_t fseek(FILE *file, fpos_t offset, int_fast8_t whence)  

This is available when CONFIG_LIBC_STREAM is defined.

error_t fsetpos(FILE *file, const fpos_t *pos)  

This function is declared in stdio.h source file, line 248.

This is available when CONFIG_LIBC_STREAM is defined.

fpos_t ftell(FILE *file)  

This function is declared in stdio.h source file, line 207.

This is available when CONFIG_LIBC_STREAM is defined.

size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *file)  

This is available when CONFIG_LIBC_STREAM is defined.

int_fast16_t getc(FILE *file)  

This function is declared in stdio.h source file, line 261.

This is available when CONFIG_LIBC_STREAM is defined.

int_fast16_t getchar(void )  

This function is declared in stdio.h source file, line 340.

This is available when CONFIG_LIBC_STREAM_STD is defined.

char * gets(char *s)  

This function is declared in stdio.h source file, line 387.

This is available when CONFIG_LIBC_STREAM_STD is defined.

void perror(const char *reason)  

This is available when CONFIG_LIBC_STREAM_STD is defined.

ssize_t printf(const char *format, ...)  

This function use libc buffered streams and thus require CONFIG_LIBC_STREAM_STD to be enabled. Consider using printk instead for direct output.

This is available when CONFIG_LIBC_STREAM_STD and CONFIG_LIBC_PRINTF are both defined.

See also formatter_printf.

int_fast16_t putc(int_fast16_t c, FILE *file)  

This function is declared in stdio.h source file, line 274.

This is available when CONFIG_LIBC_STREAM is defined.

int_fast16_t putchar(int_fast16_t c)  

This function is declared in stdio.h source file, line 353.

This is available when CONFIG_LIBC_STREAM_STD is defined.

error_t puts(const char *str)  

This is available when CONFIG_LIBC_STREAM_STD is defined.

void rewind(FILE *file)  

This function is declared in stdio.h source file, line 220.

This is available when CONFIG_LIBC_STREAM is defined.

ssize_t scanf(const char *format, ...)  

This is available when CONFIG_LIBC_SCANF and CONFIG_LIBC_STREAM_STD are both defined.

error_t setvbuf(FILE *file, char *buf, enum stdio_buf_mode_e mode, size_t size)  

This is available when CONFIG_LIBC_STREAM is defined.

ssize_t snprintf(char *str, size_t size, const char *format, ...)  

This is available when CONFIG_LIBC_PRINTF is defined.

ssize_t sprintf(char *str, const char *format, ...)  

This is available when CONFIG_LIBC_PRINTF is defined.

ssize_t sscanf(const char *str, const char *format, ...)  

This is available when CONFIG_LIBC_SCANF is defined.

FILE *const stderr  

This variable is declared in stdio.h source file, line 329.

This is available when CONFIG_LIBC_STREAM_STD is defined.

FILE *const stdin  

This variable is declared in stdio.h source file, line 321.

This is available when CONFIG_LIBC_STREAM_STD is defined.

enum stdio_buf_mode_e  

This enum is declared in stdio.h source file, line 85.

IdentifierDescription
_IONBF
_IOLBF
_IOFBF

FILE *const stdout  

This variable is declared in stdio.h source file, line 325.

This is available when CONFIG_LIBC_STREAM_STD is defined.

typedef void * stream_fifo_entry_t  

This typedef is declared in stdio.h source file, line 93.

Preprocessor condition: defined( CONFIG_LIBC_STREAM )

typedef uint8_t stream_fifo_item_t  

This typedef is declared in stdio.h source file, line 93.

Preprocessor condition: defined( CONFIG_LIBC_STREAM )

typedef void * stream_fifo_root_t  

This typedef is declared in stdio.h source file, line 93.

Preprocessor condition: defined( CONFIG_LIBC_STREAM )

int_fast16_t ungetc(int_fast16_t c, FILE *file)  

This is available when CONFIG_LIBC_STREAM is defined.

ssize_t vfprintf(FILE *file, const char *format, va_list ap)  

This is available when CONFIG_LIBC_STREAM and CONFIG_LIBC_PRINTF are both defined.

ssize_t vfscanf(FILE *file, const char *fmt, va_list ap)  

This is available when CONFIG_LIBC_STREAM and CONFIG_LIBC_SCANF are both defined.

ssize_t vprintf(const char *format, va_list ap)  

This function is declared in stdio.h source file, line 367.

This is available when CONFIG_LIBC_STREAM_STD and CONFIG_LIBC_PRINTF are both defined.

See also printf.

ssize_t vscanf(const char *format, va_list ap)  

This is available when CONFIG_LIBC_SCANF and CONFIG_LIBC_STREAM_STD are both defined.

ssize_t vsnprintf(char *str, size_t size, const char *format, va_list ap)  

This is available when CONFIG_LIBC_PRINTF is defined.

ssize_t vsprintf(char *str, const char *format, va_list ap)  

This is available when CONFIG_LIBC_PRINTF is defined.

ssize_t vsscanf(const char *str, const char *format, va_list ap)  

This is available when CONFIG_LIBC_SCANF is defined.

error_t __stdio_read(size_t size_, FILE *file, uint8_t *ptr)  

stream buffered read function.

The return value is 1 on success, 0 on end of stream and < 0 on error.

This function is for internal use only.

void __stdio_stream_init(FILE *stream)  

perform stream object initialization

This function is for internal use only.

error_t __stdio_write(size_t size_, FILE *file, const uint8_t *ptr)  

stream buffered write function.

The return value is 0 on success, < 0 on error.

This function is for internal use only.

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:39 2018 using MkDoc