diff options
Diffstat (limited to 'sleep.c')
-rw-r--r-- | sleep.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#include<stdio.h> +#include<stdlib.h> + +int main(void) { + printf("This is before the sleep.\n"); + sleep(10); + printf("This is after the sleep and before the for loop.\n"); + long i; + for(i = 0; i < 999999999999999; i++) + ; + printf("This is after the for loop.\n"); +} |