void printf(char *f, ...)
{
char *argP;
vaStart(argP,f);
//#define vaStart(list, param) list = (char*)((int)¶m + sizeof(param))
//argP=(char*)((int)&f+sizef(f));??????????????????????????????? (1)
while (*f) {
if (*f == '%')
f = FormatItem(f + 1, vaArg(argP, int));
//#define vaArg(list, type) ((type *)(list += sizeof(type)))[-1]
//((int*)(argP+=sizeof(int)))[-1];????????????????????? (2)
else
putch(*f++);
}
}
其中"//"后是相关信息,加"??????.."的两句我很不明白是什么意思?烦请指导,感激不尽
[align=right][color=#000066][此贴子已经被作者于2006-1-31 13:04:26编辑过][/color][/align]