/[LeafOK_CVS]/lbbs/src/io.c
ViewVC logotype

Diff of /lbbs/src/io.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 by sysadm, Tue Mar 22 08:19:11 2005 UTC Revision 1.10 by sysadm, Tue Mar 22 13:36:13 2005 UTC
# Line 223  int Line 223  int
223  igetch_t (long int sec)  igetch_t (long int sec)
224  {  {
225    int ch;    int ch;
226    time_t t_begin = time(0);    time_t t_begin = time (0);
227      
228    do {    do
229      ch = igetch ();      {
230    } while ((ch == KEY_TIMEOUT) && (time(0) - t_begin < sec));        ch = igetch ();
231        }
232      while ((ch == KEY_TIMEOUT) && (time (0) - t_begin < sec));
233    
234    return ch;    return ch;
235  }  }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1