Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the following code example, the variadic function average() calculates the average value of the positive integer arguments passed to the function [Seacord 2005c2013]. The function processes arguments until it encounters an argument with the value of va_eol (-1).

...

ISO/IEC TR 24772:2013Subprogram Signature Mismatch [OTR]
MISRA-CRule 16.1
MITRE CWECWE-628, Function call with incorrectly specified arguments

Bibliography

[Seacord 2005c]2013]Chapter 6, "Formatted Output"

 

...