tronkko / dirent

C/C++ library for retrieving information on files and directories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reduce source code in dirent_mbstowcs_s()

elfring opened this issue · 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.