...
Wiki Markup |
---|
In the following code example, the variadic function {{average()}} calculates the average value of the positive integer arguments passed to the function \[[Seacord 05c|AA. C References#Seacord 05c]\]. The function processes arguments until it encounters an argument with the value of {{va_eol}} ({{\-1}}). |
...
Wiki Markup |
---|
\[[ISO/IEC 9899:1999|AA. C References#ISO/IEC 9899-1999]\] Section 7.15, "Variable arguments," and Section 7.19.6.8, "The {{vfprintf}} function" \[[ISO/IEC PDTR 24772|AA. C References#ISO/IEC PDTR 24772]\] "OTR Subprogram Signature Mismatch" \[[MISRA 04|AA. C References#MISRA 04]\] Rule 16.1 \[[MITRE 07|AA. C References#MITRE 07]\] [CWE ID 628|http://cwe.mitre.org/data/definitions/628.html], "Function Call with Incorrectly Specified Arguments" \[[Seacord 05c|AA. C References#Seacord 05c]\] |
...