I compare a const char *
to a string and for some reason it always succeeds.
if (std::strcmp(t->detectColor->name, "ghghjg") != 0) {
printf("XXXXXXXXXXX\n");
// check if it was allready a sequencer
if (std::strcmp(t->className, "IM_SURE_IT_CANT_BE_THIS") != 0) {
printf("what is going on?\n");
The detectColor name is always something like green or blue, and t->className
is "ofxDTangibleBase" for example. Still it prints
XXXXXXXXXXX
what is going on?
in the console. How can i get a valid compare?