I need help with this C++ function.
VOID __cdecl Buffer(LPCTSTR lpInput, ...)
{
//some code
}
What is the meaning of the "..." as part of its input
parameters?
I know the meaning of __cdecl but got stuck with the "..."
This code can be compiled and executed so its not some typing
error or fill-in-the-blank thingy.
Anyone can help?
Found it through Google.
http://msdn2.microsoft.com/en-us/library/k64h826d(VS.80).aspx
It's known as the ellipsis notation which allows the user (as in
the script that uses that function) to insert a variable number of
parameters into the function. A useful application for this would
be a function that calculates the sum of all the parameters
given.