Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Consequently, functions that accept no arguments should explicitly declare a void parameter in their parameter list. This holds true in both the declaration and definition sections (which should match).

Wiki MarkupDefining a function with a {{void}} argument list differs from declaring it with no arguments because, in the latter case, the compiler will not check whether the function is called with parameters at all \ [[C void usage|http://tigcc.ticalc.org/doc/keywords.html#void]\]. Consequently, function calling with arbitrary parameters will be accepted without a warning at compile time.

Failure to declare a void parameter will result in

...

ISO/IEC 9899:1999 Forward and Section 6.9.1, "Function definitions"

Bibliography

...

\[[C void usage|http://tigcc.ticalc.org/doc/keywords.hml#void]\]

...

      02. Declarations and Initialization (DCL)