Search code examples
cansi-c

function parameter type checking in ANSI-C with empty parameter list


In K&R it says that declaring a function prototype such as void foo(); with an empty parameter list turns off function parameter type checking. Is this only for foo or for all functions?


Solution

  • That only applies to the function in question, not globally.