How do I get the file HANDLE from the fopen FILE structure?

后端 未结 3 1729
面向向阳花
面向向阳花 2020-12-03 09:49

The fopen function returns a pointer to a FILE structure,

3条回答
  •  春和景丽
    2020-12-03 10:39

    On Linux, there's the int fileno(FILE *); function that returns the file descriptor (the one that was returned by the low-level open function) from the FILE*.

    I don't know if it applies to Windows and returns the HANDLE though?

提交回复
热议问题