2 ms·
I don't understand why it would need to use strlen anyway. Why wouldn't it treat the string like a stream when scanf is already coded to operate on an actual st
by ziml77 6y ago
I don't understand why it would need to use strlen anyway. Why wouldn't it treat the string like a stream when scanf is already coded to operate on an actual stream?
- JdeBP 6y agoIt's an implementation strategy, one of at least two, explained at https://news.ycombinator.com/item?id=26298300 https://news.ycombinator.com/item?id=26298300 on this very page.