求助:为何无法找到<time.h><window.h>。。。。。。
发表于 : 2007-06-21 17:11
我用Anjuta编辑C程序,想用到SLEEP()函数,可是却找不到像time.h,window.h这些头文件,怎样解决呢?
#include<time.h>utnubudnai 写了:那其它文件呢?比如说time.h呢?
代码: 全选
$man 3 sleep
代码: 全选
SLEEP(3) Linux Programmer’s Manual SLEEP(3)
NAME
sleep - Sleep for the specified number of seconds
SYNOPSIS
#include <unistd.h>
unsigned int sleep(unsigned int seconds);
DESCRIPTION
sleep() makes the current process sleep until seconds seconds have
elapsed or a signal arrives which is not ignored.
RETURN VALUE
Zero if the requested time has elapsed, or the number of seconds left
to sleep.
CONFORMING TO
POSIX.1-2001.
BUGS
sleep() may be implemented using SIGALRM; mixing calls to alarm() and
Manual page sleep(3) line 1