Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tomlogic
· 10y ago · 0 comments
Not odd to include the null terminator if you want to ensure another string is "equal to", not just "starts with" the string you're comparing it to.
Comments
[–]
mzs
10y ago
Dang it, I counted the \0 but miscounted the characters in the string.