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

aborting is a terrible, terrible way to signal an error. strlcpy has a return code to report truncation. Discipline around return codes is already required in C. It's not a huge burden to bear (and if you're doing it right there should be lints to detect when checks are missing).


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

Search: