I'm learning C programming and I don't have a background in programming. I want to control the timing of commands for a simple console program and looked up online the sleep() function. However, it requires the <unistd.h> header file. I'm using Visual Studio .Net on my work computer (because my lab has that on all computers.) However, when I put:

#include <unistd.h>

or

"#include "unistd.h" at the beginning of the program, I get the error:

fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory

So I looked up online that the unistd.h header file is part of the POSIX library as opposed to the ANSI library. Perhaps that is meaningless, I don't know.

Question 1: How do I know what header files I have access to with the Visual Studio .net software?

Question 2: Can I download unistd.h from somewhere on the web and put it somewhere so that my program will know where to access it?

thanks in advance.