I am looking through the code and I found some strange conditional expressions, namely:
if (NULL != buf) {...}
I was wondering if there was any specific reason for writing a conditional expression, not
if(buf != NULL){...}
I see no reason to do it the first way from my head, but I don’t think it was a mistake. It seems to me that they are doing the same thing, but the second way is more intuitive. Is there any specific reason for using the first conditional?
source
share