LIST OF FUNCTIONS: "STEVE'S LIBRARY FOR TURBO (* denotes macro) aabort Abort a program with character to stdout all_sent Check if serial port transmitter is finished argval Extract a numerical value from a command line argument badext Report invalid filename extension and exit basename Split a string into path and/or filename BitClr *Clear a single bit in a value BitSet *Set a single bit in a value BitTst *Test a single bit in a value blpr Low Level Write to Printer blprstat Low Level Status from Printer cant Report inability to open a file and exit center Center a text string in a field chdrv Change disk drive chkcts Check serial port CTS bit chkdcd Check serial port DCD bit chkdsr Check serial port DSR bit chkring Check serial port RI bit clear_game Clear pending gameport readings clrcaps Clear the caps lock flag clrfield Clear a field on the screen clrnumlock Vlear the num lock flag cls Clear screen and home cursor config_port Set configuration of a serial port crc_clear Clear (initialize) crc value crc_finish Finish crc calculation crc_update Update crc calculation crypt Encrypt/decrypt data cursor_style Set the cursor style d_cls Clear current screen d_pos Position the cursor on a video page d_say Display a string at a specific location on current page d_saypag Display a string at a specific location on specified page daynum Find the number of a date within a year debounce Game port processor dvid_attrib Set display attribute dvid_bios Force use of BIOS video calls dvid_box Display a box on the screen (Direct memory) dvid_char_at Display a character at a position " " dvid_char_atr same, with cursor return " " dvid_chgattrib Alter existing video attributes on screen dvid_clrfield Clear a field on the screen " " dvid_cls Clear the display " " dvid_done De-initialize direct video system dvid_e2eol Clear from cursor to end of line " " dvid_e2eos Clear from cursor to end of screen " " dvid_edata Keyboard data entry/parser - enhanced " " dvid_enterdata Keyboard data entry/parser " " dvid_enterfn same as disp_enterdata, for filenames " " dvid_enterpass same as disp_enterdata, for passwords " " dvid_flush Update actual screen cursor to internal values dvid_getattr Fetch current attribute dvid_getchr Fetch character at cursor " " dvid_init Initialize direct video system dvid_move Position internal cursor " " dvid_putchr Put a character to screen " " dvid_putsa Display a string with attribute " " Page 1 dvid_putstr Display a string " " dvid_raw Set display handling of control characters dvid_rep Send a repeated character " " dvid_say Display a string at a position " " dvid_sayr same, with cursor return " " dvid_scroll Scroll a section of the screen dvid_setcount Set count of characters to display " " dvid_setpage Controls video paging on CGA displays dvid_sync Controls snow on older CGA displays drvalid Check if a drive is valid dstr_i Make an ASCII decimal string into an integer enterdata Keyboard data entry/parser enterfn same as enterdata, but for filenames enterpass same as enterdata, but for passwords eraok Ask permission to erase an existing file error Display a message and exit exists See if a file exists exit2dos Request permission to exit to DOS exparg (deleted beginning with version 2.00) exttyp Check a filename for a specified extension type fillch Fill a string with a specified character flgetatr Get a file's attributes flsetatr Set a file's attributes fopend Fopen a file in a specified environment variable fopeng Fopen a file in a specified environment variable or PATH fopenp Fopen a file in the PATH get_code_adr Get the segment and offset of a function address get_data_adr Get the segment and offset of a data item _getdi Get device information from file handle get_press Fetch current game port switches getkey Extended keyboard fetch getpath Fetch and parse the environment PATH string getpos Get current cursor position gtodstr Report time and date to a string gtodsub Report time and date to output channel hstr_i Make an integer from a hexadecimal ASCII string i_dstr Make an integer from a decimal ASCII string ibmtype Find out the type of computer init_game Initialize game port debouncer installtick (see ticker) iscons Check specified file descriptor to see if CON: isleap Check if a specified year is a leap year kbflush Flush the keyboard buffer _kbstate Fetch raw keyboard status flags kbstatus Fetch state of selected keyboard flag LAST_CHAR *Returns last character in a string lexcmp Lexical comparison of two strings loadstr Load a string and pad if needed lv1ws Remove excess whitespace from string make_ansi Translate video attribute to ANSI string mkbox Make a box on the screen mktone Make a tone to the speaker monthis Get a pointer to the name of a month msec_pause Pause a given number of milliseconds Page 2 newext Change a filename's extension to something else NEXT_TO_LAST_CHAR *Returns next to last character in a string opend Open a file in a specified environment variable openg Open a file in a specified environment variable or PATH openp Open a file in the PATH pr_carret Send a carriage return to printer (low level) pr_checking Enable/Diable printer status checks pr_eject Send a formfeed to printer (low level) pr_nl Send a carriage return and line feed to printer pr_putc Print a character to printer (low level) pr_putline Print a string to printer, append cr/lf (low level) pr_puts Print a string to printer (low level) pr_set Select printer to use for low level access popdir Return to previous drive/directory pushdir Change drive/directory, save where to return readchar Read a character from a serial port ready_rcv Check serial port for an available character ready_xmt See if serial port can accept a character removetick (see ticker) repchar Repeat a character to a file descriptor restart_uclock Reset internal registers used by usec_clock() rmallws Remove all white space from a string rmlead Remove leading white space from a string rmtrail Remove trailing white space from a string setcaps Set the caps lock flag setdtr Set/Reset serial port DTR bit setnumlock Set the numlock flag setport Set the parameters for a serial port setrts Set/Reset serial port RTS bit soundoff Turn off the speaker soundon Turn on the speaker strchg Change characters in a string strnchg Change characters in a string to limit 'n' strchgc Strchg, case insensitive strnchgc Strnchg, case insensitive strip Strip a newline character from a string _stuff Get raw equipment report stuff Get equipment report (high level) ticker Real-time hardware clock interrupt services untab Replace tabs in a string with spaces usec_clock Microsecond resolution version of clock() usec_delay Delay a given number of microseconds usec_difftime *Compare microsecond resolution clock values usec_timeout Determine if given number of microseconds have passed vga_clrfield Clrfield() for VGA graphics mode vga_colorget Get a VGA palette DAC value vga_colorset Set a VGA palette DAC value vga_enterdata Dvid_enterdata() for VGA graphics mode vga_edata Advanced field entry for VGA mode vga_newchar Overwrite graphics character with new character vga_newtext Overwrite graphics text with new text vid_border Set border color vid_palette Set graphics color pallette vid_rdpix Read graphics pixel color vid_wrpix Write a graphics color pixel vidpage Set a video page as active page vmode Set video mode Page 3 weekday Determine the day of the week from the true date wkdayname Get a pointer to the name of the day writechar Write a character to a serial port Page 4