I made a simple snippet of code to record what the user input:
#include <stdio.h>
#include <unistd.h>
int main() {
char letter;
printf("Enter in a character:");
scanf("%c", &letter);
sleep(2);
printf("Letter was: %c", letter);
return 0;
}
In this code, it's supposed to sleep for 2 seconds on line 8.
Unfortunately, sleep is an undefined reference, even though I have the correct library.
Is there any way to fix this problem in Windows Vista?