【发布时间】:2010-10-17 15:35:43
【问题描述】:
我在输入man 2 open 时遇到了这个问题。上面说open有两种,一种带两个args,一种带三个!上次我检查我们不能在 C 中重载函数。他们是怎么做到的?他们是用 C++ 编写的吗?
int open(const char * pathname, int flags);
int open(const char * pathname, int flags, mode_t mode);
【问题讨论】:
标签: c linux overloading manpage