home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 1.ddi / CLIB1.ZIP / CLREOL.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.5 KB  |  46 lines

  1. /*------------------------------------------------------------------------
  2.  * filename - clreol.c
  3.  *
  4.  * function(s)
  5.  *        clreol - Clears to the end of the line in the text window
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*[]------------------------------------------------------------[]*/
  9. /*|                                                              |*/
  10. /*|     Turbo C Run Time Library - Version 3.0                   |*/
  11. /*|                                                              |*/
  12. /*|                                                              |*/
  13. /*|     Copyright (c) 1987,1988,1990 by Borland International    |*/
  14. /*|     All Rights Reserved.                                     |*/
  15. /*|                                                              |*/
  16. /*[]------------------------------------------------------------[]*/
  17.  
  18.  
  19. #include <_video.h>
  20. #include <conio.h>
  21.  
  22.  
  23.  
  24. /*------------------------------------------------------------------------*
  25.  
  26. Name    clreol - Clears to the end of the line in text window
  27.  
  28. Usage           void clreol(void)
  29.  
  30. Prototype in  conio.h
  31.  
  32. Description clreol clears all characters from the cursor position to
  33.                 the end of the line within the current text window without
  34.     moving the cursor.
  35.  
  36. Return value  None
  37.  
  38. *--------------------------------------------------------------------------*/
  39. void clreol(void)
  40. {
  41.   register int line;
  42.  
  43.   line = _wherey();
  44.   __scroll(UP, _wherex(), line, _video.windowx2, line, 0);
  45. }
  46.