关于fdopen和fopen# JobHunting - 待字闺中a*92010-10-28 07:101 楼不少EXAMPLE是用fopen打开一个FP,再用这个FP作为fdopen的参数创建一个新的FP2,然后所有读写直接在FP2上进行。是不是fdopen 有BUFFER 的作用呢?
z*92010-10-28 07:102 楼fdopen has nothing to do with fopen, but system call openThe fdopen() function associates a stream with the existing filedescriptor.