Y
Hacker News
new
|
ask
|
show
|
jobs
by
Dwedit
1065 days ago
strncpy was a bad mistake. If you know the length and there's no null termination, you use memcpy instead.