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

Indeed, '\0' is the sentinel character for uncounted strings in C, and even if your own counted string implementation is “null-byte clean”, aspects of the underlying system may not be (Windows and Unix filesystems forbid embedded null characters, for example).


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

Search: