KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
porthelper.c File Reference
#include "porthelper.h"

Functions

int getchar ()
 
int putchar (int c)
 
long random ()
 

Variables

static char buffer [256]
 
static int have_buffer = 0
 
static int bufptr = -1
 
static int buflen = -1
 

Function Documentation

◆ getchar()

int getchar ( void )

References buffer, buflen, bufptr, and have_buffer.

Referenced by ciao(), getin(), yes(), and yesm().

◆ putchar()

int putchar ( int c)

Referenced by pspeak(), rdata(), and speak().

◆ random()

long random ( )

Referenced by ran(), restore(), and save().

Variable Documentation

◆ buffer

◆ buflen

int buflen = -1
static

Referenced by getchar().

◆ bufptr

int bufptr = -1
static

Referenced by getchar().

◆ have_buffer

int have_buffer = 0
static

Referenced by getchar().