← Back to team overview

widelands-dev team mailing list archive

strcmp

 

Hi,

please help me with trivial programming question. I am doing this:

if (strcmp(bo.mines_, "marble"))

and getting this:

error: invalid conversion from 'int32_t {aka int}' to 'const char*'
[-fpermissive]

member mines_ is defined as

char* mines_;

in ai_hints.h

What should be the right syntax?

Thanks!

Follow ups