I have a c source file in which one of the method is defined as follows:
void QDECL prettyPrintf(int level) {
////// some code.
}
I would like to know what is QDECL.In this case, is it returning QDECL type? As far as my little knowledge in C, a ‘void’ does not return anything.So, is it a legal statement?
I just checked the definition of QDECL. It is
Now your declaration becomes,
which is still a function which returns void.
In fact
QDECLcan still take ( theoretically ) some other forms without altering the return type of your function. It easily could have beenNow, your function prototype is
which is still a
voidreturning function