Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arrays 两个字符数组之间的CAPL检查_Arrays_Char_Capl - Fatal编程技术网

Arrays 两个字符数组之间的CAPL检查

Arrays 两个字符数组之间的CAPL检查,arrays,char,capl,Arrays,Char,Capl,我有一个关于CAPL编程的问题。我希望在两个阵列之间进行检查。但我似乎不知道怎么做。能给我一些帮助吗。我有以下代码: void Check(char out[]) { char checker[8] = "2e7f2e"; if(checker == out ) { ... } } 你能帮我检查一下这两个阵列吗?CAPL是-主要是-C 你可以使用,例如 if(strncmp(out, checker, 8) == 0) { ... }

我有一个关于CAPL编程的问题。我希望在两个阵列之间进行检查。但我似乎不知道怎么做。能给我一些帮助吗。我有以下代码:

void Check(char out[])
{
char checker[8] = "2e7f2e";
if(checker == out )
{
...
}
}
你能帮我检查一下这两个阵列吗?

CAPL是-主要是-C

你可以使用,例如

if(strncmp(out, checker, 8) == 0) {
  ...
}