|
|
|
|
|
by riverlong
1719 days ago
|
|
I wouldn't count strcmp, etc. It returns < 0 if str1 is shorter and > 0 if str1 is longer. Returning 0 means there is 0 difference. That's not a True/False. "0" is not a "truthy" exit code for a system call, it rather denotes the absence of an error. In my view, a value X being "truthy" means that `bool(X)` evaluates to TRUE, or `if(X)` gets executed. |
|