Parent Directory
|
Revision Log
|
Patch
| Revision 1.43 by sysadm, Fri Jun 13 10:51:46 2025 UTC | Revision 1.44 by sysadm, Tue Jun 17 02:06:48 2025 UTC | |
|---|---|---|
| # | Line 822 int igetch(int timeout) | Line 822 int igetch(int timeout) |
| 822 | int igetch_t(int sec) | int igetch_t(int sec) |
| 823 | { | { |
| 824 | int ch; | int ch; |
| 825 | time_t t_begin = time(0); | time_t t_begin = time(NULL); |
| 826 | ||
| 827 | do | do |
| 828 | { | { |
| 829 | ch = igetch(100); | ch = igetch(100); |
| 830 | } while (!SYS_server_exit && ch == KEY_TIMEOUT && (time(0) - t_begin < sec)); | } while (!SYS_server_exit && ch == KEY_TIMEOUT && (time(NULL) - t_begin < sec)); |
| 831 | ||
| 832 | return ch; | return ch; |
| 833 | } | } |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |