home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / MORE.C < prev    next >
C/C++ Source or Header  |  1997-07-05  |  360b  |  23 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  MORE.C - A DOS/Unix more work-alike
  5. **
  6. **  public domain by Bob Stout
  7. */
  8.  
  9. #include <stdio.h>
  10. #include "more.h"
  11.  
  12. main()
  13. {
  14.       char buf[512];
  15.  
  16.       while(NULL != fgets(buf, 512, stdin))
  17.       {
  18.             if (Key_ESC == more_proc(buf))
  19.                   break;
  20.       }
  21.       return 0;
  22. }
  23.