home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c005 / 4.ddi / C / SCCLRMSG.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-08-05  |  928 b   |  38 lines

  1. /**
  2. *
  3. * Name        scclrmsg -- Clear a message on the screen.
  4. *
  5. * Synopsis    iret = scclrmsg(row,col,len);
  6. *
  7. *        int iret      0 is always returned.
  8. *        int row,col      Position to clear.
  9. *        int len       Length of message to clear.
  10. *
  11. * Description    This function simply clears a message at a specified
  12. *        screen position without changing the screen display
  13. *        attributes.  The current cursor position is saved and
  14. *        restored.
  15. *
  16. *        The area cleared may wrap beyond the current line.
  17. *
  18. * Version    3.0 (C)Copyright Blaise Computing Inc. 1983, 1984, 1986
  19. *
  20. **/
  21.  
  22. #include <bscreen.h>
  23.  
  24. #define BLANK    ' '
  25.  
  26. int scclrmsg(row,col,len)
  27. int row,col,len;
  28. {
  29.     int c_row,c_col;
  30.  
  31.     sccurpos(&c_row,&c_col);          /* Current position.          */
  32.     sccurset(row,col);
  33.     scwrite((char) BLANK,len);          /* Write len blanks.          */
  34.     sccurset(c_row,c_col);          /* Return the original position.*/
  35.  
  36.     return(0);
  37. }
  38.