HPGCC3 Documentation 3.0 R003

stdio.h File Reference

#include <sys.h>
#include <stdarg.h>
#include <fsystem.h>

Go to the source code of this file.

Data Structures

struct  FILE

Defines

#define _LONGLONG_DEF
#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2
#define rewind(f)   fseek((f),0L,SEEK_SET)
#define vsscanf   _vsscanf
#define sscanf   _sscanf
#define scanf   _scanf

Typedefs

typedef unsigned long long ULONGLONG
typedef long long LONGLONG

Functions

FILEfopen (const char *fn, const char *mode)
int fclose (FILE *f)
int fgetc (FILE *f)
char * fgets (char *buf, int n, FILE *f)
int fputc (int c, FILE *f)
int fputs (const char *s, FILE *f)
SIZE_T fread (void *buf, SIZE_T size, SIZE_T cnt, FILE *f)
SIZE_T fwrite (const void *buf, SIZE_T size, SIZE_T cnt, FILE *f)
int fseek (FILE *f, long offset, int whence)
int feof (FILE *f)
void * get_minifont ()
 RETURN THE CURRENT CALCULATOR MINIFONT.
char * get_bigfont ()
int get_bigfontheight ()
int readint ()
 Read numbers from keyboard.
unsigned readuint ()
 Read numbers from keyboard.
unsigned readhex ()
 Read numbers from keyboard.
LONGLONG readlonglong ()
 Read numbers from keyboard.
ULONGLONG readulonglong ()
 Read numbers from keyboard.
double readdouble ()
 Read numbers from keyboard.
EXTERN int puts (const char *)
EXTERN int putchar (int)
int write (int fd, const char *buf, size_t count)
int isatty (int fd)
EXTERN char * gets (char *buf)
int printf (const char *fmt,...)
 Stripped down printf surrogate Refer to the source for format restrictions.
int sprintf (char *out, const char *fmt,...)
int vsprintf (char *out, const char *fmt, va_list argp)
int fprintf (FILE *f, const char *fmt,...)
int iprintf (const char *fmt,...)
int isprintf (char *out, const char *fmt,...)
int ivsprintf (char *out, const char *fmt, va_list argp)
int ifprintf (FILE *f, const char *fmt,...)
int _vsscanf (const char *str, const char *format, va_list ap)
int _sscanf (const char *s, const char *f,...)
int _scanf (const char *f,...)
int get_decimal_digits ()
void set_decimal_digits (int v)
char * get_decimal_separator ()
void set_decimal_separator (char a)

Define Documentation

#define _LONGLONG_DEF

Definition at line 18 of file stdio.h.

#define rewind (   f)    fseek((f),0L,SEEK_SET)

Definition at line 66 of file stdio.h.

#define scanf   _scanf

Definition at line 193 of file stdio.h.

#define SEEK_CUR   1

Definition at line 45 of file stdio.h.

#define SEEK_END   2

Definition at line 46 of file stdio.h.

#define SEEK_SET   0

Definition at line 44 of file stdio.h.

#define sscanf   _sscanf

Definition at line 192 of file stdio.h.

#define vsscanf   _vsscanf

Definition at line 191 of file stdio.h.


Typedef Documentation

typedef long long LONGLONG

Definition at line 17 of file stdio.h.

typedef unsigned long long ULONGLONG

Definition at line 16 of file stdio.h.


Function Documentation

int _scanf ( const char *  f,
  ... 
)
int _sscanf ( const char *  s,
const char *  f,
  ... 
)
int _vsscanf ( const char *  str,
const char *  format,
va_list  ap 
)
int fclose ( FILE f)
int feof ( FILE f)
int fgetc ( FILE f)
char* fgets ( char *  buf,
int  n,
FILE f 
)
FILE* fopen ( const char *  fn,
const char *  mode 
)
int fprintf ( FILE f,
const char *  fmt,
  ... 
)
int fputc ( int  c,
FILE f 
)
int fputs ( const char *  s,
FILE f 
)
SIZE_T fread ( void *  buf,
SIZE_T  size,
SIZE_T  cnt,
FILE f 
)
int fseek ( FILE f,
long  offset,
int  whence 
)
SIZE_T fwrite ( const void *  buf,
SIZE_T  size,
SIZE_T  cnt,
FILE f 
)
char* get_bigfont ( )
int get_bigfontheight ( )
int get_decimal_digits ( )
char* get_decimal_separator ( )
void* get_minifont ( )

RETURN THE CURRENT CALCULATOR MINIFONT.

USES THE (STABLE) MINI_FONT ENTRY IN RAM (NOT ROM, SO THIS WON'T MOVE)

THIS IS 0x812CF IN SATURN DOMAIN. NOTICE THAT THE FONT IS NOT BYTE-ALIGNED THE ACTUAL FONT STARTS 7 NIBBLES AFTER THIS ADDRESS

EXTERN char* gets ( char *  buf)
int ifprintf ( FILE f,
const char *  fmt,
  ... 
)
int iprintf ( const char *  fmt,
  ... 
)
int isatty ( int  fd)
int isprintf ( char *  out,
const char *  fmt,
  ... 
)
int ivsprintf ( char *  out,
const char *  fmt,
va_list  argp 
)
int printf ( const char *  fmt,
  ... 
)

Stripped down printf surrogate Refer to the source for format restrictions.

EXTERN int putchar ( int  )
EXTERN int puts ( const char *  )
double readdouble ( )

Read numbers from keyboard.

Return values:
Theappropriate number, read until end of input ,i.e. \r, or syntax error position.
unsigned readhex ( )

Read numbers from keyboard.

Return values:
Theappropriate number, read until end of input ,i.e. \r, or syntax error position.
int readint ( )

Read numbers from keyboard.

Return values:
Theappropriate number, read until end of input ,i.e. \r, or syntax error position.
LONGLONG readlonglong ( )

Read numbers from keyboard.

Return values:
Theappropriate number, read until end of input ,i.e. \r, or syntax error position.
unsigned readuint ( )

Read numbers from keyboard.

Return values:
Theappropriate number, read until end of input ,i.e. \r, or syntax error position.
ULONGLONG readulonglong ( )

Read numbers from keyboard.

Return values:
Theappropriate number, read until end of input ,i.e. \r, or syntax error position.
void set_decimal_digits ( int  v)
void set_decimal_separator ( char  a)
int sprintf ( char *  out,
const char *  fmt,
  ... 
)
int vsprintf ( char *  out,
const char *  fmt,
va_list  argp 
)
int write ( int  fd,
const char *  buf,
size_t  count 
)