Need for prefixing a function with (void)

前端 未结 6 1893
一向
一向 2020-12-03 23:32

I recently came across a rather unusual coding convention wherein the call for a function returning \"void\" is prefixed with (void).

e.g.

(void)         


        
6条回答
  •  醉酒成梦
    2020-12-03 23:40

    acedemically: a "function" always returns something, else it would be a procedure. So the Author of this code wants to say "i know this naming is wrong, but i will no change the name, so i make this disturbance visible"

提交回复
热议问题