(Slightly different from UNIX function)
unsigned sleep(); diff = sleep( howlong );
When "sleep" is executed, the current program will be suspended from execution for "howlong" seconds. The actual sleep time may be less than the requested length if the program is awoken prematurely by some kind of "signal". It may also be longer than the requested time if the load on the system delays your program from restarting exactly on time.
A call to "sleep" automatically flushes buffered output to all terminals. Contrast this with
fflush(NULL);
which flushes buffered output to all output streams, whether or not they're terminals.
Copyright © 1996, Thinkage Ltd.