Forward declare FILE *

前端 未结 6 1592
既然无缘
既然无缘 2020-12-09 17:14

How do I forward declare FILE * in C? I normally do this using struct MyType;, but naturally this doesn\'t appear to be possible.

If behavi

6条回答
  •  醉梦人生
    2020-12-09 18:03

    FILE is a system-dependent typedef. You are not supposed to care how the actual structure is defined or even named. But you can always look into your /usr/include/stdio.h file :)

提交回复
热议问题