Is there a file pointer (FILE*) that points to nothing?

前端 未结 6 779
醉酒成梦
醉酒成梦 2021-01-23 03:09

For some reasons I need a file pointer (FILE*) that points to nothing. It means I can pass it to fprintf function and fprintf ignore the file pointer.

for example:

6条回答
  •  日久生厌
    2021-01-23 03:34

    why not wrapping the fprintf method call with an if (NULL != nothing) statement?

提交回复
热议问题