Go to the documentation of this file.
18 #ifndef __LIBC_STDIO_H
19 #define __LIBC_STDIO_H
121 extern C size_t fread(
void *ptr,
size_t size,
122 size_t nitems,
FILE *stream);
146 extern C size_t fwrite(
const void *ptr,
size_t size,
147 size_t nitems,
FILE *stream);
179 #define dprintf(fmt, ...) \
180 printf("{%s:%d}: " fmt, __FILE__, __LINE__, ##__VA_ARGS__);
192 extern C int snprintf(
char *buffer,
unsigned int size,
const char *fmt, ...);
204 extern C int vsnprintf(
char *buffer,
unsigned int size,
const char *fmt,
va_list args);
214 extern C int printf(
const char *format, ...);
C FILE * fopen(const char *filename, const char *mode)
Open a stream.
C int vsnprintf(char *buffer, unsigned int size, const char *fmt, va_list args)
Write a formatted string into a buffer.
C size_t fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream)
The fwrite() function shall write, from the array pointed to by ptr, up to nitems elements whose size...
#define C
Used to define external C functions.
C int printf(const char *format,...)
Output a formatted string to standard output.
C int vprintf(const char *format, va_list args)
Output a formatted string to standard output, using a variable argument list.
struct FILE FILE
A structure containing information about a file.
C size_t fread(void *ptr, size_t size, size_t nitems, FILE *stream)
Binary input.
A structure containing information about a file.
C int fclose(FILE *stream)
Close a stream.
C int snprintf(char *buffer, unsigned int size, const char *fmt,...)
Write a formatted string into a buffer.