Casting function returns to void

后端 未结 1 361
不知归路
不知归路 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)
提交回复
热议问题