【发布时间】:2015-12-27 12:39:43
【问题描述】:
全部;我现在正在查看 glibc 源代码;我有一个问题是这样的:
int fcntl(int fd, int cmd, ...) {
va_list ap;
va_start(ap, cmd);
void* arg = va_arg(ap, void*);
va_end(ap);
return __fcntl64(fd, cmd, arg);
}
为什么会这样???!!!
fcntl(fd,cmd); // is this a trouble?
fcntl(fd,cmd,i/*int type*/); // and this?
谢谢大家。
【问题讨论】:
标签: glibc fcntl variadic-functions