Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

sleep in c programming

//sleep function provided by <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
 
int main(){
  
	printf("Sleeping for 5 seconds 
");
	sleep(5);
	printf("Wake up 
");  
}
 
PREVIOUS NEXT
Tagged: #sleep #programming
ADD COMMENT
Topic
Name
9+1 =