Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
shrughes
on Jan 18, 2013
|
parent
|
context
|
favorite
| on:
When Haskell is Faster than C
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
on Jan 19, 2013
[–]
I think you meant strncmp. Nobody ever wants strcmp, not if they know what it does.
shrughes
on Jan 20, 2013
|
parent
|
next
[–]
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.
tedunangst
on Jan 19, 2013
|
parent
|
prev
[–]
You don't know what you're talking about.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: