g'day,
I've a question about usage function which can getting zero variable.
For example...
Code:
void input(int buf, int type, int class){
if(type!=....){
check(buf);
}
#ifdef CLASS
else{
check(class);
}
#endif //CLASS
}
// source 1
int main(){
int abuf, utype;
....
input(abuf,utype,0);
}
// source 2 specify for usage same CLASS
int main(){
int abuf, utype, xclass;
....
input(abuf,utype,xclass);
}
Tell me please, its would be correct or not?
I needs to do this in linux kernel, therefore I posted my topic in linux thread.