EDIT *Just worked out how to do this (include windows.h, sleep(tired*1), tired measured in miliseconds)* Feel free to close thread.
I've been searching around on google on how to use this. I know i have to #include <unistd.h>, and my source code:
The output just prints:Code:#include <unistd.h> #include <stdio.h> int main(void) { printf("I'll be back in 10 seconds...\n\n"); sleep(10); printf("I'm back!"); getchar(); return(0); }
With no interval in between.Code:I'll be back in 10 seconds... I'm back!
Am I using this incorrectly?
Thanks



LinkBack URL
About LinkBacks



