home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1696 / main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  718 b   |  18 lines

  1. static char rcsid[] = "@(#)$Id: main.c,v 2.0  07/18/90  jbc $";
  2. /***************************************************************************/
  3. /* Copyright (c) 1990  James B. Cummings, Jr.                              */
  4. /*                                                                         */
  5. /*  This program is offered in the Public Domain and is freely available   */
  6. /*    as long as this notice is kept intact with each module.              */
  7. /***************************************************************************/
  8. #include "header.h"
  9.  
  10. main()
  11. {
  12.     int max_time;
  13.  
  14.     max_time = get_max();    /* go figure the max time allowed */
  15.     while ((utmpp = getutent()) != (struct utmp *) NULL)
  16.         check_idle(max_time);
  17. }
  18.