求助:为何无法找到<time.h><window.h>。。。。。。
- utnubudnai
- 帖子: 53
- 注册时间: 2007-06-20 15:45
求助:为何无法找到<time.h><window.h>。。。。。。
我用Anjuta编辑C程序,想用到SLEEP()函数,可是却找不到像time.h,window.h这些头文件,怎样解决呢?
-
- 帖子: 353
- 注册时间: 2007-04-03 9:52
- 联系:
- utnubudnai
- 帖子: 53
- 注册时间: 2007-06-20 15:45
-
- 帖子: 353
- 注册时间: 2007-04-03 9:52
- 联系:
-
- 帖子: 53
- 注册时间: 2006-04-21 18:31
教你查看函数调用的头文件
前提是你要安装gcc-doc文件哟
$man 3 函数名
比如上面那位兄弟的问题
郁闷无法直接传图像上来
前提是你要安装gcc-doc文件哟
$man 3 函数名
比如上面那位兄弟的问题
代码: 全选
$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