C language sleep function,
How C language makes the program wait for 3 seconds.
How to use the sleep function in C language programs.
The sleep function is declared in unistd.h
/*
Example: how to sleep in C language
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(){
printf("Wait for 3 seconds\n");
sleep(3);
printf("after 3 seconds \n");
}Source:wwl.wautturi.com