1

I have a question regarding some CAPL programming. I am looking to check between two arrays. But I can't seem to figure out how to do it. Can i please have some help. I have The following code:

void Check(char out[])
{
char checker[8] = "2e7f2e";
if(checker == out )
{
...
}
}

Can you please help me on how to check the two arrays?

Bogdan Marius
  • 45
  • 1
  • 4

1 Answers1

2

CAPL is - mostly - C

You can use, e.g.

if(strncmp(out, checker, 8) == 0) {
  ...
}
MSpiller
  • 3,500
  • 2
  • 12
  • 24