【发布时间】:2018-03-31 23:37:25
【问题描述】:
这个函数是什么意思?
#define PROGRAM_SENTINEL ((char *)0x1)
void suppzSetSentinal(const char **prog, const char *key)
{
const char **tmp = prog;
while (tmp && *tmp) {
if (*tmp == PROGRAM_SENTINEL) {
*tmp = key;
break;
}
tmp++;
}
}
【问题讨论】:
-
代码是由不懂for循环的人写的。