...
Note that this loop may still not exit, as the range of time_t
may not be able to represent two times seconds_to_work
apart.
Risk Assessment
Changing {{time_t
}} or clock_t
typed variables incorrectly can lead to broken logic that could place a program in an infinite loop or cause an expected logic branch to not actually execute.
...
Wiki Markup |
---|
\[[Kettlewell 02|AA. C References#Kettlewell 02]\] Section 4.1, "time_t" |
Wiki Markup |
\[[ISO/IEC 9899-1999|AA. C References#ISO/IEC 9899-1999]] Section 7.23, "Date and time <time.h>" |