Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
What's the rationale for null terminated strings? (stackoverflow.com)
3 points by J3L2404 on Dec 12, 2010 | hide | past | favorite | 1 comment


The question should be: "Why doesn't C have a string data type?" C only considers a pointer to a char, it's the programmers' fault they treat this structure like a string.




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

Search: