How to use strcmp in MSVC C++ debugger when having array?

222 Views Asked by At

I am trying to place a conditional breakpoint for a string comparison using strcmp. In the debug console, below command works

(char*)b->vec.buf.ptr.pointer,[b->vec.len]

However, when I want to use this in strcmp using below command,

strcmp(((char*)b->vec.buf.ptr.pointer,[b->vec.len]), "test") == 0

I get Invalid format specifier.. I think I am not able to use the () inside strcmp.

How to achieve this?

0

There are 0 best solutions below