#include <hpstdlib.h>
Go to the source code of this file.
Defines | |
#define | clear_screen _clear_screen |
Functions | |
EXTERN int | puts (const char *) |
Writes a string pointed to by buf to the screen and returns the number of characters written. | |
EXTERN char * | ints (int, int) |
Returns a pointer to a base base string representation of num. | |
EXTERN char * | uints (unsigned, int) |
Returns a pointer to a base base string representation of num. | |
EXTERN int | putchar (int) |
Writes a single character c to the screen and returns it's argument. | |
EXTERN void | putint (int) |
Writes an integer num to the screen. | |
EXTERN void | putintb (int, int) |
Writes a base base representation of num to the screen. | |
EXTERN unsigned | randx () |
EXTERN int | delta_seconds (int, int) |
EXTERN void | beep () |
Beeps the speaker. | |
EXTERN void | home () |
Positions the virtual write mark at screen position (0,0), i.e. 'home'. | |
EXTERN int | getx () |
Returns the current write mark's x-component. | |
EXTERN int | gety () |
Returns the current write mark's y-component. | |
EXTERN void | clreol () |
Clear to End-Of-Line from current write mark position. | |
EXTERN void | _clear_screen () |
Clears the entire screen. | |
EXTERN void | gotoxy (int, int) |
Position write mark. | |
EXTERN int | screen_width () |
Returns screen width in character units. | |
EXTERN int | screen_height () |
Returns screen height in character units. | |
EXTERN int | get_tabsize () |
Returns current tab width in character units. | |
EXTERN void | set_tabsize (int) |
Sets current tab width in character units. | |
EXTERN int | getchar () |
Reads a character from keyboard. | |
EXTERN char * | gets (char *buf) |
Reads a string from the keyboard. | |
int | get_decimal_digits () |
void | set_decimal_digits (int v) |
char * | get_decimal_separator () |
void | set_decimal_separator (char a) |
Definition in file hpconio.h.
void _clear_screen | ( | ) |
Clears the entire screen.
void beep | ( | ) |
Beeps the speaker.
void clreol | ( | ) |
Clear to End-Of-Line from current write mark position.
EXTERN int delta_seconds | ( | int | , | |
int | ||||
) |
int get_decimal_digits | ( | ) |
char* get_decimal_separator | ( | ) |
int get_tabsize | ( | ) |
Returns current tab width in character units.
Tab | width |
int getchar | ( | ) |
Reads a character from keyboard.
ASCII | code of entered character |
char * gets | ( | char * | buf | ) |
Reads a string from the keyboard.
buf | Pointer to buffer, large enough to hold the string. |
The | argument pointer |
int getx | ( | ) |
Returns the current write mark's x-component.
Current | screen position x |
int gety | ( | ) |
Returns the current write mark's y-component.
Current | screen position y |
void gotoxy | ( | int | x, | |
int | y | |||
) |
Position write mark.
x | x-position to go to | |
y | y-position to go to |
void home | ( | ) |
Positions the virtual write mark at screen position (0,0), i.e. 'home'.
char * ints | ( | int | num, | |
int | base | |||
) |
Returns a pointer to a base base string representation of num.
num | Number to be written | |
base | The base, where 2 <= base <= 36 |
Pointer | to a zero delimited string |
int putchar | ( | int | c | ) |
Writes a single character c to the screen and returns it's argument.
c | Character to be written |
Unchanged | argument or -1 if error |
void putint | ( | int | num | ) |
Writes an integer num to the screen.
num | Number to be written |
void putintb | ( | int | num, | |
int | base | |||
) |
Writes a base base representation of num to the screen.
num | Number to be written | |
base | The base, where 2 <= base <= 36 |
int puts | ( | const char * | buf | ) |
Writes a string pointed to by buf to the screen and returns the number of characters written.
buf | Pointer to zero delimited string |
Number | of characters written |
EXTERN unsigned randx | ( | ) |
int screen_height | ( | ) |
Returns screen height in character units.
Screen | height |
int screen_width | ( | ) |
Returns screen width in character units.
Screen | width |
void set_decimal_digits | ( | int | v | ) |
void set_decimal_separator | ( | char | a | ) |
void set_tabsize | ( | int | width | ) |
Sets current tab width in character units.
width | New tab width |
char * uints | ( | unsigned | num, | |
int | base | |||
) |
Returns a pointer to a base base string representation of num.
num | Number to be written | |
base | The base, where 2 <= base <= 36 |
Pointer | to a zero delimited string |