I don't know what happened to this line num && *num == maxNum
. Why var && *var
can be used to judge the max bound?
I really need to someone to explain this...
void func(...,size_t *_Nullable num,...){
size_t num_=0;
somethingHappen_get_num(&num_);
if(num){
*num = num_;
}
if (num && *num == maxNum) { //why???????????
Log_print("num is too big");
return Error;
}
}