Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to sleep in c

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
 
int main(){
  
	printf("Sleeping for 5 seconds 
");
	sleep(5);
	printf("Sleep is now over 
");  
}
Source by www.poftut.com #
 
PREVIOUS NEXT
Tagged: #sleep
ADD COMMENT
Topic
Name
5+1 =