14
Amura
6y

People here expect me to use strncmp(str,"ABC",strlen("ABC")) because they think strcmp(str,"ABC") is going to crash. Because they've had experiences of using strcmp and getting crashed.

All they did was, pass inside strcmp, strings that did not carry terminating null character but won't accept if i told so.

Comments
  • 3
    Get out now!
  • 0
    If they want to use that... at least make a helper function so your code doesn't look poluted :(
Add Comment