SSBM Decomp
Loading...
Searching...
No Matches
stdio.h File Reference
#include "stdarg.h"
#include "stddef.h"

Go to the source code of this file.

Data Structures

struct  __file_modes
struct  __file_state
struct  FILE
struct  __OutStrCtrl
struct  __InStrCtrl

Macros

#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2
#define __ungetc_buffer_size   2
#define EOF   -1L
#define _IONBF   0
#define _IOLBF   1
#define _IOFBF   2
#define stdin   (&__files[0])
#define stdout   (&__files[1])
#define stderr   (&__files[2])

Typedefs

typedef unsigned long __file_handle
typedef unsigned long fpos_t
typedef void(* __idle_proc) (void)
typedef int(* __pos_proc) (__file_handle file, fpos_t *position, int mode, __idle_proc idle_proc)
typedef int(* __io_proc) (__file_handle file, unsigned char *buff, size_t *count, __idle_proc idle_proc)
typedef int(* __close_proc) (__file_handle file)

Enumerations

enum  __io_modes {
  __read = 1 ,
  __write = 2 ,
  __read_write = 3 ,
  __append = 4
}
enum  __file_kinds {
  __closed_file ,
  __disk_file ,
  __console_file ,
  __unavailable_file
}
enum  __file_orientation {
  __unoriented ,
  __char_oriented ,
  __wide_oriented
}
enum  __io_results {
  __no_io_error ,
  __io_error ,
  __io_EOF
}
enum  __io_states {
  __neutral ,
  __writing ,
  __reading ,
  __rereading
}
enum  __ReadProcActions {
  __GetAChar ,
  __UngetAChar ,
  __TestForError
}

Functions

int __StringRead (void *str, int ch, int behavior)
int sprintf (char *s, const char *format,...)
int vprintf (const char *format, va_list arg)
int vsprintf (char *s, const char *format, va_list arg)
size_t fwrite (const void *, size_t memb_size, size_t num_memb, FILE *)

Variables

FILE __files [3]

Macro Definition Documentation

◆ SEEK_SET

#define SEEK_SET   0

◆ SEEK_CUR

#define SEEK_CUR   1

◆ SEEK_END

#define SEEK_END   2

◆ __ungetc_buffer_size

#define __ungetc_buffer_size   2

◆ EOF

#define EOF   -1L

◆ _IONBF

#define _IONBF   0

◆ _IOLBF

#define _IOLBF   1

◆ _IOFBF

#define _IOFBF   2

◆ stdin

#define stdin   (&__files[0])

◆ stdout

#define stdout   (&__files[1])

◆ stderr

#define stderr   (&__files[2])

Typedef Documentation

◆ __file_handle

typedef unsigned long __file_handle

◆ fpos_t

typedef unsigned long fpos_t

◆ __idle_proc

typedef void(* __idle_proc) (void)

◆ __pos_proc

typedef int(* __pos_proc) (__file_handle file, fpos_t *position, int mode, __idle_proc idle_proc)

◆ __io_proc

typedef int(* __io_proc) (__file_handle file, unsigned char *buff, size_t *count, __idle_proc idle_proc)

◆ __close_proc

typedef int(* __close_proc) (__file_handle file)

Enumeration Type Documentation

◆ __io_modes

enum __io_modes
Enumerator
__read 
__write 
__read_write 
__append 

◆ __file_kinds

Enumerator
__closed_file 
__disk_file 
__console_file 
__unavailable_file 

◆ __file_orientation

Enumerator
__unoriented 
__char_oriented 
__wide_oriented 

◆ __io_results

Enumerator
__no_io_error 
__io_error 
__io_EOF 

◆ __io_states

Enumerator
__neutral 
__writing 
__reading 
__rereading 

◆ __ReadProcActions

Enumerator
__GetAChar 
__UngetAChar 
__TestForError 

Function Documentation

◆ __StringRead()

int __StringRead ( void * str,
int ch,
int behavior )

◆ sprintf()

int sprintf ( char * s,
const char * format,
... )

◆ vprintf()

int vprintf ( const char * format,
va_list arg )

◆ vsprintf()

int vsprintf ( char * s,
const char * format,
va_list arg )

◆ fwrite()

size_t fwrite ( const void * buffer,
size_t memb_size,
size_t num_memb,
FILE * file )

Variable Documentation

◆ __files

FILE __files[3]
extern