visual c++ – When and where are periods allowed in C function definition parameter lists?

visual c++ – When and where are periods allowed in C function definition parameter lists?

In C, the only time you can have periods in a function prototype is when the function accepts a variable number of arguments, and that is always specified with three dots as the last parameter declaration. Any other use of a dot between the parentheses is a syntax error.

E.g.:

void fn(int arg1, …);

Its definitely a syntax error.

That code is enabled only if PGP_WIN32 is defined, though I doubt that thats relevant; Im sure code that doesnt compile on Windows wouldnt be released.

The PGP software is now owned by Symantec, which makes the source code available only for peer review. I wonder if theyve deliberately introduced trivial syntax errors to make the source code difficult to use while leaving it easy to review. (But the license agreement appears to allow you to compile the code.)

visual c++ – When and where are periods allowed in C function definition parameter lists?

Leave a Reply

Your email address will not be published.