Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have found :
void CBase::WriteToLog(const char *pText, ...) 

as a function prototype. This function is trying to write to a text file while logging into the application. The question is what
(,...)
which is found in the function prototype means?

What I have tried:

I have tried to remove it from the prototype and make no change
Posted
Updated 16-Dec-17 6:40am
v2

1 solution

It is an ellipsis, that indicates that the function takes a variable number of arguments after the first one. The printf function is a case in point. See va_arg, va_copy, va_end, va_start[^] for a sample implementation.
 
Share this answer
 
Comments
[no name] 16-Dec-17 12:42pm    
Wow, was not Aware oh that, 5.
Richard MacCutchan 16-Dec-17 12:47pm    
It's easy enough to find if you read the C reference manual.
Ahmed AE 16-Dec-17 14:21pm    
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900