计时器 睡眠函数 unsigned int sleep(unsigned int seconds); 例: #include XXXX int main() { time_t dt; time(&dt); printf("%s begin at:%s\n",__FILE__,ctime(&dt)); puts("sleep for 5 seconds...."); sleep(5); time(&dt); printf("%s end at:%s\n",__FILE__,ctime(&dt)); return 0; } 管道 创建管道 int pipe(int fd[2]); fd[0]用于读 fd[1]用于写 例: int z; int fd[2]; if((z==pipe(&fd[0])))==-1) { perror("pipe"); exi...
by creatory - AIX文档中心 - 2008-03-31 20:28:06 阅读(1126) 回复(0)