Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bandika
· 3y ago · 0 comments
The correct rewriting would be:
bool char_non_space = p_non_null && (*p != ' ');
Comments
[–]
tpoacher
3y ago
but then 'char_not_space' is a misleading name, as it could denote the presence of a space due to p being null