4 ms·
The correct rewriting would be: bool char_non_space = p_non_null && (*p != ' ');
by bandika 4y ago
The correct rewriting would be:
bool char_non_space = p_non_null && (*p != ' ');
- tpoacher 4y agobut then 'char_not_space' is a misleading name, as it could denote the presence of a space due to p being null