阅读背景:

从管道读取的字节数

来源:互联网 

When reading from a pipe in Linux (C, fread/similar), when EOF is reached, how can it be known how many bytes were read? If I read blocks at a time, fread() only returns the number of full blocks read in, and I can't read one byte at a time because that is too slow. Of course, ftell() returns -1.When reading from a pipe in Linux (C, fread/sim




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: