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

The express purpose of strncpy is to handle fixed-length strings in classic unix (file) structures (e.g. tar), I'm not convinced it's correct to use in basically any other situation.


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

Search: