home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / CLIBSRC.ZIP / CLREOL.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.1 KB  |  44 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.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1987, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #include <_video.h>
  18. #include <conio.h>
  19.  
  20.  
  21.  
  22. /*------------------------------------------------------------------------*
  23.  
  24. Name            clreol - Clears to the end of the line in text window
  25.  
  26. Usage           void clreol(void)
  27.  
  28. Prototype in    conio.h
  29.  
  30. Description     clreol clears all characters from the cursor position to
  31.                 the end of the line within the current text window without
  32.                 moving the cursor.
  33.  
  34. Return value    None
  35.  
  36. *--------------------------------------------------------------------------*/
  37. void clreol(void)
  38. {
  39.   register int line;
  40.  
  41.   line = _wherey();
  42.   __scroll(UP, _wherex(), line, _video.windowx2, line, 0);
  43. }
  44.