linux文件操做-非阻塞读终端-例程

读取终端输入的字符,当未读到数据时延时3秒,而后再读:string #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h>it /*
相关文章
相关标签/搜索