我用vc编译c程序,里面用到了sleep函数,请问这个函数在哪个lib库文件里面呢。
#include <stdlib.h>
#include <stdio.h>
int main()
{
printf("this is a hello test under cygwin!\n");
sleep(2);
printf("wake up!\n");
return 0;
}
winbase.h
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.