g'day,
I've a question about usage function which can getting zero variable.
For example...
Tell me please, its would be correct or not?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); }
I needs to do this in linux kernel, therefore I posted my topic in linux thread.



LinkBack URL
About LinkBacks


