They aren't the same. strcmp() will compare string lexicographically - memcmp() isn't guaranteed to do so. It only cares if n bytes of this is less than, equal to, or greater than n bytes of that.
Type: Posts; User: whiteflags
They aren't the same. strcmp() will compare string lexicographically - memcmp() isn't guaranteed to do so. It only cares if n bytes of this is less than, equal to, or greater than n bytes of that.
If I adopted this approach I would worry about becoming complacent with working code, and using it all the time, when a little bit of thinking would have made the control flow completely obvious. And...