Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stdio.h File Reference
#include <zephyr/toolchain.h>
#include <stdarg.h>
#include <stddef.h>

Go to the source code of this file.

Macros

#define EOF   (-1)
 
#define stdin   ((FILE *) 1)
 
#define stdout   ((FILE *) 2)
 
#define stderr   ((FILE *) 3)
 
#define SEEK_SET   0 /* Seek from beginning of file. */
 
#define SEEK_CUR   1 /* Seek from current position. */
 
#define SEEK_END   2 /* Seek from end of file. */
 
#define putc(c, stream)   fputc(c, stream)
 
#define putchar(c)   putc(c, stdout)
 

Typedefs

typedef int FILE
 

Functions

int printf (const char *ZRESTRICT format,...)
 
int snprintf (char *ZRESTRICT str, size_t len, const char *ZRESTRICT format,...)
 
int sprintf (char *ZRESTRICT str, const char *ZRESTRICT format,...)
 
int fprintf (FILE *ZRESTRICT stream, const char *ZRESTRICT format,...)
 
int vprintf (const char *ZRESTRICT format, va_list list)
 
int vsnprintf (char *ZRESTRICT str, size_t len, const char *ZRESTRICT format, va_list list)
 
int vsprintf (char *ZRESTRICT str, const char *ZRESTRICT format, va_list list)
 
int vfprintf (FILE *ZRESTRICT stream, const char *ZRESTRICT format, va_list ap)
 
void perror (const char *s)
 
int puts (const char *s)
 
int fputc (int c, FILE *stream)
 
int fputs (const char *ZRESTRICT s, FILE *ZRESTRICT stream)
 
size_t fwrite (const void *ZRESTRICT ptr, size_t size, size_t nitems, FILE *ZRESTRICT stream)
 

Macro Definition Documentation

◆ EOF

#define EOF   (-1)

◆ putc

#define putc (   c,
  stream 
)    fputc(c, stream)

◆ putchar

#define putchar (   c)    putc(c, stdout)

◆ SEEK_CUR

#define SEEK_CUR   1 /* Seek from current position. */

◆ SEEK_END

#define SEEK_END   2 /* Seek from end of file. */

◆ SEEK_SET

#define SEEK_SET   0 /* Seek from beginning of file. */

◆ stderr

#define stderr   ((FILE *) 3)

◆ stdin

#define stdin   ((FILE *) 1)

◆ stdout

#define stdout   ((FILE *) 2)

Typedef Documentation

◆ FILE

typedef int FILE

Function Documentation

◆ fprintf()

int fprintf ( FILE *ZRESTRICT  stream,
const char *ZRESTRICT  format,
  ... 
)

◆ fputc()

int fputc ( int  c,
FILE stream 
)

◆ fputs()

int fputs ( const char *ZRESTRICT  s,
FILE *ZRESTRICT  stream 
)

◆ fwrite()

size_t fwrite ( const void *ZRESTRICT  ptr,
size_t  size,
size_t  nitems,
FILE *ZRESTRICT  stream 
)

◆ perror()

void perror ( const char *  s)

◆ printf()

int printf ( const char *ZRESTRICT  format,
  ... 
)

◆ puts()

int puts ( const char *  s)

◆ snprintf()

int snprintf ( char *ZRESTRICT  str,
size_t  len,
const char *ZRESTRICT  format,
  ... 
)

◆ sprintf()

int sprintf ( char *ZRESTRICT  str,
const char *ZRESTRICT  format,
  ... 
)

◆ vfprintf()

int vfprintf ( FILE *ZRESTRICT  stream,
const char *ZRESTRICT  format,
va_list  ap 
)

◆ vprintf()

int vprintf ( const char *ZRESTRICT  format,
va_list  list 
)

◆ vsnprintf()

int vsnprintf ( char *ZRESTRICT  str,
size_t  len,
const char *ZRESTRICT  format,
va_list  list 
)

◆ vsprintf()

int vsprintf ( char *ZRESTRICT  str,
const char *ZRESTRICT  format,
va_list  list 
)