home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / FORMGE.ZIP / IOLIB.H < prev    next >
Text File  |  1989-04-20  |  2KB  |  41 lines

  1. /*=========================================================================*/
  2. /*  iolib.c   -- library of i/o functions for use from Turbo C             */
  3. /*=========================================================================*/
  4. /* function prototypes */
  5.  
  6. char *strdel(char st[],int start,int count);/* delete substring from string */
  7. int nonblank (char *st);                    /* return true if st not blank */
  8. void stub(void);                            /* make sound to signify stub */
  9. void binit(int buff);                       /* initialize video buffers */
  10. void savescreen(int i);                     /* save screen to buff i */
  11. void restorescreen(int i);                  /* restore screen from buff i */
  12. void copyscreen(int i,int j);               /* copy buff i to buff j */
  13. void bclear(int b);                         /* clear buff b */
  14. void bwrite(int b,int x,int y,char st[]);   /* write st to buff b at x,y */
  15. void border(int color);                     /* set border color */
  16. void pad(char st[],int len);                /* pad a string to length len */
  17. void trim(char st[]);                       /* trim off trailing blanks */
  18. void lcase(char st[]);                      /* convert string to l.case */
  19. int getstring(int x,int y,int *c,           /* wordStar-like string input */
  20.    char st[],int len);                      /*    routine */
  21. int getint(int x,int y,int *i,int w);       /* integer input routine */
  22. int getachar(int x,int y,char *ch);         /* char input routine */
  23.  
  24. /* iolib definitions and declarations */
  25. #define TRUE  1
  26. #define FALSE 0
  27.  
  28. typedef unsigned char vscreen[4000];
  29. typedef vscreen  *vptr;
  30.  
  31. extern vptr     sbuff[5];           /* screen buffers */
  32. extern char     monochrome;         /* mono flag */
  33. extern char     insert;             /* insert/overwrite flag */
  34. extern int      insertx,inserty;    /* location of insert/overwrite message */
  35. extern int      colx,coly;          /* location of column info, if present */
  36. extern int      trimblanks;         /* make true for getstring to trim blanks */
  37. extern int      colons;             /* make true for getstring to use colons */
  38. extern int      nobeep;             /* make true to suppress end-field beep */
  39. extern int      bfore,bback;        /* buffer foreground, background colors */
  40. extern char     initialized;        /* buffer initialization flag */
  41.