c - Determining where string equality comparison fails -
c - Determining where string equality comparison fails -
given these strings
char * foo = "the name of game"; char * boo = "the name of rose"
i want determine address of first mismatched character, in order extract mutual header ("the name of the ").
i know hand-coded loop trivial, i'm curious if there's variant of strcmp()
or other library function automatically me? , reply different in c++?
nope. no such standard string.h
function exists.
c c-strings
Comments
Post a Comment