【发布时间】:2012-05-19 18:29:55
【问题描述】:
来自the web 我了解到C 包含NUL 关键字。
但在编译时出现错误
NUL undeclared first use in this function'
我的代码片段:
for (;;) {
char ch = (*pzDest = *pzSrc);
if (ch == NUL)
break;
if (ch == ':') {
*pzDest = NUL;
break;
}
pzDest++;
pzSrc++;
}
知道为什么会出现此错误吗?
【问题讨论】: