代码改变世界

Using fscanf to read message from FIFO will lost message

2016-04-23 16:52  flyfish163  阅读(310)  评论(0编辑  收藏  举报
In libcurl example hiperfifo.c, function fifo_cb uses fscanf(fifo inputstream,...) to read in a string.rv=fscanf(g->input, "%1023s%n", s, &n);When the