home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / prof_c / 05oslib / bios / put_ch.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-11  |  297 b   |  20 lines

  1. /*
  2.  *    put_ch -- display a character in the prevailing video
  3.  *    attribute and advance the cursor position
  4.  */
  5.  
  6. #include <local\video.h>
  7.  
  8. int
  9. put_ch(ch, pg)
  10. register char ch;
  11. int pg;
  12. {
  13.     int r, c, c0;
  14.  
  15.     readcur(&r, &c, pg);
  16.     writec(ch, 1, pg);
  17.     putcur(r, ++c, pg);
  18.     return (1);
  19. }
  20.