Hacker News new | past | comments | ask | show | jobs | submit login

There's a difference between strncmp existing precisely so you can specify how many characters to compare, vs. throwing away trailing characters in a string just because, by sheer chance, it contains only numerics.



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

Search: