C语言问题,菜鸟请教大侠帮忙看看:errno=EAGAIN是什么意思?
intmain(){intbuf_w[100]intfd;intnwrite;memset(buf_w,0,sizeof(buf_w));fd=open((FIFO_SE...
int main() { int buf_w[100] int fd; int nwrite; memset(buf_w,0,sizeof(buf_w)); fd=open((FIFO_SEVER,O_WRONLY|O_NONBLOCK,0); if(argc==1) { printf("Please send something.\n"); exit(-1); } strcpy(buf_w,argv[1]); if((nwrite=write(fd,buf_w,100))==-1) { if(errno=EAGAIN) printf("The FIFO has not ben read yet.Please try later\n"); }
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询