Casting function returns to void

后端 未结 1 357
不知归路
不知归路 2020-12-17 10:33

Many times I see in open source code that a call to a C function is cast to void.

For example, in the source code for ls (http://cvs.opensolaris.org/sou

相关标签:
1条回答
  • 2020-12-17 11:16

    It explicitly means you ignore the return value, and did not just forget it.

    0 讨论(0)
提交回复
热议问题