HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by tptacek | Hacker News Reader
Parent
Full thread
tptacek
·
Doesn't this also read right off the end of the string?
View on HN
zwp
·
No, it will hit the NULL terminator and short circuit.
udp
·
No, because if i[1] is 0 (the null terminator), i[1] == '.' will fail.
tptacek
·
Duh. Sorry.
Reply on news.ycombinator.com