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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -