#ifdef __cplusplus extern "C" { #endif #ifndef qcruntime #define cpnone 0 #define cpodd 1 #define cpmark 2 #define cpeven 3 #endif unsigned qc_checkbit(unsigned char w, unsigned bit); void qc_setbit(unsigned char far *w, unsigned bit, unsigned bitval); int qc_round(double r); void far * qc_malloc(unsigned long n); void qc_free(void far * fp); void qc_itoa (int num,unsigned char far *str,int width); int qc_strlen(unsigned char far *s); void qc_strcpy(unsigned char far *s1, unsigned char far *s2); void qc_strcat(unsigned char far *s1 , unsigned char far *s2); unsigned getfontpointer(unsigned char far **fp); unsigned lptstatcheck(unsigned statbyte); unsigned outlptport(unsigned p,unsigned char c); unsigned initlptport(unsigned p); unsigned lptportstatus(unsigned p); unsigned initcommport(unsigned cport, unsigned baud,unsigned parity, unsigned wordlen,unsigned stop, unsigned handshake); unsigned outcommport(unsigned p,unsigned char c); unsigned incommport(unsigned p); unsigned commportstatus(unsigned port); unsigned extcommportcntrl(unsigned p, unsigned msr, unsigned rw); unsigned char qc_getch(void); void setoutputdev(int od); unsigned qc_outch(unsigned char c); unsigned qc_crlf( void ); unsigned qc_outstr(unsigned char far *s, int crflag); unsigned qc_blockoutput(unsigned char far * block, unsigned n); unsigned qc_stderrorhandler(unsigned error); void dputs( unsigned char far *str ); void qc_gotoxy(unsigned x, unsigned y); unsigned qc_comout(int p,unsigned char c); void putnum( int number ); void puthex( unsigned char number ); void dputc( unsigned char c ); void crlf( void ); void banner( unsigned char far *string ); unsigned qc_formfeed( void ); unsigned checkforESC(void); void setcurrentofh(unsigned ofh); unsigned char qc_kbhit(void); unsigned qc_createfile(char far *filename); unsigned qc_closefile(unsigned h); unsigned qc_writefile(unsigned h, char far *buffer, unsigned count ); unsigned qc_readfile(unsigned h, char far *buffer, unsigned count ); unsigned qc_resetfile(unsigned h ); unsigned qc_openfile(char far *filename); #ifdef __cplusplus } #endif