0

Pipe's write-end file descriptor is int but some functions such Tcl_MakeFileChannel accepts void* as file handle. I need to pass pipe write-end to it. How can one convert one type of file handle to another?

4

1 回答 1

3

阅读此参考资料,您似乎只需传递文件描述符:

Tcl_MakeFileChannel(reinterpret_cast<void*>(fd), ...);

您也可能想阅读此线程

于 2013-05-06T07:08:12.057 回答