How to rewrite this conditional breakpoint by comparing a char* variable??
Posted on 2006-06-21
I want to find out a better way to setup a conditional breakpoint when comparing a char* variable.
char* mystr is pointing to a block of memory
I want to break when the following occur
mystr has a substring of "KING"
currently, I have to write the condition as "sdrName=='K' && sdrName=='I' && sdrName=='N' && sdrName=='G'"
I know this will only breaks when mystr == KINGXXX
Tried to use strcmp or strsub function, but the breakpoints will never break. SO I assume you cannot use the string.h function?
Can anyone help me out?