Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dgfitz
on July 15, 2024
|
parent
|
context
|
favorite
| on:
I'm not a fan of strlcpy(3)
I was miffed at: 1000 lines from stdin. It’s the same problem 1000 times, not 1000 problems at once.
Tuna-Fish
on July 15, 2024
[–]
Presumably the idea is, for example, sorting? In which case you do have to read the entire input before you can do anything. But the way I'd do that is to read the entire stdin to a single String, then work with &str pointers to it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: