Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Technically strncpy was invented to interact with null-padded fixed-size strings in general. We’ve mostly (though not entirely) moved away from them but fixed-size strings used to be very common. You can see them all over old file formats still.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: