I have the following function: void Register(Data* _pData, uint32 _Line, const char* _pFile, ...) { va_list Args;
I\'m using Visual Studio C++ 2010 Express. I made this function with variable argument list: BOOL Send(SOCKADDR_IN toAddr, LPTSTR command, LPTSTR first, ...) {
according to Siebel documentation, eScript supports varargs. The following sample is taken from the Siebel documentation:
Here\'s an exa开发者_StackOverflow中文版mple of what i\'m trying to achieve. I\'m trying to create a macro, that would look like this:
I have this code inside a constructor of a class (not written by me) and it writes a variable arg list to a tmp file.
recently i came across this function (used in a logger class). I understand what it does, but i do not know how:
In C, what is meant by \"开发者_开发知识库functions with a variable number of parameters\"?printf is a nice example of that :)
What do the 3 dots following String in the开发者_如何学运维 following method mean? public void myMethod(String... strings) {
This question already has answers here: Closed 12 years ago. Possible Duplicate: Are there gotchas using varargs with reference parameters
I apologize if this question has already been asked/answered, I would have expected that to be the case but was unable to find any related questions...