mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-27 19:49:41 +00:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
/*****************************************
|
|
* stdio - Standard I/O Routines for C02 *
|
|
*****************************************/
|
|
|
|
/* Read Character from Keyboard *
|
|
* Waits for Keypress *
|
|
* Returns: ASCII value of Key */
|
|
char getc();
|
|
|
|
/* Write Character to Screen *
|
|
* Args: c - ASCII character to write */
|
|
void putc();
|
|
|
|
/* Read String from Keyboard *
|
|
* Buffers string until C/R is pressed *
|
|
* Args: &s - string read from keyboard *
|
|
* Returns: length of string */
|
|
char gets();
|
|
|
|
/* Write String to Screen *
|
|
* Args: &s - string to print from *
|
|
* Returns: ending position in string */
|
|
char puts();
|
|
|
|
/* Write Partial String to Screen *
|
|
* Args: n - starting position in string *
|
|
* &s - string to print from *
|
|
* Returns: ending position in string */
|
|
char putsub();
|
|
|
|
/* Write String to Screen and Move *
|
|
* Cursor to Beginning of Next Line *
|
|
* Args: &s - string to print to screen *
|
|
* Returns: number of characters printed */
|
|
char putln();
|