写了个core dump程序, 查了15分钟, 我擦:
for(unsigned int i = 1; i <= n; ++i)
{
char szIndex[8] = {0};
snprintf(szIndex, sizeof(szIndex), "(%s)", i);
...
return strTmp;
}
呵呵哒。
写了个core dump程序, 查了15分钟, 我擦:
for(unsigned int i = 1; i <= n; ++i)
{
char szIndex[8] = {0};
snprintf(szIndex, sizeof(szIndex), "(%s)", i);
...
return strTmp;
}
呵呵哒。