3 ms·
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.
by tomlogic 10y 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.
- mzs 10y agoDang it, I counted the \0 but miscounted the characters in the string.