CHK_EXT.OBJ chk_ext Checks filename for extension, and adds it if not present ------------------------------------------------------------------------- void chk_ext(char *filename, char *ext); CURSOR.OBJ Text cursor hide/show routines ------------------------------ void hidecur(void); void showcur(void); EDGETS.OBJ Improved gets()-routine with editing ------------------------------------ int edgets(char *s, int maxlen, int mk_upper); ENDIAN.OBJ Writes/Reads 16/32 bit values using little endian ordering ---------------------------------------------------------- int read16bit(FILE *f); long read32bit(FILE *f); void write16bit(FILE *f, int data); void write32bit(FILE *f, unsigned long data); GETOPT.OBJ UNIX-style command line option parser ------------------------------------- int getopt(int argc, char **argv, char *optionS); extern char *optarg; extern int opterr; extern int optind; GET_PAR.OBJ get_par Generic routine for input of a parameter value with limit/error checking. Doesn't return until value is valid, or an empty string is entered. int get_par(int x, int y, char *prompt, char *errtxt, int *val, int low_limit, int high_limit, int nr_digits, int show_curr_val, int disp_add); HEXORINT.OBJ hexorint Detects if a string denotes a hex or decimal number by detecting a leading "0X" or trailing "H". ----------------------------------------------------------------------- long hexorint(char *s); MYMEM.OBJ Dos_Malloc Standard DOS memory allocate routine returns a far pointer on success, or NULL on error -------------------------------------------------- void far *dos_malloc(unsigned long len); Custom/optimized memory routines -------------------------------- align_mem Aligns data on given boundary for speed ------------------------------------------------------- void far *align_mem(void far *p, unsigned aval); _fmemcpy386 386/486/Pentium optimized fmemcpy routine --------------------------------------------------------- void _fmemcpy386(char far *dest, char far *src, unsigned len); VSYNC.OBJ vsync Waits for vertical blank ---------------------------------------- void vsync(void); YESNO.OBJ yesno Returns 1 if "Y" key pressed, 0 if "N" ------------------------------------------------------- int yesno(void); .