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

Are you writing that in Haskell or in C? Because in Haskell, you'd want to use the /= operator. In C, you'd want to use strcmp.



I think you meant strncmp. Nobody ever wants strcmp, not if they know what it does.


We know what it does and it's the right thing to use. You must be thinking of strncpy or some other ennified string.h function.


You don't know what you're talking about.




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

Search: