6 ms·
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.
by shrughes 14y ago
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.
- vajrabum 14y agoI think you meant strncmp. Nobody ever wants strcmp, not if they know what it does.
- tedunangst 14y agoYou don't know what you're talking about.
- shrughes 14y agoWe 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.