Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ahoka
on Jan 6, 2024
|
parent
|
context
|
favorite
| on:
Teaching C (2016)
Coverity used to suggest using strncpy instead of strcpy for a while, which if you blindly follow leads to nasty errors. If someone wonders, snprintf was the correct alternative at the time, I have no idea if the C standard has anything better now.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: