FreeNOS
Data Structures | Macros | Functions
stdio.h File Reference
#include <stdarg.h>
#include <sys/types.h>
#include <Macros.h>

Go to the source code of this file.

Data Structures

struct  FILE
 A structure containing information about a file. More...
 

Macros

#define dprintf(fmt, ...)   printf("{%s:%d}: " fmt, __FILE__, __LINE__, ##__VA_ARGS__);
 Output a debug message using printf(). More...
 
File seek operations
#define SEEK_CUR   0
 Seek relative to current position. More...
 
#define SEEK_END   1
 Seek relative to end-of-file. More...
 
#define SEEK_SET   2
 Seek relative to start-of-file. More...
 

Functions

C int snprintf (char *buffer, unsigned int size, const char *fmt,...)
 Write a formatted string into a buffer. More...
 
C int vsnprintf (char *buffer, unsigned int size, const char *fmt, va_list args)
 Write a formatted string into a buffer. More...
 
C int printf (const char *format,...)
 Output a formatted string to standard output. More...
 
C int vprintf (const char *format, va_list args)
 Output a formatted string to standard output, using a variable argument list. More...
 

File streams

typedef struct FILE FILE
 A structure containing information about a file. More...
 
C FILEfopen (const char *filename, const char *mode)
 Open a stream. More...
 
C size_t fread (void *ptr, size_t size, size_t nitems, FILE *stream)
 Binary input. More...
 
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 is specified by size, to the stream pointed to by stream. More...
 
C int fclose (FILE *stream)
 Close a stream. More...