ends说是write a null and then flushes the buffer,这个null有什么用呢
http://www.examw.com/biancheng/c/204779/
在你的输出流中添加一个 \0 结束符,就是字符串结束标志