tronkko/dirent

Reduce source code in dirent_mbstowcs_s()

elfring opened this issue · 1 comments

How do you think about to replace an if statement at the end of the function “dirent_mbstowcs_s” by the shorter statement “return (n > 0 && flag == 0) ? 0 : 1;”?

I generally prefer if statement. I think if statement is more readable and easier to understand.