suspend a process for a given length of time
#include <i86.h> unsigned int delay( unsigned int milliseconds );
The delay() function suspends the calling process until:
The delay() function returns zero if the full time specified was completed; otherwise it returns the number of milliseconds unslept if interrupted by a signal.
When an error has occurred, errno contains a value that indicates the type of error:
#include <i86.h>
void main()
{
sound( 200 );
delay( 500 ); /* delay for 1/2 second */
nosound();
}