Y
Hacker News
new
|
ask
|
show
|
jobs
by
tomlogic
3675 days ago
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.
1 comments
mzs
3675 days ago
Dang it, I counted the \0 but miscounted the characters in the string.
link